2.11.0
[ Base URL: demo.tradelocker.com/backend-api/ ]
demo.tradelocker.com
and live.tradelocker.com
environments using TradeLocker REST API and setting the corresponding Base URL to demo.tradelocker.com/backend-api/
or live.tradelocker.com/backend-api/
. The API provides a request-response model, which allows external applications to create, modify and delete trade orders, as well as request info (historical quotes, list of orders and positions, balance info, etc.) from TradeLocker servers.
NEW:
To start writing strategies, you can install the official TradeLocker API Python Client . COMING SOON:
Sign up to get access to TradeLocker Studio. Start using our AI to convert your ideas into running bots in seconds!
'Authorization': 'Bearer {accessToken}'
email | TradeLocker user's email. |
---|---|
password | TradeLocker user's password. |
server | The name of the server that you connect to when logging into TradeLocker. |
/trade/config/
route, and require that you make a maximum of limit
requests per each intervalNum
SECONDS/MINUTES
(e.g. max of 2 requests per second).accNum
in the header. You can retrieve the list of all accounts, and their respective account numbers (accNum
) from the /auth/jwt/all-accounts endpoint.routeId
) for fetching quote data (INFO
) and making trade orders (TRADE
). These can be user-specific and instrument-specific, so you should first fetch the list of all instruments, together with their corresponding INFO
and TRADE
routeId from the /trade/accounts/<{accountId}>/instruments endpoint.positions
, orders
, ordersHistory
, filledOrders
and accountDetails
, as well as rate limits
for different routes and general limits
by querying the /config endpoint.
JWT access and refresh token, list of all accounts
JWT accessTokens and refreshToken
Name | Description |
---|---|
body *
object
(body)
|
User credentials - email, password, brandId |
curl -X 'POST' \
'http://stg.tradelocker.com/backend-api/auth/jwt/token' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"email": "[email protected]",
"password": "secretPassword123",
"brandId": "BRAND1"
}'
http://stg.tradelocker.com/backend-api/auth/jwt/token
Code | Details |
Undocumented
|
Failed to fetch.
|
Code | Description |
201 |
response
|
400 |
Bad Request |
Account management and information
Basic settings and accesses
Financial instrument information
Price and other related data for a financial instrument
Buying and selling of financial instruments in order to make a profit
TradeLocker © 2023. All rights reserved.
*Neither this app or its contents should be regarded as professional, financial or investment advice. This app is a suite of trading tools, meant to be used in connection with an account held by a trader with their brokerage firm. If you intend on using this app for real trading, you should understand how various financial products work and the risks you will be undertaking on your own.
**By using this app you will have access to information of a general nature (i.e., that does not address the circumstances of any particular individual). If you require further information, or otherwise a more comprehensive or complete statement of the related matters and regulations, you should seek the advice of a lawyer, your brokerage firm, or from a licensed financial service provider before you start trading.