Skip to content

Unable to login - Unknown variant #195

@dh-nunes

Description

@dh-nunes

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions