Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test futures API endpoints #25

Open
Igosuki opened this issue Feb 21, 2022 · 8 comments
Open

Test futures API endpoints #25

Igosuki opened this issue Feb 21, 2022 · 8 comments
Labels
enhancement New feature or request futures

Comments

@Igosuki
Copy link
Owner

Igosuki commented Feb 21, 2022

Going to use futures in production so this part of the client has to be battle tested.

@Igosuki Igosuki added enhancement New feature or request futures labels Feb 21, 2022
@seongs1024
Copy link
Contributor

Examples aren't working.

Run with:

cargo run --features futures_api --example binance_futures

Error is:

[2022-06-16T03:27:22Z ERROR binance_futures] Error: BinanceError { response: BinanceContentError { code: 400, msg: "The endpoint has been out of maintenance", extra: {} } }

@Igosuki
Copy link
Owner Author

Igosuki commented Jun 16, 2022

Please kindly point to the outdated endpoints so I can remove the methods.

@Igosuki Igosuki closed this as completed Jun 16, 2022
@Igosuki Igosuki reopened this Jun 16, 2022
@Igosuki
Copy link
Owner Author

Igosuki commented Jun 17, 2022

@seongs1024 it's just that the endpoint needs to be removed from the API as it's not available anymore

@seongs1024
Copy link
Contributor

The error occurs from the function, get_all_liquidation_orders().

Other functions are working well, so that the example is running if below codes are commented out.

// from the line 107 to 112 in ./examples/binance-futures.rs

async fn market_data() {

    /* snippet */

    match market.get_all_liquidation_orders().await {
        Ok(LiquidationOrders::AllLiquidationOrders(answer)) => {
            info!("First liquidation order: {:?}", answer[0])
        }
        Err(e) => error!("Error: {:?}", e),
    }

    /* snippet */

}

@seongs1024
Copy link
Contributor

From binance API doc, the endpoint for get_all_liquidation_orders() is no longer available.

2021-04-27

WEBSOCKET

  • The following liquidation orders streams do not push realtime order data anymore. Instead, they push snapshot order data at a maximum frequency of 1 order push per second.:
    • <symbol>@forceOrder
    • !forceOrder@arr

REST

  • The endpoint GET /fapi/v1/allForceOrders stop being maintained and no longer accepts request.

So the functionality can be served only by websocket.

@Igosuki
Copy link
Owner Author

Igosuki commented Jul 15, 2022

@seongs1024 I removed the method from 1.1.9

@YeahNotSewerSide
Copy link
Contributor

YeahNotSewerSide commented Feb 13, 2023

Hi, I implemented some functions for endpoints in account
#79

@Marvino98
Copy link

Hi, I am a heavy futures API user. Can there be an implementation to transfer futures assets to spot wallet? https://binance-docs.github.io/apidocs/spot/en/#new-future-account-transfer-user_data @Igosuki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request futures
Projects
None yet
Development

No branches or pull requests

4 participants