Guides

Trading APIs

Trading APIs focus on trading and managing contracts.

They include functionalities for buying, selling, and updating contracts, as well as managing copy trading activities. The APIs also allow users to retrieve important trading information such as profit tables, portfolio details, and contract durations.

These APIs are essential for users who actively trade on the platform and need to manage their trading accounts effectively.

#API NameDescriptionSendSubscribeScope
1Buy Contract: TradeBuys a contract.Trade
2Buy Contract for Multiple AccountsBuys a contract for multiple accounts specified by the tokens parameter. Note that although this is an authorized call, the contract is not purchased for the authorized account.Trade
3Cancel a ContractCancels a contract using its contract ID.Trade
4Update ContractUpdates the conditions of a contract.Trade
5Update Contract HistoryRetrieves the update history of a contract.Read
6Copy Trading: StartStarts copy trader bets.Trade
7Copy Trading: StopStops copy trader bets.Trade
8Copy Trading: ListRetrieves a list of active copiers and/or traders involved in copy trading.Admin
9Copy Trading: StatisticsRetrieves performance, trading, risk, and copiers statistics for a trader.NA
10Sell ContractSells a contract as identified from a previous portfolio call.Trade
11Sell Contracts: Multiple AccountsSells contracts for multiple accounts simultaneously. Uses the shortcode response from buy_contract_for_multiple_accounts to identify the contract and authorization tokens to select which accounts to sell.Trade
12Sell Expired ContractsAttempts to sell any expired contracts and returns the number of sold contracts.Trade
13Set Account CurrencySets the account's default currency for trading and deposits. The account currency can only be set once and cannot be changed.Admin
14Trading DurationsRetrieves a list of available underlying contract types and trading duration boundaries. If the user is logged in, assets available only for their landing company will be returned.NA
15Profit TableRetrieves a summary of the account's profit table based on the specified search criteria.Read, Trading Information
16PortfolioProvides information about your current portfolio of outstanding options.Read, Trading Information