Th0rgal / binance.py

A python3 binance API (v3) wrapper powered by modern technologies such as asyncio. The project aims to rival python-binance.
https://th0rgal.gitbook.io/binance-py/
MIT License
60 stars 19 forks source link

Error in code: OCO orders #33

Open AgentBelfort opened 1 year ago

AgentBelfort commented 1 year ago

There is some problem in code. It is impossible to create OCO order: in client.py: if stop_client_order_id: params["stopLimitPrice"] = self.refine_price(symbol, stop_client_order_id) need to be changed to: if stop_limit_price: params["stopLimitPrice"] = self.refine_price(symbol, stop_limit_price) or we gat an error when creating an order: Stop loss orders are not supported for this symbol.

AgentBelfort commented 1 year ago

Also some errors in docs:

image

Real name of the method is client.create_oco