List trades

A DEX market's latest trades, newest first. No key needed.

GET

A market's latest trades, newest first. settled turns true once a trade's payment is final on BNB Chain, usually within seconds. A trade whose payment fails is undone and leaves the list.

taker is the side whose order filled against one waiting in the book. Wallets and accounts never appear.

The answer is cached for 1 second. It counts 1 weight.

No key needed. Anyone can read it.

Path parameters

  • idstringRequired

    The market's id, such as binference-2026-10-24: bInference credit that ends on that day at 00:00 UTC. GET /dex/markets lists the open ones.

Query parameters

  • limitinteger

    How many trades, 1 to 500. 50 when left out.

Response

  • marketstring

    The market's id.

  • tradesobject[]

    The trades, newest first.

    • idstring

      The trade's id, unique in its market.

    • pricestring

      USDT per $1 of credit.

    • sizestring

      Dollars of credit traded.

    • taker"buy" | "sell"

      The side that took: buy when a buy order met a waiting sell order, sell the other way round.

    • freshboolean

      true for a sale of bInference's fresh credit.

    • settledboolean

      true once its payment is final on BNB Chain. If the payment fails, the trade is undone and leaves this list.

    • timeinteger

      When it matched, in milliseconds.

Errors

Each comes as JSON, { "error": { "code", "message" } }, with a stable code to branch on.

  • invalid_limit400

    limit is not a whole number in its range.

  • unknown_parameter400

    A query parameter this endpoint does not take, or one sent twice. Send only the parameters listed here, each once and written as shown: anything else is refused before it counts toward your weight.

  • not_found404

    The DEX is not open yet.

  • unknown_market404

    No open market has this id. A market that has closed answers this too. Take the ids from GET /dex/markets.

  • rate_limited429

    This IP address used more than 1,200 weight in a minute. Wait the seconds in Retry-After, then ask again.

Request
curl "https://binference.io/api/v1/dex/markets/binference-2026-10-24/trades?limit=2"
Response
{  "market": "binference-2026-10-24",  "trades": [    {      "id": "4182.1",      "price": "0.960",      "size": "25.00",      "taker": "buy",      "fresh": false,      "settled": true,      "time": 1792173581000    },    {      "id": "4179.1",      "price": "1.000",      "size": "40.00",      "taker": "buy",      "fresh": true,      "settled": true,      "time": 1792173482000    }  ]}