Trading APIs
About 1 min
List of Trading API
The Trading API allows a user to check their account status, place orders and cancel their orders. Please see below for a full list of supported actions and corresponding requests.
Attention
You need to initializeTradeClient
before calling the trade interfaces below. For an example of initialization, please see Quickstart
View Account Information
Interface | Function |
---|---|
get_managed_accounts | Listing all managed account |
get_assets | Get asset information |
get_prime_assets | Get asset information for standard/paper trading account |
get_positions | Get positions |
get_analytics_asset | Get analytics asset |
get_estimate_tradable_quantity | Get estimate tradable quantity |
get_segment_fund_available | Get available fund |
transfer_segment_fund | Transfer fund |
get_segment_fund_history | Get fund transfer history |
Get Contracts
Interface | Fuction |
---|---|
get_contracts | Get multiple Contract Objects |
get_contract | Get a Contract Object |
get_quote_contract | Get derivative contracts |
Get Order Information
Interface | Fuction |
---|---|
get_order | Get order record |
get_orders | Get multiple order records |
get_active_orders | Get list of all the un-filled orders |
get_cancelled_orders | Get a list of cancelled orders |
get_filled_orders | Get a list of filled orders |
get_transactions | Get a list of filled orders(only applicable to prime account) |
Place Orders
Interface | Fuction |
---|---|
place_order | Place Order |
Modify or Cancel Orders
Interface | Fuction |
---|---|
cancel_order | Cancel order |
modify_order | Modify order |