Skip to content

Connector client error: invalid type: boolean false when using DerivativesTradingUsdsFuturesRestApi's symbol_configuration #82

@joelchen

Description

@joelchen
let futures_client = DerivativesTradingUsdsFuturesRestApi::production(config);
let params = SymbolConfigurationParams::default();
let output = futures_client.symbol_configuration(params).await;
if let Ok(response) = output {
    match response.data().await {
        Ok(configurations) => println!("a: {:?}", configurations),
        Err(e) => eprintln!("b: {}", e)
    }
}
let result = SymbolConfigurationParams::builder().symbol("BTCUSDT".to_string()).build();
if let Ok(params) = result {
    let output = futures_client.symbol_configuration(params).await;
    if let Ok(response) = output {
        match response.data().await {
            Ok(configurations) => println!("c: {:?}", configurations),
            Err(e) => eprintln!("d: {}", e)
        }
    }
}

The above code yields the following:

b: Connector client error: invalid type: boolean `false`, expected a string at line 1 column 67
d: Connector client error: invalid type: boolean `false`, expected a string at line 1 column 68

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