JamesMcMurran / GDaxMarketMakerTrader

The Goal of this project is to make it so that you can just focus on your buy down and profit logic and not have to handle anything else.
26 stars 8 forks source link

A Sell order can fail #2

Open JamesMcMurran opened 6 years ago

JamesMcMurran commented 6 years ago

For some reason, fully valid orders will sometimes fail.

Error: A GDAX API request failed. Bad Request.

        -------Order-------
        type:order
        Time:null
        ProductId:LTC-USD
        OrderType:limit
        Side:buy
        Size:1
        Price:60.14
rod-farva-sql commented 6 years ago

Any progress on this one. I am seeing sell orders fail also.

JamesMcMurran commented 6 years ago

The two main theories I have on this are.

That the program has exceeded the max messages to the server 5 per second(they say burst to 10 but IDK). I am still trying to think of a way to do this but not miss trades. Any suggestions on this?

Or that GDax has a bug with microseconds and registering the money is now on your account. to overcome the second one I just keep holder coins and money on my account so that there is no time where I do not have a coin or the money to buy a coin.

rod-farva-sql commented 6 years ago

I think my issue probably has to deal with your first theory as I have plenty of coin and money in the account. I am getting the following vague response from the gdax websocket.

22:55:17 - error: The websocket feed to wss://ws-feed.gdax.com (authenticated) has reported an error. If necessary, we will reconnect.

I am going to put some delays in just to see if this resolves the problem.

JamesMcMurran commented 6 years ago

Any luck? I am thinking of playing with Wireshark and this to see if I can capture the problem.