Categories: CRYPTOCURRENCY

by admin

Share

Categories: CRYPTOCURRENCY

by admin

Share

I provide you with an article on how to retrieve the status of the order, quantity and page because I will give you the API Binance.

Ethereum furtures status status, quantity and retel-retoss binance api **

Ass of crypto -trader, it is necessary to stay in the current state of the market trends and effectively carry out stores. In this article, we will examine how to re -evaluate the condition, quantity and party from Ethereum of an uprained order to apply the Binance API.

assumptions

Before you continue, make sure you have:

  • A binant account

  • Installed Binance Python Library (“Pip Installation Binance Python”

  • Valid token API (eg acess_token)

Status and quantity of orders to order *

If you want to returns the status of the order, wet to use the endpoint Get /Orderid}. Here is the sample code code:

`python

proposals for import

Def Get_order_status (Order_id):

Api_key = "your_api_KEY"

API_SECRET = "Your_api_secret"

Ethereum: Get Futures order status, qty, side Binance

Set the endpoint and API headers

Base_url = F "

params = {

"Query": F "Get /Orders? Orderid = {Order_id} & Fields = Status",

"Key": Api_Key,

"Secret": Api_secret,

“Forms”: “Yson”

}

Send a request to get

Response = Requests.get (Base_url, Params = Params)

Check to see if the answer was

If Response.Status_code == 200:

Return Response.Json () [Result "] [0]

otherwise:

Print (f "Assire: {rense.status_code}"))

Not

Example

Order_id = "123456789012

Status = Get_order_status (Order_id)

If the condition is not:

Print (f "Order status: {status ['FIELDS'] ['Status']}))

Re

Retrigation of the order and party

We can use the endpoint of Get /Orderid} /Fills to get an order quantity. To get a page (buy or cell), you need to make another API request singing the same parameters.

`python

Def Get_order_quantity (Order_id):

Api_key = "your_api_KEY"

API_SECRET = "Your_api_secret"

Set the endpoint and API headers

Base_url = F "

params = {

"Query": F "Get /Orders? Orderid = {order_id} & Fields = Quanity & Limits & Limits = 1"

"Key": Api_Key,

"Secret": Api_secret,

“Forms”: “Yson”

}

Send a request to get

Response = Requests.get (Base_url, Params = Params)

Check to see if the answer was

If Response.Status_code == 200:

Return Response.Json () [Result "] [0] [FIELDS"] ["Quantity"]

otherwise:

Print (f "Assire: {rense.status_code}"))

Not

Def Get_order_Side (Order_id):

Api_key = "your_api_KEY"

API_SECRET = "Your_api_secret"

Set the endpoint and API headers

Base_url = F "

params = {

"Query": F "Get /Orderdererid = {order_id} & Fields = side and Limit & Limit & Limit = 1"

"Key": Api_Key,

"Secret": Api_secret,

“Forms”: “Yson”

}

Send a request to get

Response = Requests.get (Base_url, Params = Params)

Check to see if the answer was

If Response.Status_code == 200:

Return Response.Json () [result "] [0] [FIELDS"] ["Side"]

otherwise:

Print (f "Assire: {rense.status_code}"))

Not

Example

Order_id = "123456789012

Status = Get_order_status (Order_id)

If the condition is not:

Movie = Get_order_quantity (Order_id)

Page = Get_order_Side (Order_id)

Print (f "Order status: {status ['FIELDS'] ['Status']}))

Print (f "Quantity: {quantity}")

Print (F "Page: {side}")

Re

Note : Remember to replicate your_api_key a your_api_seret` with your real API binance credentials.

ethereum chainlink stuck submit etherscan

STAY IN THE LOOP

Subscribe to our free newsletter.

Don’t have an account yet? Get started with a 12-day free trial

Leave A Comment

Related Posts

  • Multiple platform trafficking: Maximizing your business potential in the crypto -market market The world of cryptocurrencies develops rapidly and new and exciting opportunities appear every day. . One key aspect he received ** What is trading with cross platforms? Multiple platform trading applies to the ability to trade cryptocurrencies on multiple platforms simultaneous, such as […]

  • Reading and interpretation of cryptocurrency trading volume charts As the popularity of cryptocurrencies continues to grow, traders and investors are increasingly using on -line platforms and tools to monitor market trends and make informed decisions. A crucial aspect of cryptocurrency negotiation is to understand how to read and interpret trading volume charts. In this article, […]

  • Calculating ROI in Cryptocurrency Investments: A Comprehensive Guide Cryptocurrencies has always revolutionized With the rapid of the brand, many investors are to get in the action. However, with the numerous options available, it can can be determine it in investing in in or not. In this article, we will delve in the world of cryptocurrence […]

  • Cardano (ADA): revolutionize the landscape of cryptocurrency with its unique characteristics In the world of cryptocurrencies, few projects have attracted as much attention and momentum as Cardano (ADA). Founded in 2017 by Charles Hoskinson, a renowned blockchain expert and co-founder of Ethereum, Cardano quickly gained popularity among cryptocurrency fans and investors. One of the main […]