Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R POST方法中的二进制API顺序端点_R_Api_Httr_Algorithmic Trading_Cryptocurrency - Fatal编程技术网

R POST方法中的二进制API顺序端点

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

我正试图通过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="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时,我也发现自己遇到了这种情况

您可能还发现他们的开发者电报组很有用