Order Management
Create a new order.
API Documentation
- Introduction
- Registration
- Markets
- Order Management
- Positions
- Withdraw
- Nonce
- User data
Order Management
Create a new order.
POST
/
api
/
v1
/
order
curl --request POST \
--url https://mainnetapiserverwriter.logx.network/api/v1/order \
--header 'Content-Type: application/json' \
--data '{
"marketId": 3,
"isBuy": true,
"orderType": "MARKET",
"amount": "0.002094",
"price": "0",
"expiryTs": 1725711776768,
"isReduce": false
}'
{
"body": {
"amountx18": "2094000000000000",
"brokerId": 1,
"createdAt": "2024-08-08T12:22:57.264915Z",
"expiryTs": 1725711776768,
"id": 2418249,
"marketSymbol": "BTC-USD",
"marketType": "PERPETUAL",
"pricex18": "0",
"side": "BUY",
"status": "FILLED",
"subaccountId": "1_0x4012AB6a68CD1B2Eb2d0B1DdcE846DBe5d0B4059_1",
"totalFilledx18": "2094000000000000",
"type": "MARKET",
"updatedAt": "2024-08-08T12:22:57.440277977Z"
},
"message": "Order created successfully",
"status": 200
}
Body
application/json
The order object containing the details of the order to be created.
The body is of type object
.
Response
200 - application/json
The order was created successfully.
The response is of type object
.
curl --request POST \
--url https://mainnetapiserverwriter.logx.network/api/v1/order \
--header 'Content-Type: application/json' \
--data '{
"marketId": 3,
"isBuy": true,
"orderType": "MARKET",
"amount": "0.002094",
"price": "0",
"expiryTs": 1725711776768,
"isReduce": false
}'
{
"body": {
"amountx18": "2094000000000000",
"brokerId": 1,
"createdAt": "2024-08-08T12:22:57.264915Z",
"expiryTs": 1725711776768,
"id": 2418249,
"marketSymbol": "BTC-USD",
"marketType": "PERPETUAL",
"pricex18": "0",
"side": "BUY",
"status": "FILLED",
"subaccountId": "1_0x4012AB6a68CD1B2Eb2d0B1DdcE846DBe5d0B4059_1",
"totalFilledx18": "2094000000000000",
"type": "MARKET",
"updatedAt": "2024-08-08T12:22:57.440277977Z"
},
"message": "Order created successfully",
"status": 200
}