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