我正尝试使用R将POST请求发送到HitBtc Exchange。我的首选是使用“ httr”包,因为我已将它与Binance API广泛结合使用。即使遵循了HitBtc API中的所有步骤:https://github.com/hitbtc-com/hitbtc-api/blob/master/APIv2.md#currencies
我不断收到“ 400错误请求”的回报。
能否请您告诉我一次成功的POST呼叫可以在HitBtc上下订单。
我当前的代码是这样的:-
query = list(
"symbol" = "EOSUSD",
"side" = "buy",
"type" = "limit",
"timeInForce" = "GTC",
"quantity" = "1",
"price" = "7.00"
)
POST(
url = "https://api.hitbtc.com/api/2/order",
authenticate(user = API_KEY, password = API_SECRET, type = "basic"),
# add_headers(auth = c(API_KEY, API_SECRET)),
query = query,
verbose()
)
谢谢