-
Notifications
You must be signed in to change notification settings - Fork 41
Real buy amount is not the same with the input amount #9
Comments
Just a follow up for this problem. Looking at the trader.php code for buyBTC function, it doesn't specify in which cryptocurrency that it will buy (ETH or BTC), and i assume it will default to BTC since variable $buy will only equal to the value $amount/($this->buyPrice)
|
fixed that by changing $buy to this for function buyBTC and sellBTC
testing the bot
Case solved. |
oh wow.. for some reason with € it works with the old code. Want to send a pull request? |
nevermind, already pushed it |
Hi,
So i finally brave enough to turn off simulation for the trader.php and see how it operates with coinbase, but i ran into a serious issue. So i tried to buy 5 usd worth of eth using the trader.php and sell it after it reaches 6 usd in profit. Here's the command i used:
But then i received an email from coinbase, stating that i initiated a buy for 99.13 USD (1.13892042 ETH). The amount that i bought is not the same with what I put in the command.
The text was updated successfully, but these errors were encountered: