Get Trades

Retrieve all trades under exchange client

GET https://api.ajaib.co.id/coin/internal/v1/trades

Functionality: Retrieves all trades belonging to the exchange client's trading account. No sub-accounts yet.

Authentication: Required

Request Param

Name
Type
Mandatory
Description

symbol

string

Symbol of trading pair. Refer to this

from_trade_id

long

trade_id to fetch from. Returns the most recent trades by default. (exclusive)

limit

int

default 100, max 1000

Response Body

Name
Type
Description

symbol

string

Symbol of trading pair. Refer to this

order_id

long

Unique identifier generated by Ajaib exchange for all orders submitted successfully

order_side

string

Side of trade's parent order. Refer to this

trade_id

long

Unique identifier generated by Ajaib exchange for all trades generated or matched

price

decimal

Price of trade / match execution.

quantity

decimal

Quantity of trade / match execution.

timestamp

long

Timestamp of when trade is generated or match execution. Using UTC timezone in unix epoch

is_maker

boolean

Flag whether trade is classified under maker or taker

is_self_trade

boolean

Flag whether trade is tagged or identified as self trading or not

[
    {
        "symbol": "BTC_USDT",
        "order_id": 100234,
        "order_side": "BUY",
        "trade_id": 28457,
        "price": 4.00,
        "quantity": 2.00,
        "timestamp": 1499865549590,
        "is_maker": true,
        "is_self_trade": true
    }, 
    {
        "symbol": "BTC_USDT",
        "order_id": 100234,
        "order_side": "BUY",
        "trade_id": 28458,
        "price": 4.00,
        "quantity": 8.00,
        "timestamp": 1499865549590,
        "is_maker": true,
        "is_self_trade": true
    }
]

Last updated