Market Cap: $3.9449T -0.850%
Volume(24h): $215.1235B 33.320%
Fear & Greed Index:

62 - Greed

  • Market Cap: $3.9449T -0.850%
  • Volume(24h): $215.1235B 33.320%
  • Fear & Greed Index:
  • Market Cap: $3.9449T -0.850%
Cryptos
Topics
Cryptospedia
News
CryptosTopics
Videos
Top Cryptospedia

Select Language

Select Language

Select Currency

Cryptos
Topics
Cryptospedia
News
CryptosTopics
Videos

how upbit query works

To query orders on Upbit, make an HTTP GET request to the `/v1/orders` API endpoint with query parameters such as `state`, `pair`, and `limit`, and include your API key and secret for authentication.

Oct 25, 2024 at 05:22 pm

How Upbit Query Works

1. Preparation

  • Install the Upbit SDK or API package.
  • Obtain your Upbit API key and secret from the Upbit website.

2. API Endpoint

  • For the query, use the following API endpoint:

    • /v1/orders (for spot orders)
    • /v1/orders/chance (for limit orders)

3. Query Parameters

  • To query orders, you need to specify the following parameters:

    • state (optional): Filter orders by state (e.g., "done", "cancel").
    • pair (optional): Filter orders by currency pair (e.g., "BTC-USDT").
    • min_created_at (optional): Filter orders created after a specific timestamp (ISO 8601).
    • max_created_at (optional): Filter orders created before a specific timestamp (ISO 8601).
    • limit (optional): Specify the maximum number of orders to return (default: 100, maximum: 1000).

4. HTTP Request

  • Make an HTTP GET request to the API endpoint with the specified query parameters.
  • Include your API key and secret in the request headers.

5. Response

  • The response is a list of orders in JSON format.
  • Each order object contains information such as:

    • Order ID
    • Order state
    • Order side (buy/sell)
    • Order type (spot/limit)
    • Currency pair
    • Order price
    • Order quantity
    • Order timestamp

6. Handle Response

  • Parse the JSON response and extract the desired data.
  • Process and display the order information as needed.

Disclaimer:info@kdj.com

The information provided is not trading advice. kdj.com does not assume any responsibility for any investments made based on the information provided in this article. Cryptocurrencies are highly volatile and it is highly recommended that you invest with caution after thorough research!

If you believe that the content used on this website infringes your copyright, please contact us immediately (info@kdj.com) and we will delete it promptly.

Related knowledge

See all articles

User not found or password invalid

Your input is correct