Links

Universal API

Our API lets you trade with any of your connections using the same codebase
The Tradologics API allows you to submit orders, check your PnL, and fetch your latest NAV. It also lets you fully control your Tradologics account - including managing Strategies, Tradehooks, research environments, and more.
On a technical level, both our web console and CLI tool are glorified clients that simplify the workflow. With the exception of charting and connecting to a few brokers - there's nothing you can do on the web console that you cannot do using “vanilla” API calls.
At the very minimum, you'll need to use the API from within your strategies in order to submit orders.

API reference page

To see a list of everything you can currently do with our API, refer to the API reference page.

API credentials

Your API credentials consist of an API Key and API Secret - which can be found on your account's Credentials page, accessible from the user menu:
All API calls should pass a Token authentication header (more on that below). The only reason you actually need the API credentials is if you want to create Tokens using the API or configure the CLI tool. If you plan to only use the web console, you won't need your API credentials at all.

Creating Tokens

To learn how to create and manage Tokens via the API, refer to the API reference page
To use the API, you'll need to create a Token first. You can do this on your account's Credentials page, accessible from the user menu (see image above).
You'll need to provide a Token name and an optional expiration date (which defaults to Dec 31, 2050, if not provided).
The Token is a JWT Token and it's a very long string that looks something like this:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1IjoiZGQ1ZjgwY2MtZDc4Yi00YzQ4LTkxY2UtNTMwYmM2MzNlZTNhIiwidCI6OTQ4LCJpYXQiOjE2NDQ5NjE2NTAsImV4cCI6MTc2NzEzOTIwMn0.Zgc4V2zKfvNiALyR2OKyeyMzox-Ks_rpE2iH3DsvUqI

Using Tokens

The token should be sent in the headers, via the Authorization: Bearer *** header for all API calls.
Our SDKs are wrappers to the most popular http library in every of the supported programming languages. When using one of our SDKs, you can simply "attach" your Token to it and we'll take care of sending it with every request
Example - without the SDK
strategy.py
import requests
# send api requests
requests.get(
"https://api.tradologics.com/v1/me",
headers={
'Authorization': 'Bearer eyJhbGciOiJIUzUx.ImlhdCI6MTU2NzNywiZXhwIjox...NTY0Mzg4OTM3fQ'
}
)
requests.post(
"https://api.tradologics.com/v1/order",
json={
...
},
headers={
'Authorization': 'Bearer eyJhbGciOiJIUzUx.ImlhdCI6MTU2NzNywiZXhwIjox...NTY0Mzg4OTM3fQ'
}
)
Example - with the SDK
strategy.py
from tradologics import requests
requests.set_token('eyJhbGciOiJIUzUx.ImlhdCI6MTU2NzNywiZXhwIjox...NTY0Mzg4OTM3fQ')
# send the request
requests.get("/me")
requests.post("/order", json={...})
Which one looks cleaner? 😉
To see a list of everything you can currently do with our API, refer to the API reference page.