Brine's Docupaper
AboutTrade
  • ABOUT
    • ๐Ÿ“’Brine Docupaper
    • ๐Ÿช™Tokenomics
  • ๐Ÿ—ž๏ธBrine Bytes
    • ๐ŸงตOctober Edition
  • TECH
    • ๐Ÿ‘ฉโ€๐Ÿ’ปTech Docupaper
      • ๐ŸจHigh level architecture
      • ๐Ÿค”Starkware logic
      • ๐ŸŒŠTransactional flow
        • Off-chain accounts
        • The deposit flow
        • The withdrawal flow
        • The trade flow
        • The transfer flow
        • Full withdrawal
    • ๐Ÿ”ŒAPI Documentation
      • ๐Ÿ˜‹Getting started
        • Test connectivity
      • ๐Ÿ“ˆMarket
        • 24hr Tickers Price
        • K-line/Candlestick data
        • Orderbook
        • Recent trades
      • โ†”๏ธTrading
        • Create order
        • Get order
        • List orders
        • Cancel order
        • List trades
      • ๐Ÿ”Account
        • Login
        • Profile Information
        • Balance details
        • Profit and loss details
      • ๐ŸŒWeb-socket stream
        • ๐Ÿ—๏ธPrivate web-socket connection
        • ๐Ÿ‘ฅPublic websocket connection
      • โœจInternal Transfer
        • Create Internal Transfer
        • Get Internal Transfer
        • Check User Existence
        • List Internal Transfers
      • ๐ŸงชSDK Reference
        • NodeJS SDK
  • FOR USERS
    • ๐Ÿ“’User Docuguide
      • ๐Ÿ’ปWeb App
        • Sign up through Metamask
        • Sign up through Wallet Connect
        • Place a Market Order Trade
        • Place a Limit Order Trade
        • Refer Brine to a Friend
        • Deposit with Metamask
        • Withdraw to Metamask
  • LEGAL
    • โ€ผ๏ธDisclaimer
Powered by GitBook
On this page
  • Endpoint
  • Query Params

Was this helpful?

  1. TECH
  2. API Documentation
  3. Market

Recent trades

Get a list of recent trades.

Retrieve the list of recent market trades placed successfully for a specific market using this endpoint.

Endpoint

GET /sapi/v1/market/trades/

Query Params

Field
Type
Mandatory
Description

market

STRING

YES

limit

INTEGER

NO

default 100

timestamp

INTEGER

NO

An integer represents the seconds elapsed since Unix epoch.If set, only trades executed before the time will be returned.

order_by

STRING

NO

default desc, allowed values [asc, desc]

Example

{baseurl}/sapi/v1/market/trades/?market=ethusdc&limit=100&timestamp=1667855520&order_by=desc

Response

{
  "status": "success",
  "message": "Retrieval Successful",
  "payload": [
    {
      "id": 456142,
      "price": 1336.63,
      "amount": 0.0375,
      "total": 50.123625,
      "market": "ethusdc",
      "created_at": 1667855520,
      "taker_type": "sell"
    },
    {
      "id": 456116,
      "price": 1336.63,
      "amount": 0.075,
      "total": 100.24725,
      "market": "ethusdc",
      "created_at": 1667850041,
      "taker_type": "sell"
    }
  ]
}
PreviousOrderbookNextTrading

Last updated 2 years ago

Was this helpful?

๐Ÿ”Œ
๐Ÿ“ˆ