I can guide you on how to create a futures order with USDT as the quantity parameter using the MetaTrader 5 API.
Here is an example of how you can do it:
bot.futures_create_order(
symbol = 'FLMUSDT',
side = 'BUY',
type = 'MARKET',
quantity = 12.0,
leverage = 100,
type2 = 'LIMIT', // or 'MAINTAIN'
price_type1 = 'BID' // or 'ASK'
);
Here’s what each parameter does:
symbol
: The symbol of the asset you want to trade (in this case FLMUSDT)
side
: The side of the order (BUY or SELL)
type
: The type of order (MARKET for a market order, LIMIT for a limit order, or MAINTAIN for a maintenance order)
quantity
: The quantity you want to trade (the amount of USDT in this case)
leverage
: The leverage factor for the trade
type2
andprice_type1
: These parameters are optional. For a LIMIT order, you can settype2 = 'LIMIT'
and specify the price at which you want to limit your position (e.g.price_type1 = 'BID'
). For a MAINTAIN order, you can settype2 = 'MAINTAIN'
. Default values are:
+ type2 = 'MARKET'
: market order
+ price_type1 = 'BID'
: Buy at the bid price and sell at the ask price
Note that you should tailor these parameters to your trading strategy and risk management approach.
Also check the API documentation for MetaTrader 5 to make sure you are using the correct parameters and formats.