Skip to main content

Trades

Retrieve recent trade transactions for a specific symbol.

Endpoint

GET /trades

Parameters

ParameterTypeRequiredDescription
symbol_namestringYesThe trading pair symbol (e.g., BTC_USDT).

Response

JSON Array of Objects


Response Fields

FieldTypeDescription
aint8Order Action
pstringPrice at which the trade occurred.
vstringVolume of the base coin traded (e.g., BTC for BTC_USDT).
tstringTimestamp when the trade occurred (in milliseconds).

Example Usage

curl --location 'https://spot-markets.goonus.io/trades?symbol_name=BTC_USDT'

Response Example

[
{
"a": 0,
"p": "3.0000000",
"v": "0.050",
"t": "1720780956931"
},
{
"a": 1,
"p": "3.0000000",
"v": "0.150",
"t": "1720780957097"
},
{
"a": 0,
"p": "2.0000000",
"v": "0.100",
"t": "1720780957097"
}
]

note
  • Sorting: Transactions are sorted from oldest to newest.