Trading API
Programmatically manage orders and positions.
Place Order
Create a new buy or sell order.
POST
/api/v1/trading/ordersRequest Body
{
"symbol": "BTC/USD",
"side": "buy",
"type": "market",
"quantity": 0.1
}symbol(string): The trading pair.side(string): "buy" or "sell".type(string): "market" or "limit".quantity(number): Amount to trade.price(number, optional): Required for limit orders.
Get Open Positions
Retrieve all currently open positions.
GET
/api/v1/trading/positionsResponse
[
{
"symbol": "BTC/USD",
"side": "long",
"quantity": 0.5,
"entryPrice": 24500.0,
"currentPrice": 24800.0,
"unrealizedPnl": 150.0
}
]