Bitcoin Forum
November 05, 2024, 03:50:25 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 [25] 26 »
  Print  
Author Topic: SierraChart bridge - Realtime Bitcoin charts [v0.5] (MtGox, Intersango, ...)  (Read 142242 times)
arklan
Legendary
*
Offline Offline

Activity: 1778
Merit: 1008



View Profile
November 20, 2013, 06:48:38 PM
 #481

hmmm is not downloading any data   Sad

same, stream data seems halted, but restarting mine did collect the historical data from the missing time...

i don't post much, but this space for rent.
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1036



View Profile WWW
November 20, 2013, 07:59:06 PM
Last edit: November 20, 2013, 08:35:47 PM by deepceleron
 #482

I've had the streaming interface running for about 8 hours, and it was showing trades as I started reading this thread. Just now it had just gone for ~320 seconds without receiving any trades, but just got prices again.

(Using this related script: https://bitcointalk.org/index.php?topic=339066.msg3636549#msg3636549)

Maybe nobody's trading today?

I checked http://data.mtgox.com/api/2/BTCUSD/money/ticker_fast, and it is occasionally updating, and matches the current stream price.

edit: just got a 502 gateway error from market json, site is not feeling well...
danhu
Newbie
*
Offline Offline

Activity: 56
Merit: 0


View Profile WWW
November 21, 2013, 02:15:41 AM
 #483

bitcoin is getting more popular and going up a lot lately . check out the latest bitcoin information and charts .

http://www.vnbitcoin.org/bitcoincharts.php
Martijnvdc
Sr. Member
****
Offline Offline

Activity: 322
Merit: 250


View Profile
November 21, 2013, 08:28:21 AM
 #484

Will there be a linux release for this?
xeverse
Full Member
***
Offline Offline

Activity: 124
Merit: 100



View Profile
November 21, 2013, 01:12:52 PM
 #485

Will there be a linux release for this?
Just run python code.
dserrano5
Legendary
*
Offline Offline

Activity: 1974
Merit: 1029



View Profile
November 25, 2013, 01:59:23 PM
 #486

Unfortunately bitcoincharts is returning 404 since yesterday.
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1036



View Profile WWW
November 25, 2013, 07:33:49 PM
 #487

It looks like some more undocumented unannounced changes to break things.

1. Per-IP request limiting to 1 per 60 seconds or so
2. history API no longer works like it did.

A "start" only request seems to be the only type of history API request that returns data:

A request like:
http://api.bitcoincharts.com/v1/trades.csv?symbol=mtgoxUSD&start=1385000001

dumps about 1MB of now HTML-header-wrapped trades, but with 0D 0A (linefeed) between trades instead of any HTML:
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"></head><body>1385000001,635.500010000000,0.299400000000
1385000008,635.500010000000,0.250000000000
1385000050,635.500010000000,1.000000000000
1385000063,635.500000000000,1.802060090000
1385000090,635.500000000000,1.197939910000
1385000091,635.500010000000,0.368739030000
1385000092,635.500010000000,0.945989800000
1385000092,635.640000000000,0.756793140000
...


These calls were previously documented to not consistently return the correct time periods.

For now, you can temporarily backup and remove your C:\SierraChart\Data\*.scid files, and start with the --disable-history and at least see live trades. I will try to correspond and see if it is fruitless to try to write any API interface that is expected to work for more than a few months.
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1036



View Profile WWW
November 26, 2013, 08:42:59 AM
Last edit: November 27, 2013, 11:43:35 AM by deepceleron
 #488

I started working on sierrachartfeed to see what can be done.

The bitcoincharts history API is purposely borked. It's been modified to only have five days of trades available regardless of the query.

The HTML wrap was removed, but the ~ 1 request a minute limitation is still there.

The only way to fix this is to get the complete uncompressed CSV download (http://api.bitcoincharts.com/v1/csv/, 300MB for just mtgox) if SCID data is older than five days. I think I tried HTTP byte range requests on these CSV files before and the server didn't support it; there's no Accept-Ranges header. If it did, I would still have to make requests "blind", since I could only approximately index them to find where to continue.

....or have a charting app that only goes back five days.

Edit: the full history file.csv server supports byte ranges. I wrote a library that will get chunks by ticker...

Gameplan:
resume history from csv to 1 day old
slowly catch up last day from crappy history API

Hurdles:
-Efficiently index and seek for resume timestamp in csv, without local copy
-1 minutes between requests means naive history to live transition will miss trades, will need to buffer live stream until stream trades are also in history, and merge ticker lists.
arklan
Legendary
*
Offline Offline

Activity: 1778
Merit: 1008



View Profile
November 26, 2013, 11:21:51 PM
 #489

so, in short, we're screwed?

i don't post much, but this space for rent.
xeverse
Full Member
***
Offline Offline

Activity: 124
Merit: 100



View Profile
November 27, 2013, 07:59:30 PM
 #490

alas, the streaming api is down either, clearly we need a p2p solution.
arklan
Legendary
*
Offline Offline

Activity: 1778
Merit: 1008



View Profile
November 27, 2013, 10:25:44 PM
 #491

alas, the streaming api is down either, clearly we need a p2p solution.

agreement.

i don't post much, but this space for rent.
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1036



View Profile WWW
November 28, 2013, 10:56:32 AM
 #492

The ISP of bitcoincharts was hit with a DDOS, and it blackholed many sites to mediate the problem. The site is back up.

I have opened a dialog with the site admin, hopefully this will result in an API that will continue to work for applications such as sierrachartfeed.
xeverse
Full Member
***
Offline Offline

Activity: 124
Merit: 100



View Profile
November 28, 2013, 11:16:33 AM
 #493

Thanx DC.
arklan
Legendary
*
Offline Offline

Activity: 1778
Merit: 1008



View Profile
November 28, 2013, 02:53:52 PM
 #494

The ISP of bitcoincharts was hit with a DDOS, and it blackholed many sites to mediate the problem. The site is back up.

I have opened a dialog with the site admin, hopefully this will result in an API that will continue to work for applications such as sierrachartfeed.

Awesome. I was worried id be stuck without... My second monitor just wouldn't be the same.

i don't post much, but this space for rent.
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1036



View Profile WWW
November 28, 2013, 06:27:09 PM
 #495

The history stream API IP address has no IPv4 DNS right now, but for those with native IPv6 it has an AAAA address. It also has been half-returned to working status, there is five days of history (instead of all history available), with date ranges working the way it used to. This should allow you, if your backup/remove old SCIDs if you have been down a while, to run with --history=6 and see some perspective history.

I'm going on holiday for a bit, hopefully the IP and full history availability will be restored to the API.
Sukrim
Legendary
*
Offline Offline

Activity: 2618
Merit: 1007


View Profile
November 29, 2013, 01:33:55 PM
 #496

Any chance of using the protocol in https://github.com/SierraChart/GSP (ideally a python implementation of it) in the future instead of SCID files? This could enable the bridge to allow trading via API keys too, you'd basically host your own broker server.

https://www.coinlend.org <-- automated lending at various exchanges.
https://www.bitfinex.com <-- Trade BTC for other currencies and vice versa.
ssshhh
Sr. Member
****
Offline Offline

Activity: 336
Merit: 250


View Profile
November 30, 2013, 09:06:39 PM
 #497

Greetings,

Forex broker www.FXOpen.com has BTCUSD data.  You will have to enable it in the "symbols"  section. [ right click on any currency pair and select symbols -> crypto ]

have fun!

xeverse
Full Member
***
Offline Offline

Activity: 124
Merit: 100



View Profile
December 18, 2013, 11:41:21 AM
 #498

Can somebody share his bitstampUSD.scid?
There's something wrong with mine..
wev
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
December 18, 2013, 08:22:47 PM
 #499

https://mega.co.nz/#!0xtRUKJL!fXZX-R3ZkGSo9sf-lJDQbncWcCVWRC5guQNEr_cIx-o

Let me know if it works for you.
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1036



View Profile WWW
December 19, 2013, 04:44:35 PM
Last edit: December 19, 2013, 08:26:05 PM by deepceleron
 #500

I've got it working again. Huzzah. I just need to iron out some crap data from bitcoincharts CSVs, like this:

1387430609,560.640000000000,0.356700000000
1387430826,667.500000000000,0.299600000000
1387430714,554.260000000000,0.036100000000
1387431207,692.500000000000,0.151600000000
1387431697,1000.000000000000,0.150000000000
1387431246,612.700000000000,0.100000000000
1387431516,540.290000000000,0.029000000000
1387431550,583.000000000000,0.514600000000


Those are timestamps in seconds (in this case from localbtcUSD). You can see that at least a 10 minute range of trades are all randomized, which really pisses off SierraChart. I'll need to sort them efficiently without impacting 500MB+ of exchange data that only has a minor problem (and so far, they all do to some extent).

Hint: to get it working faster once I release the code, start downloading your exchange's CSV files now, and put them in the C:\SierraChart\Data directory (don't worry, SierraChart feed will download it and keep it up to date if you don't...)  I will be ignoring previous SCIDs by using new filenames.

DONE: moving this to a new thread so OP doesn't have non-working code and links: https://bitcointalk.org/index.php?topic=377649.0
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 [25] 26 »
  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!