v1

latestOpenAPI 3.0.12026-07-26171200932.8 KB
Trading - Demo

List trading history

Rate limit: 60 requests per 60 seconds. This is the default shared quota — it is shared with every other endpoint that has no dedicated limit, so requests across those endpoints all draw from the same budget.

get/api/v1/trading/info/trade/demo/history

Query parameters

minDatestring date required

The start date of the period you would like to view.

pageinteger

The page number.

pageSizeinteger

The amount of trades in each page.

Headers

x-request-idstring uuid required
Example:12a724a8-e857-4dda-8256-065ad05e099e

A unique request identifier.

x-api-keystring password required
Example:lhgfaslk21490FAScVPkdsb53F9dNkfHG4faZSG5vfjndfcfgdssdgsdHF4663

API key for authentication.

x-user-keystring password required
Example:eyJlYW4iOiJVbnJlZ2lzdGVyZWRBcHBsaWNhdGlvbiIsImVrIjoiOE5sZ2cwcW5EUVdROUFNWGpXT2lmOWktZnpidG5KcUlqWGJ3WHJZZkpZcldrbG90ZEhvLVBjSWhQaU8xU1ZtMW84aU1WZGZqN2xWNzFjLXFxLmcybXE1dnh4Q1hUT25xaWRUaTFlcEhmVk1fIn0_

User-specific authentication key.

Response

OK

netProfitnumber float

The net profit of the trade

closeRatenumber float

The closing rate of the trade

closeTimestampstring date-time

The closing timestamp of the trade

positionIdinteger

The position ID of the trade

instrumentIdinteger

The instrument ID of the instrument that was traded

isBuyboolean

Indicates if the trade was a buy or sell

leverageinteger

The leverage used in the trade

openRatenumber float

The opening rate of the trade

openTimestampstring date-time

The opening timestamp of the trade

stopLossRatenumber float

The stop loss rate of the trade

takeProfitRatenumber float

The take profit rate of the trade

trailingStopLossboolean

Indicates if the trade had a trailing stop loss

orderIdinteger

The order ID of the trade

socialTradeIdinteger

The social trade ID of the trade

parentPositionIdinteger

The parent position ID of the trade

investmentnumber float

The investment amount of the trade

initialInvestmentnumber float

The initial investment amount of the trade

feesnumber float

The fees of the trade

unitsnumber float

The number of units traded