#include #include #include <binance/um_futures.h> #include <binance/utils.h> #include <binance/error.h>

using namespace std;

int main() { config_logging(logging, logging.DEBUG);

// HMAC authentication with API key and secret
string key = "";
string secret = "";

UMFutures hmac_client(key, secret);
logging.info(hmac_client.account(recvWindow=6000));

return 0;

}

将以下python代码改写成C++版本不包含binance的头文件:#!usrbinenv pythonimport loggingfrom binanceum_futures import UMFuturesfrom binancelibutils import config_loggingfrom binanceerror import ClientErrorconfig_logginglog

原文地址: https://www.cveoy.top/t/topic/cxVj 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录