Satori Finance Docs
  • ✨About Satori Finance
  • 👉Beginner's Guide
    • Deposit & Withdrawal
    • Trading
  • 💸Perpetual Trading
    • Matchmaking
    • Margin
    • Isolated/Cross Margin
    • Funding Costs
    • Trading fees
    • Index Price
    • Mark Price
    • Liquidations
    • Insurance Funds
    • Automatic Deleveraging
  • 🌽Vaults
  • 📲Telegram Mini APP
  • 🚀Liquid Restaked Tokens (LRT)
  • 🔥Points
  • 🎉Trading Competition
    • Satori Season2 Trading Competition Backed by Hemi
  • 🎭Referrals
  • 🦄Ecosystem Partner Incentives
  • API DOCS
    • 👨‍💻OpenAPI
      • Introduce
      • Auth
      • URL
      • Response Code
      • Rest API
        • A complete example
        • Order Operation 【Private Operation】
          • Create order
          • Batch create orders
          • Cancel order
          • Batch Cancel orders
        • Position Operation 【private operation】
          • Add/reduce margin
        • 【Private Query】
          • [Account] Query account balance
          • [Order] Query current order list
          • [Trade] Query match result
          • [Position] Query position list
        • 【Public Query】
          • System time
          • Index price
          • Mark price
          • Last trade
          • Pair list
      • WebSocket
        • Events
        • Subscription
          • Basic parameters
          • Example
          • Account
          • Orders
          • Positions
          • Trades
Powered by GitBook
On this page
  1. API DOCS
  2. OpenAPI
  3. Rest API
  4. 【Public Query】

Last trade

method url:/api/third/info/trades

request type:GET

request param:

param_name

param note

type

required

data type

schema

pairName

query

true

string

limit

default 50

query

false

integer(int32)

response param:(Array)

param_name

param note

type

schema

  amount

number

  contractMatchPairId

integer(int64)

  contractPairId

integer(int64)

  isLong

boolean

  price

number

  quantity

number

  time

string

  timestamp

integer(int64)

  pair

string

example:

1 Set request parameters, query params:

pairName:ETH-USD
limit:1

2 Assemble the complete request

curl --location 'https://zk-test.satori.finance/api/third/info/trades?pairName=ETH-USD&limit=1'

3 Return results

{
    "error": false,
    "code": 200,
    "msg": "SUCCESS",
    "data": [
        {
            "contractMatchPairId": 7843437,
            "contractPairId": 1,
            "pair": null,
            "price": "3203.93",
            "quantity": "1.111",
            "amount": "3559.56623",
            "isLong": true,
            "time": "09:48:45",
            "timestamp": 1714988925000
        }
    ],
    "sid": "1798296230509510659"
}

Error Code:

code

msg

2001

Illegal parameter: {param0}

PreviousMark priceNextPair list

Last updated 7 months ago

👨‍💻