Author

Topic: Mt Gox Api gives error after ~6 hours (Read 798 times)

legendary
Activity: 1498
Merit: 1000
December 25, 2012, 09:43:38 PM
#3
why dont u post the Error from the API or the source? otherwise this is just guessing and is a waste of time.

The error is connection is refused, after 6 hours, but really the situation I explained above it is pretty detailed so people can identify if it is with my window of time is right or if I am making too many calls, but I doubt either since it is starts well no errors.
legendary
Activity: 1792
Merit: 1008
/dev/null
December 25, 2012, 02:30:17 PM
#2
So I started rewriting my trading bot to be optimized and to implement new trading strategies, so I thought at first that it was cause I was getting the USD and BTC funds in my account then executing a trade and that I had a web socket connection open all at the same time. Then I rewrote the entire way I handle Mt Gox so I can make 2 calls back to back almost every 25 seconds (to be in the 10 seconds window so I am not caught by anti-DDOS measures), then I am only checking USD and BTC funds during startup, after a trade but after my open orders close. But it is always hitting this wall at 6 hours and needs to be turned off for a while before being startup right now it is all simulations (no trade is actually going thru) but I need to fix this before turning on for a live trading. Any help?

P.S.  I don't want to shut it down and restart it, with weird cron scripts, this is written in java
why dont u post the Error from the API or the source? otherwise this is just guessing and is a waste of time.
legendary
Activity: 1498
Merit: 1000
December 25, 2012, 02:55:59 AM
#1
So I started rewriting my trading bot to be optimized and to implement new trading strategies, so I thought at first that it was cause I was getting the USD and BTC funds in my account then executing a trade and that I had a web socket connection open all at the same time. Then I rewrote the entire way I handle Mt Gox so I can make 2 calls back to back almost every 25 seconds (to be in the 10 seconds window so I am not caught by anti-DDOS measures), then I am only checking USD and BTC funds during startup, after a trade but after my open orders close. But it is always hitting this wall at 6 hours and needs to be turned off for a while before being startup right now it is all simulations (no trade is actually going thru) but I need to fix this before turning on for a live trading. Any help?

P.S.  I don't want to shut it down and restart it, with weird cron scripts, this is written in java
Jump to: