Bitcoin Forum
May 10, 2024, 05:04:55 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Mt Gox Api gives error after ~6 hours  (Read 791 times)
gweedo (OP)
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000


View Profile
December 25, 2012, 06: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
1715360695
Hero Member
*
Offline Offline

Posts: 1715360695

View Profile Personal Message (Offline)

Ignore
1715360695
Reply with quote  #2

1715360695
Report to moderator
"In a nutshell, the network works like a distributed timestamp server, stamping the first transaction to spend a coin. It takes advantage of the nature of information being easy to spread but hard to stifle." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715360695
Hero Member
*
Offline Offline

Posts: 1715360695

View Profile Personal Message (Offline)

Ignore
1715360695
Reply with quote  #2

1715360695
Report to moderator
1715360695
Hero Member
*
Offline Offline

Posts: 1715360695

View Profile Personal Message (Offline)

Ignore
1715360695
Reply with quote  #2

1715360695
Report to moderator
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
December 25, 2012, 06: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.

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!