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