R POST方法中的二进制API顺序端点
我正试图通过R中的Binance API下订单,我的所有其他端点都工作,但这一次,我收到错误HTTP/1.1 400错误请求…请帮助R POST方法中的二进制API顺序端点,r,api,httr,algorithmic-trading,cryptocurrency,R,Api,Httr,Algorithmic Trading,Cryptocurrency,我正试图通过R中的Binance API下订单,我的所有其他端点都工作,但这一次,我收到错误HTTP/1.1 400错误请求…请帮助 **url="https://api.binance.com/api/v3/order/test" timestamp <- GET( url = "https://api.binance.com", path = "/api/v1/time") timestamp=content(timestamp, as="p
**url="https://api.binance.com/api/v3/order/test"
timestamp <- GET(
url = "https://api.binance.com",
path = "/api/v1/time")
timestamp=content(timestamp, as="parsed")
timestamp=timestamp$serverTime
signature <- openssl::sha256(postmsg, key=secretKey)
postmsg <- paste0("timestamp=", timestamp, "&recvWindow=", recvWindow,"&symbol=",symbol,
"&side=",side,"&type=",type,"&quantity=",quantity,"&timeInForce=",timeInForce)
signature <- openssl::sha256(postmsg, key=secretKey)
order = POST(
url = url,
content_type('application/json'), add_headers(.headers = c("X-MBX-APIKEY"=apiKey)),
query=list(signature=signature),
encode = 'json'
)**
**url=”https://api.binance.com/api/v3/order/test"
时间戳最常见的原因()是每个订单都需要最低成本-0.001 BTC、0.01 ETH或1 BNB或1 USDT,具体取决于您使用的4个报价符号之一
当提交仅接受整数的符号对的数量小于1时,我也发现自己遇到了这种情况
您可能还发现他们的开发者电报组很有用