-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
Trying to login to my regular account gives an error with: error decoding response body: unknown variant `RAW_REQUESTS`, expected `ORDERS` or `REQUEST_WEIGHT` at line 1 column 324
Code used:
let cred: BinanceCredentials;
if SANDBOX {
cred = BinanceCredentials {
api_key: TEST_KEY.to_string(),
api_secret: TEST_SECRET.to_string(),
};
} else {
cred = BinanceCredentials {
api_key: API_KEY.to_string(),
api_secret: API_SECRET.to_string(),
};
};
let params = BinanceParameters {
sandbox: SANDBOX,
credentials: Some(cred),
};
let client = Binance::new(params.clone()).await?;
When SANDBOX is true I can freely login but when it's false it gives the error above.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels