REST API DOCS

Place Order

POST
/backend/api/v1/orders/place/

Places a new order (bid or offer) in the Depth of Book. Use action to indicate new/add/remove intent and side to indicate bid or offer.

Notice:

  • you need to have permission to do this operation. Contact DORRS Admin

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/backend/api/v1/orders/place/" \  -H "Content-Type: application/json" \  -d '{    "action": "n",    "origin": "WSAX",    "symbol": "USDT",    "quote_condition": "c",    "mpid": "MPID01",    "side": "b",    "quantity": 500,    "price": 3.85  }'
{  "message": "success",  "data": [    {      "id": 38,      "firm_name": "DORRS",      "origin": "WSAX",      "symbol_name": "USDT",      "quote_condition": "c",      "mpid": "MPID01",      "side": "b",      "quantity": "500.0000000000000000",      "price": "3.8500000000000000",      "uti": "011720241425-0000-A0037",      "ref_id": "3MI7366T020RXLF",      "status": "open",      "created_at": "2024-01-17T12:15:58.150234Z",      "updated_at": "2024-01-17T12:15:58.150238Z"    }  ],  "code": 200}