I can help you create a futures contract with USDT as the quantity parameter using the MetaTrader 5 API.
Here is an example of how you can do this:
bot.futures_create_order(
symbol = "FLMUSDT",
side = 'BUY',
type = "MARKET",
quantity = 12.0,
leverage = 100,
type2 = "LIMIT", // or "HOLD"
price_type1 = "BID" // or "ALLOCATE"
);
Here’s what each setting 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 if it’s a market order, LIMIT if it’s a limit order, or MAINTENANCE if it’s a hold order)
- “amount”: the amount you want to trade (in this case, the amount of USDT)
- “leverage”: the trading leverage factor
- “type2” and “price_type1”: these parameters are optional. For a LIMIT order, you can set
type2 = 'LIMIT'' and specify the price at which you want to limit your position (for example,
price_type1 = ‘BID’). You can settype2 = 'MAINTENANCE' for a MAINTENANCE order. The default values are:
+type2 = ‘MARKET’: market order
+ `price_type1 = ‘BID’: buy at the bid price and sell at the ask price
Please note that you should adjust these parameters according to your trading strategy and risk management approach.
Also, be sure to review the API documentation for MetaTrader 5 to ensure that you are using the correct parameters and formats.