islamic_university_of_science__technology_pulwama_logo-modified

Ethereum: How to close a short or long position in binance futures?

Closed Short or Dlinny Posits in Binance Futures: Blood handling

Did you get there from the Receivement, when your position is closed on Futures Binance? Do you want to go down the unnatural orders arranged by market and other traders? C. In this state, we will draw you the process of closed a new order.

PROVIDERS

Before you will start, you have to do that you have the following:

  • Binance API ACCESS :

2

Field

Blood Instruction

Creation of a new order:

  • Repeated Date Out Your Position : Use Position for Popular Torgovli:

`Piton

Shortqty = Float (Position ['Oroucqty'])

2 field

Field

`Piton

Order = Client.futures.Create_order (

Symbol = binance_futures_symbol,

Side = 'Close',

Type = binance_futures_order_type,

colicity = short,

CHOICE = NONE

INTEREIGIPT: Set up time

)

Obrath the unicaniary that the setting Expiration is not obsessed and only takes on the use of the concrete tip. If you do not install, the position of the non -renovated.

4.

`Piton

Order_id = client.futures.get_order_id (Order ['ID'])

Print (Order_id)

Closed and long -legged

Creating and replacement, using the same step and change Shortqty on the amount you want to sell (then there is market value).

`Piton

Longqty = Float (Position ['Oroucqty'])

Order = Client.futures.Create_order (

Symbol = binance_futures_symbol,

Side = 'Close',

Type = binance_futures_order_type,

Qulicity = Longqty,

CHOICE = NONE

INTEREIGIPT: Set up time

)

Verify the order

Order_id = client.futures.get_order_id (Order ['ID'])

Print (Order_id)

Important Notes

  • At the closure of the position, the other traders can also close your position.

Field

  • All the way to check out the orders, pre -run.

Binance Futures, no new orders. Do not forget to remain a bittening one and shut down behind your positions close to be killed that they remain in your poll.

solana nested reference signer

Leave a Reply

Your email address will not be published. Required fields are marked *