Trading
Last updated
Last updated
POST /exchange HTTP/1.1
Host: api.margin.trade
Content-Type: application/json
Accept: */*
Content-Length: 213
{
"action": {
"type": "order",
"orders": [
{
"a": 0,
"b": true,
"p": "43250.00",
"s": "0.1",
"r": false,
"t": {
"limit": {
"tif": "Gtc"
}
}
}
]
},
"nonce": 1705790400000,
"signature": {
"r": "0x1234...",
"s": "0x5678...",
"v": 27
},
"vaultAddress": null
}{
"status": "ok",
"response": {
"type": "order",
"data": {
"statuses": [
{
"resting": {
"oid": 1,
"cloid": "text"
},
"filled": {
"totalSz": "text",
"avgPx": "text",
"oid": 1
},
"error": "text"
}
]
}
}
}