tanX Docupaper
AboutTrade
  • ABOUT
    • 📒tanX Docupaper
  • 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
        • Bulk Cancel
        • List trades
      • 🔐Account
        • Generating L2 Key Pairs
        • Login
        • Deposit
        • Withdrawal
        • 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
        • Python SDK
  • LEGAL
    • ‼️tanX Disclaimer
Powered by GitBook
On this page
  • Endpoint
  • Query Params

Was this helpful?

  1. TECH
  2. API Documentation
  3. Market

K-line/Candlestick data

Get candle related info for particular markets

Retrieve K-line/Candlestick data for the specified by making use of this endpoint. You can define the limit, period, start time and end time for the same.

Endpoint

GET /sapi/v1/market/kline/

Query Params

Field
Type
Mandatory
Description

market

STRING

YES

limit

INTEGER

NO

default 30

period

INTEGER

NO

default 1, allowed values [1, 5, 15, 30, 60, 120, 240, 360, 720, 1440, 4320, 10080]

start_time

INTEGER

NO

end_time

INTEGER

NO

Example:

{baseurl}/sapi/v1/market/kline/?market=ethusdc&limit=100&period=240&start_time=1639468412end_time=1660636472

Response

{
  "status": "success",
  "message": "Retrieval Successful",
  "payload": [
    [1660634520, 1697, 1697, 1697, 1697, 0],
    [1660634520, 1697, 1697, 1697, 1697, 0],
    [1660634520, 1697, 1697, 1697, 1697, 0]
  ]
}

Note: Kline payload item as array of numbers

Example: [1660634520, 0.0839, 0.0921, 0.0781, 0.0845, 0.5895]

  1. Timestamp.

  2. Open price.

  3. Max price.

  4. Min price.

  5. Last price.

  6. Period volume

Previous24hr Tickers PriceNextOrderbook

Last updated 1 year ago

Was this helpful?

🔌
📈