Post
Topic
Board Trading Discussion
Re: SierraChart bridge - Realtime Bitcoin charts [v0.5] (MtGox, Intersango, ...)
by
deepceleron
on 24/04/2013, 10:31:44 UTC
I'm just going to leave this here:

(old windows 32 bit standalone exe removed)

or

http://we.lovebitco.in/schart/sierrachartfeed.py (python 2.7 source, replace old file)

Yes, it's fixed in a big way.


NOTE: rename or delete your old C:\SierraChart\data\*.scid files if you've been using the broken sierrachartfeed version, or want older history than you previously retrieved.


Code:
Usage: sierrachartfeed.py [options]

Options:
  -h, --help            show this help message and exit
  -d DATADIR, --datadir=DATADIR
                        Data directory of SierraChart software
  -y, --disable-history
                        Disable downloads from bitcoincharts.com
  -p PRECISION, --volume-precision=PRECISION
                        Change decimal precision for market volume.
  -s SYMBOLS, --symbols=SYMBOLS
                        Charts to watch, comma separated. Use * for streaming
                        all markets.
  -l HISTORY, --history=HISTORY
                        Number of days of history to retrieve (default=7).

I set the default "symbol" to only be mtgoxUSD. The symbols are the file names for the exchange you can see here: http://api.bitcoincharts.com/v1/csv/ - for multiple exchanges, use the command-line option like:
sierrachartfeed -smtgoxUSD,bitfloorUSD,btceUSD

This is my own code, you can examine how I solved the problem of reading from old to new without an external database to sort and with 0 chance of missing or duplicate trades being downloaded (although it does inevitably waste some bandwidth).

Update 1: smarter download size adaptation, "days of history" option, actual source comments.
Update 2: fixed duplicate trade bug I created in update 1.
Update 3: include volume git pull (tick accurate data now), undo precision change (back to real volume = 0.01 in Chart->Chart Settings->Volume Multiplier), show both current time & trade time on console.
Update 013: tolerate the random HTTP 502 Gateway errors, adaptive data request rate to mitigate, default 7 days of history
Update 017: refine rate adaptation, enforce max history when catching up scid, give a user-agent