GET
/
pair
/
{pair_address}
/
analytic
/
swap_history
get_pair_swap_records
curl --request GET \
  --url https://dlmm-api.meteora.ag/pair/{pair_address}/analytic/swap_history
[
  {
    "bin_count": 123,
    "end_bin_id": 123,
    "fee_bps": 123,
    "in_amount": 123,
    "in_amount_usd": 123,
    "in_token": "<string>",
    "onchain_timestamp": 123,
    "out_amount": 123,
    "out_amount_usd": 123,
    "out_token": "<string>",
    "pair_address": "<string>",
    "protocol_fee": 123,
    "protocol_fee_usd": 123,
    "start_bin_id": 123,
    "trade_fee": 123,
    "trade_fee_usd": 123,
    "tx_id": "<string>"
  }
]

Path Parameters

pair_address
string
required

Address of the liquidity pair

Query Parameters

rows_to_take
integer
required

Number of records to take. Max 255.

Required range: x >= 0

Response

200 - application/json
bin_count
integer
required

Number of bin involved

end_bin_id
integer
required

Ending bin ID for the swap

fee_bps
number
required

Fee in BPS

in_amount
integer
required

Amount of token swapped in

in_amount_usd
number
required

Amount of USD value swapped in

in_token
string
required

Address of the token swapped in

onchain_timestamp
integer
required

Timestamp of the swap activity

out_amount
integer
required

Amount of token swapped out

out_amount_usd
number
required

Amount of USD value swapped out

out_token
string
required

Address of the token swapped out

pair_address
string
required

Address of the liquidity pair

protocol_fee
integer
required

Amount of protocol fee charged

protocol_fee_usd
number
required

Amount of protocol fee charged in USD

start_bin_id
integer
required

Starting bin ID for the swap

trade_fee
integer
required

Amount of fee charged

trade_fee_usd
number
required

Amount of fee charged in USD

tx_id
string
required

Transaction hash