Closed siegfried closed 2 years ago
@siegfried there are some mistakes, but also Binance documentation does not match the data returned.
match market.open_interest_statistics("BTCUSDT", "5m", 10, None, None) {
Ok(answer) => println!("Open interest: {:?}", answer),
Err(e) => println!("Error: {}", e),
}
Add to examples/binance_futures_endpoint.rs and you will see that timestamp is an integer, not a string.
Updated and it passed the test. Thanks for your help. Please review. @wisespace-io
I removed the extra field to pass the check.
error: field is never read: `extra`
94
--> src/errors.rs:11:5
95
|
96
11 | extra: HashMap<String, Value>,
97
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
98
|
99
= note: `-D dead-code` implied by `-D warnings`
@siegfried thank you for the fixes and the new feature.
I'm stuck in creating open interest statistics API. A strange error happened. Could you help me take a look how to fix this? Thanks. @wisespace-io