Ethereum: how to create order with USDT as quantity parameter?

I can lead this how to create a future order with USDT as a quantity parameter using the API Metatrader 5 interface.

Here is an example of how you can do it:

`Javascript

bot.futures_create_order (

Symbol = "FLMUSDT",

Page = "Purchase",

Type = "market",

Quantity = 12.0,

lever = 100,

Type 2 = "Limit", // or "Keep"

Price_type1 = "bid" // or "ask"

);

Here’s what every parameter does:

  • Symbol: Symbol of the assets you want to negotiate (in this case, Flmusdt)

  • Side: order page (buy or sell)

  • Type ': type of order (market order market, limit limit limit or maintenance of a maintenance order)

  • Quantity ': the amount you want to negotiate (in this case the value of USDT)

  • Lever: Trade lever factor

  • Type2 ePrice_type1: These parameters are optional. If you order a limit, you can set “Type2 =” Limit “and specify the price at which you want to limit your position (e.g.price_type1 = 'bid' '). If you order maintenance, you can define "Type2 =" Keep ". The default values ​​are:

+Type2 =” Rynek “: market order

+ `Cena_type1 =” bid “: Buy for the price of the offer and sales for the price of the questions

Remember that these parameters should be adjusted according to the negotiating strategy and the approach to risk management.

Also check the API documentation for Metatrader 5 to make sure you use the correct parameters and formats.

Comments

Leave a Reply

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