Trade.mn API
About usContact us
  • API Doc
    • General API Information
    • API Key Setup
    • HTTP Return Codes
    • General Information on Endpoints
    • Endpoint security type
    • SIGNED (TRADE) Endpoint security
      • Timing security
    • Public API Endpoints
      • Terminology
      • ENUM definitions
      • General endpoints
      • Market Data endpoints
        • Order book (USER_DATA)
        • Recent trades list (USER_DATA)
      • Trading endpoints
        • New order (TRADE)
        • Cancel order (TRADE)
        • Current open orders (TRADE)
        • Trade history (TRADE)
      • Wallet endpoints
        • Wallet balance (WALLET)
        • Wallet balance by asset (WALLET)
    • Websocket (Socket.io)
    • Error Codes
    • Postman Collections
Powered by GitBook
On this page

Was this helpful?

  1. API Doc
  2. Public API Endpoints
  3. Trading endpoints

New order (TRADE)

POST /api/v3/order

Send in a new order. (Захиалга оруулах)

Parameters:

Name
Type
Mandatory
Description

symbol

STRING

YES

side

ENUM

YES

type

ENUM

YES

quantity

DECIMAL

NO

price

DECIMAL

NO

total

DECIMAL

NO

timestamp

LONG

YES

Some additional mandatory parameters based on order type:

Type
Additional mandatory parameters
Additional Information

LIMIT

quantity, price

MARKET

quantity or total

When side is SELL quantity param is required. When side is BUY total param is required

Response RESULT:

{
  "status": true,
  "code": "0000",
  "msg": [
    "Амжилттай"
  ],
  "data": {
    "id": "faa1074c-ed19-4674-ba30-9844a31bfdd3",
    "symbol": "TRD/MNT",
    "side": "BUY",
    "price": 6,
    "qty": 1000,
    "total": 6000,
    "created_at": "2006-01-02T13:39:59.97487+08:00",
    "side_name": "Авах"
  }
}
PreviousTrading endpointsNextCancel order (TRADE)

Last updated 1 year ago

Was this helpful?