LogoLogo
  • Getting Started
  • How to Connect
  • REST API
    • Order
    • PublicMarketData
    • Wallet
    • Trade
    • Models
  • Smart Contract ABI
    • OrderBook
    • Order Data (explanation)
  • Websocket API
    • Orderbook
    • Ticker
  • SDK Documentation
    • Getting Started
    • REST API Interaction
    • Smart Contract Interaction
      • Order Placement
      • Order Cancelation
Powered by GitBook

Privacy

  • Privacy Policy

All rights reserved. 21X AG

On this page
Export as PDF
  1. REST API

Order

PreviousREST APINextPublicMarketData
  • GETgetWalletOrders
  • POSTcreatePrimaryMarketOrder

getWalletOrders

get

Returns all open orders sent from the specified wallet, optionally restricted to one trading pair. If only_open is False, returns completed, cancelled and rejected orders instead.

Authorizations
Path parameters
wallet_addressstringRequired
Query parameters
trading_pairstringOptional
only_openbooleanOptional
cursorstringOptional

Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous response.

limitinteger · int64Optional

The maximum number of items to return.

countbooleanOptional

Returns the total number of items in the collection.

Responses
200
OK
application/json
default
Unexpected error
application/json
get
GET /api/v1/wallets/{wallet_address}/orders HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
{
  "items": [
    {
      "id": "text",
      "creationDate": "2025-06-01T07:52:50.096Z",
      "modificationDate": "2025-06-01T07:52:50.096Z",
      "externalOrderId": 1,
      "tradingPairId": "text",
      "orderKind": "BUY",
      "orderType": "LIMIT",
      "initialQuantity": "text",
      "remainingQuantity": "text",
      "priceLimit": "text",
      "status": "OPEN",
      "statusReason": "N_A",
      "statusChangeTime": "2025-06-01T07:52:50.096Z",
      "finalityStatus": "NON_FINAL",
      "ownerReportingData": "text",
      "crossIdentifier": 1,
      "validUntil": "2025-06-01T07:52:50.096Z",
      "executionCondition": "NONE",
      "address": "text"
    }
  ],
  "next_cursor": "text",
  "total_count": 1
}

createPrimaryMarketOrder

post
Authorizations
Path parameters
wallet_addressstringRequired
Body
signaturestring · max: 255Required

Digital signature of the payload data, created by the sending wallet

Responses
200
OK
default
Unexpected error
application/json
post
POST /api/v1/wallets/{wallet_address}/primarymarketorder HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 208

{
  "payload": {
    "orderKind": "BUY",
    "financialInstrumentId": "text",
    "quantity": "text",
    "quantityType": "UNIT",
    "priceLimit": "text",
    "settlementCurrency": "text",
    "timestamp": "text",
    "additionalData": {}
  },
  "signature": "text"
}

No content