Trading Endpoints
Detailed comparisons for trading related endpoints between Legacy and New API.
Buy
3 ChangesPurchase contracts. The loginid parameter removed, buy field validation relaxed, and buy object now required in response.
Cancel
3 ChangesCancel an active contract. The loginid parameter removed, cancel object now required in response, and all response fields now required.
Contract update
3 ChangesUpdate contract parameters like take profit and stop loss. The loginid parameter removed, response object now required, and new display_order_amount field added.
Contract update history
3 ChangesGet contract update history. The loginid parameter removed, response field now required, and array items have required fields.
Proposal
10 ChangesGet contract pricing. Symbol renamed to underlying_symbol, multiple parameters removed, response proposal now required with only id guaranteed, field types changed.
Proposal open contract
8 ChangesGet open contract details. The loginid parameter removed, numeric field types changed to string | number, and deprecated display fields removed.
Sell
4 ChangesSell an active contract. The loginid parameter removed, price validation added, and sell response object with all fields now required.
Any other questions? Get in touch