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

liquidationPrice Stream #17

Open
mohammad-rj opened this issue May 19, 2021 · 4 comments
Open

liquidationPrice Stream #17

mohammad-rj opened this issue May 19, 2021 · 4 comments

Comments

@mohammad-rj
Copy link
Contributor

mohammad-rj commented May 19, 2021

with Position Information V2 (USER_DATA) " GET /fapi/v2/positionRisk (HMAC SHA256) "
https://binance-docs.github.io/apidocs/futures/en/#position-information-v2-user_data

function positionRisk "$binance->trade()->getPositionRisk();"

we can get liquidationPrice of current open position on all symbols

but how we can get liquidationPrice on websocket streaming ?

there is a Stream Name: !forceOrder@arr on binnace doc
https://binance-docs.github.io/apidocs/futures/en/#all-market-liquidation-order-streams

It gives us // Original Quantity - // Price - // Average Price
but does not give a liquidation price!

so how we can stream the liquidationPrice ? is it possible ?

@zhouaini528
Copy link
Owner

I found that the Chinese document of binance is updated more slowly than the English document. I'll go to experiment first and then give you feedback.

@zhouaini528
Copy link
Owner

Sorry to reply to you now, you can do this

$binance->subscribe([
      '!forceOrder@arr'
]);

$data=$binance->getSubscribes();
print_r($data);

@mohammad-rj
Copy link
Contributor Author

tanks for answering

but there is not "liquidationPrice" in "!forceOrder@arr"

@zhouaini528
Copy link
Owner

I haven't used this data. After testing, I found that there is no such data "liquidationPrice". It can be combined with HTTP REST and websocket as an auxiliary method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants