Get trades

gRPC service methodGetTradessource (GetPublicTradesRequest) -> (PublicTrades)

part of service PublicTradeService

MessageGetPublicTradesRequestsource

Request for public trades on a single market. If event_id and timestamp_ns are not provided, it will return the most recent amount of trades, limited by the number given in limit.

Fields
  • market required (enum Market) – E.g.: BTC_EUR, BTC_USD. validation constraints: non-default value only, defined values only
  • limit (uint32) –

    Maximum number of trades returned. Defaults to 1000.

    validation constraints: <= 1000, >= 0

    • One of the following fields may be set:
    • event_id (fixed64) – Return trades with id greater or equal to the one given.
    • timestamp_ns (fixed64) – Return trades with timestamp greater or equal. Unit in nanoseconds.

MessagePublicTradessource
Fields

MessagePublicTradesource

See also: Are IDs globally unique?

Fields