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
    • Current Funding Rate
      GET
    • Funding Rate History
      GET
    • Futures Portfolio Summary
      GET
    • Get Futures Open Positions
      GET
  1. Trading

Get Trade by Trade ID

GET
https://api.onetrading.com/fast/v1/account/trade/{trade_id}
Get information about an executed trade using the exchange generated trade_id.
Will only return trades from the last 30 days.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.onetrading.com/fast/v1/account/trade/'
Response Response Example
200 - Success
{
  "fee": {
    "fee_amount": "0.29",
    "fee_currency": "EUR"
  },
  "trade": {
    "trade_id": "a7b6f4f8-0278-40a1-a435-7d02f93bafd0",
    "order_id": "ff119f4e-7918-4bec-8816-75d5b57865d1",
    "account_id": "726288e6-a463-4f88-9068-024ae8f97a34",
    "amount": "1",
    "side": "SELL",
    "instrument_code": "SOL_EUR",
    "price": "145",
    "time": "2024-11-14T10:26:57.241Z",
    "sequence": "58894265752",
    "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
trade_id
string <uuid>
required
The trade ID to fetch trade details for

Responses

🟢200Success
application/json
Body
fee
object (Fee) 
required
fee_amount
string 
required
The amount paid in the fee currency
fee_currency
string 
required
The currency the fee was paid in
trade
object (Trade) 
required
trade_id
string <uuid>
required
Unique identifier of the trade
order_id
string <uuid>
required
Unique identifier of the order the trade belongs to
account_id
string <uuid>
required
The account ID the trade belongs to
amount
string 
required
The amount of currency for this trade matched at
side
enum<string> 
required
BUY or SELL
Allowed values:
BUYSELL
instrument_code
string 
required
The market identifier for the trade
price
string 
required
The price at which the trade matched at
time
string <date-time>
required
The time the trade was executed
sequence
string 
required
An incremental identifier for tracking the trade in the exchange
matched_as
enum<string> 
required
MAKER or TAKER
Allowed values:
MAKERTAKER
🟠400Bad Request
🟠404Not Found
Previous
Get Trades
Next
Introduction
Built with