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
  • Request Headers
  • Query Params

Was this helpful?

  1. TECH
  2. API Documentation
  3. Trading

List trades

Get trades with filters. (Private ๐Ÿ”’)

PreviousCancel orderNextAccount

Last updated 1 year ago

Was this helpful?

Retrieve details of all trades executed for a user by making use of certain filters. Please note that this is a Private ๐Ÿ”’ route which means it needs to be authorized by the account initiating this request.

Note: You will need to include the JWT Auth token to request headers to access this endpoint. To get the JWT Auth Token, refer the section of the documentation.

Endpoint

GET /sapi/v1/trades/

Request Headers

{
  "Authorization": "JWT ***"
} 

Query Params

Field
Type
Mandatory
Description

limit

INTEGER

NO

default 100

page

INTEGER

NO

market

STRING

NO

start_time

INTEGER

NO

end_time

INTEGER

NO

order_by

STRING

NO

default desc, allowed values[asc, desc]

Example

{baseurl}/sapi/v1/trades/?limit=10&page=1&market=ethusdc

Response

{
  "status": "success",
  "message": "Trades Retrieved Successfully",
  "payload": [
    {
      "id": 7281,
      "price": "1134.0",
      "amount": "0.001",
      "total": "1.134",
      "fee_currency": "eth",
      "fee": "0.001",
      "fee_amount": "0.000001",
      "market": "ethusdc",
      "created_at": "2022-06-16T22:41:49+02:00",
      "taker_type": "sell",
      "side": "buy",
      "order_id": 1739940
    },
    {
      "id": 7280,
      "price": "1134.0",
      "amount": "0.001",
      "total": "1.134",
      "fee_currency": "eth",
      "fee": "0.001",
      "fee_amount": "0.000001",
      "market": "ethusdc",
      "created_at": "2022-06-16T22:37:56+02:00",
      "taker_type": "sell",
      "side": "buy",
      "order_id": 1739937
    }
  ]
}
๐Ÿ”Œ
โ†”๏ธ
login