LUCIT-Systems-and-Development / unicorn-binance-websocket-api

A Python SDK by LUCIT to use the Binance Websocket API`s (com+testnet, com-margin+testnet, com-isolated_margin+testnet, com-futures+testnet, com-coin_futures, us, tr, dex/chain+testnet) in a simple, fast, flexible, robust and fully-featured way.
https://unicorn-binance-websocket-api.docs.lucit.tech/
Other
678 stars 166 forks source link

current-average-price #177

Closed chocho13 closed 3 years ago

chocho13 commented 3 years ago

Is your feature request related to a problem? Please describe. Not related to a problem

Describe the solution you'd like I would like get average current price for a symbol avalaible here : https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md#current-average-price

Describe alternatives you've considered Until now I calculate the mean of open_price and close_price of kline1m and calculate over 20 iterations of the previous calculation

Additional context No additional context

Thank you :)

oliver-zehentleitner commented 3 years ago

What you want is for REST API: https://github.com/oliver-zehentleitner/unicorn-binance-rest-api

This is the repository for Websocket API.