Wie man eine Otoco -Bestellung durch die Binance -API in Python platziertPython

Python-Programme
Anonymous
 Wie man eine Otoco -Bestellung durch die Binance -API in Python platziert

Post by Anonymous »

versucht, die in Params detaillierte Bestellung mit < /p>
zu übermitteln

Code: Select all

response = requests.post(f"{base_url}/sapi/v1/margin/order/otoco", headers=headers, params=params)
< /code>
Es wird nur durchgeführt, wenn die Daten "anhängig" bereitgestellt werden. Andernfalls erhalte ich < /p>

Fehler: 400, {{ "Code":-1102, "msg": "Obligatorischer Parameter
'PendingaboveType | anhängigerBelowType' wurde nicht gesendet, war leer /null oder
malFormed."creded."cur 
< /blockquote>
Ich möchte nur eine anhängige Grenzbestellung. Wie tue ich das oder muss ich beispielsweise PendinBelowprice = 0? p>
params = {
"symbol": "BTCUSDT",
"isIsolated": "FALSE",
"sideEffectType": "MARGIN_BUY",
"workingType": "LIMIT",
"workingSide": "BUY",
"workingPrice": 80000,
"workingQuantity": 0.0002,
"workingTimeInForce": "GTC",
"pendingSide": "SELL",
"pendingQuantity": 0.0002,
"pendingAboveType": "LIMIT_MAKER",
"pendingAbovePrice": 110000,
#"pendingBelowType": "STOP_LOSS_LIMIT",
#"pendingBelowPrice": 70000,
#"pendingBelowStopPrice": 60000,
#"pendingBelowTimeInForce": "GTC",
'timestamp': int(time.time() * 1000),
}

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post