Closed rod-farva-sql closed 6 years ago
I think I realized what is going on. I have your default setting of "amountPerTrade" set at 1. I don't enough funds in my account to purchase a single ETH. I will have to do some coding as I would only like to use less a dollar or less per order.
Hi, First I must thank you for posting your code. My winter project was to write something similar, and I found your project in the comments for the gdax-tt project in which someone else was looking for a tutorial.
Now for the other reason I'm here..I am trying to use your code for ETH-USD and after my buy order finalized, I expected the automatic buy/sell orders to go through, but I didn't see any pop up and looking at the output, the result was "undefined" for both. Wondering if you have seen this before in my output below. Thanks Rod
Order Finalized Calc profit price:935.00000000 + 0.25 = 935.25 Calc Buydown price:935.00000000 - 0.25 = 934.75 Cleared Buy order I just bought 1 at 935.00000000 {} side:buy Amount:1 Price:934.75 side:sell Amount:1 Price:935.25 Buy Limit placed for 1 at 934.75 and a sell limit for 1 at 935.25 Order to buy 1 'ETH-USD' for934.75. Result: undefined
Order to sell 1 'ETH-USD' for935.25. Result: undefined