I'm writing a bot, I was thinking about querying Mt. Gox's api every 2 seconds and store the ticker data in a MySQL database.
Is this the best way to do this? I need to run some algorithms to determine enter an exit signals for the automated bot.
Or should I use the websocket feed?