Open bltierney opened 2 years ago
Brian @bltierney,
I just saw this, I'm so sorry I didn't respond sooner :(
I've no idea what's wrong and need more more information, please run a with RUST_LOG=trace
and grab the output.
Below I use tee
which pipes the output to file, fchd.trace
, and the screen. You can also just grab the output from your terminal window and place it in a file. Then attach the file:
wink@3900x:~/prgs/rust/myrepos/binance-cli (main)
$ RUST_LOG=trace cargo run fcdh -c configs/wink-config.toml | tee fchd.trace
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Running `target/debug/binance-cli fcdh -c configs/wink-config.toml`
[2022-04-06T21:25:00Z TRACE binance_cli] main:+ args().len()=4
[2022-04-06T21:25:00Z TRACE binance_cli::configuration] Configuration::new: opt_config=Some(
"configs/wink-config.toml",
)
[2022-04-06T21:25:00Z TRACE binance_cli::configuration] config from file:
Configuration {
keys: Keys {
secret_key: "******",
api_key: "Ove7Pt",
},
order_log_path: Some(
"data/wink-order-log-v0.3.0.txt",
),
...
"expires": "0",
"access-control-allow-origin": "*",
"access-control-allow-methods": "GET, HEAD, OPTIONS",
"x-cache": "Miss from cloudfront",
"via": "1.1 e0559a822309b4036bf1911ebfc409ec.cloudfront.net (CloudFront)",
"x-amz-cf-pop": "SFO5-C1",
"x-amz-cf-id": "RDbVChblgR_1c5u3d6b2404ulPB0AleNitJ43fThrZC7KWwKFHkaBA==",
},
}
[2022-04-06T21:25:00Z TRACE binance_cli::binance_history] history_get_req_and_response: response_body={"assetLogRecordList":[]}
[2022-04-06T21:25:00Z TRACE binance_cli::binance_history] history_get_req_and_response: deposits=Histories { deposit_list: None, withdraw_list: None, asset_log_record_list: Some([]), success: None }
[2022-04-06T21:25:00Z TRACE binance_cli] main: -
[]
[2022-04-06T21:25:00Z TRACE want] signal: Closed
This might be a bug with the binance API, but I get this error with both fcdh and fcwh
cargo run fcdh Finished dev [unoptimized + debuginfo] target(s) in 0.25s Running
target/debug/binance-cli fcdh
Error: InternalErrorRec { code: 8, line: 203, fn_name: "", file: "src/binance_history.rs", msg: "ResponseErrorRec: test=false status=400 code=-1100 msg=Illegal characters found in a parameter. query=recvWindow=5000×tamp=1644969737426&signature=e9951eb93a761a8b8f538c819399db7b7fcaa640016ab2351e97e18d2ce44ef8" }other commands work fine.