One Trading API
REST APIWebSocket API
REST APIWebSocket API
  1. Trading
  • Public
    • Currencies
      GET
    • Instruments
      GET
    • Candlesticks
      GET
    • Fee Groups
      GET
    • Order Book
      GET
    • Market Ticker
      GET
    • Market Ticker For Instrument
      GET
    • Time
      GET
  • Trading
    • Balances
      GET
    • Fees
      GET
    • Get Orders
      GET
    • Create Order
      POST
    • Get Order by Order ID
      GET
    • Get Order by Client ID
      GET
    • Cancel All Orders
      DELETE
    • Cancel Order by Order ID
      DELETE
    • Cancel Order by Client ID
      DELETE
    • Get Trades for Order
      GET
    • Get Trades
      GET
    • Get Trade by Trade ID
      GET
  • Futures
    • Introduction
    • Funding Rate Methodology
    • Funding Payments
      GET
    • Current Funding Rate
      GET
    • Funding Rate History
      GET
    • Futures Portfolio Summary
      GET
    • Get Futures Open Positions
      GET
  1. Trading

Get Order by Order ID

GET
https://api.onetrading.com/fast/v1/account/orders/{order_id}
Get information about an existing order using the exchange generated order_id.
Will only return orders from the last 30 days.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.onetrading.com/fast/v1/account/orders/'
Response Response Example
200 - Example 1
{
    "order": {
        "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",
        "order_id": "93101167-9065-4b9c-b98b-5d789a3ed9fe",
        "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",
        "amount": "string",
        "side": "BUY",
        "instrument_code": "string",
        "price": "string",
        "time": "2019-08-24T14:15:22Z",
        "sequence": "string",
        "total_fee": "string",
        "fee_currency": "string",
        "time_last_updated": "string",
        "order_book_sequence": "string",
        "filled_amount": "string",
        "status": "BOOKED",
        "average_price": "string"
    },
    "trades": [
        {
            "fee": {
                "fee_amount": "string",
                "fee_currency": "string"
            },
            "trade": {
                "trade_id": "716cb486-5256-4659-973c-189b58daa723",
                "order_id": "93101167-9065-4b9c-b98b-5d789a3ed9fe",
                "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",
                "amount": "string",
                "side": "BUY",
                "instrument_code": "string",
                "price": "string",
                "time": "2019-08-24T14:15:22Z",
                "sequence": "string",
                "matched_as": "MAKER"
            }
        }
    ]
}

Request

Authorization
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Path Params

Responses

🟢200Success
application/json
Body

🟠404Record Not Found
🟠400Bad Request
Previous
Create Order
Next
Get Order by Client ID
Built with