MohammedRashad / Crypto-Copy-Trader

A copy trading tool for cryptocurrencies - Binance Exchange
Apache License 2.0
197 stars 84 forks source link

How to set custom ratio? #52

Open reachtarunhere opened 3 years ago

reachtarunhere commented 3 years ago

Hi! I understand the default ratio is according to the balance of accounts. I would like to override this and set ratio myself. If this feature is not available can you please point me to the parts of code where the ratio is decided so I can try modifying it.

Thanks a lot!

mokolotron commented 3 years ago

Hi. This feature is not available.

reachtarunhere commented 3 years ago

Thanks for the prompt reply. Can you clarify what order.quantityPart means here:

    quantity = self.calc_quantity_from_part(order.symbol, order.quantityPart, order.price, order.side)

is it the amount of coin bought by the master or fraction of the coin bought compared to available balance in master?

mokolotron commented 3 years ago

Yes it's a fraction of the coin bought compared to available balance in master.