1 <?xml version=
"1.0" encoding=
"ISO-8859-1"?>
2 <rss version='
2.0' xmlns:lj='http://www.livejournal.org/rss/lj/
1.0/'
>
4 <title>Petter Reinholdtsen - Entries from February
2019</title>
5 <description>Entries from February
2019</description>
6 <link>http://people.skolelinux.org/pere/blog/
</link>
10 <title>Websocket from Kraken in Valutakrambod
</title>
11 <link>http://people.skolelinux.org/pere/blog/Websocket_from_Kraken_in_Valutakrambod.html
</link>
12 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Websocket_from_Kraken_in_Valutakrambod.html
</guid>
13 <pubDate>Fri,
1 Feb
2019 22:
25:
00 +
0100</pubDate>
14 <description><p
>Yesterday, the Kraken virtual currency exchange announced
15 <a href=
"https://blog.kraken.com/post/
2019/websockets-public-api-launching-soon/
">their
16 Websocket service
</a
>, providing a stream of exchange updates to its
17 clients. Getting updated rates quickly is a good idea, so I used
18 their
<a href=
"https://www.kraken.com/en-us/help/websocket-api
">API
19 documentation
</a
> and added Websocket support to the Kraken service in
20 Valutakrambod today. The python library can now get updates
21 from Kraken several times per second, instead of every time the
22 information is polled from the REST API.
</p
>
24 <p
>If this sound interesting to you, the code for valutakrambod is
26 <a href=
"http://github.com/petterreinholdtsen/valutakrambod
">github
</a
>.
27 Here is example output from the example client displaying rates in a
28 curses view:
</p
>
30 <p
><blockquote
><pre
>
31 Name Pair Bid Ask Spr Ftcd Age
32 BitcoinsNorway BTCEUR
2959.2800 3021.0500 2.0%
36 nan nan
33 Bitfinex BTCEUR
3087.9000 3088.0000 0.0%
36 37 nan
34 Bitmynt BTCEUR
3001.8700 3135.4600 4.3%
36 52 nan
35 Bitpay BTCEUR
3003.8659 nan nan%
35 nan nan
36 Bitstamp BTCEUR
3008.0000 3010.2300 0.1%
0 1 1
37 Bl3p BTCEUR
3000.6700 3010.9300 0.3%
1 nan nan
38 Coinbase BTCEUR
2992.1800 3023.2500 1.0%
34 nan nan
39 Kraken+BTCEUR
3005.7000 3006.6000 0.0%
0 1 0
40 Paymium BTCEUR
2940.0100 2993.4400 1.8%
0 2688 nan
41 BitcoinsNorway BTCNOK
29000.0000 29360.7400 1.2%
36 nan nan
42 Bitmynt BTCNOK
29115.6400 29720.7500 2.0%
36 52 nan
43 Bitpay BTCNOK
29029.2512 nan nan%
36 nan nan
44 Coinbase BTCNOK
28927.6000 29218.5900 1.0%
35 nan nan
45 MiraiEx BTCNOK
29097.7000 29741.4200 2.2%
36 nan nan
46 BitcoinsNorway BTCUSD
3385.4200 3456.0900 2.0%
36 nan nan
47 Bitfinex BTCUSD
3538.5000 3538.6000 0.0%
36 45 nan
48 Bitpay BTCUSD
3443.4600 nan nan%
34 nan nan
49 Bitstamp BTCUSD
3443.0100 3445.0500 0.1%
0 2 1
50 Coinbase BTCUSD
3428.1600 3462.6300 1.0%
33 nan nan
51 Gemini BTCUSD
3445.8800 3445.8900 0.0%
36 326 nan
52 Hitbtc BTCUSD
3473.4700 3473.0700 -
0.0%
0 0 0
53 Kraken+BTCUSD
3444.4000 3445.6000 0.0%
0 1 0
54 Exchangerates EURNOK
9.6685 9.6685 0.0%
36 22226 nan
55 Norgesbank EURNOK
9.6685 9.6685 0.0%
36 22226 nan
56 Bitstamp EURUSD
1.1440 1.1462 0.2%
0 1 2
57 Exchangerates EURUSD
1.1471 1.1471 0.0%
36 22226 nan
58 BitcoinsNorway LTCEUR
1.0009 22.6538 95.6%
35 nan nan
59 BitcoinsNorway LTCNOK
259.0900 264.9300 2.2%
35 nan nan
60 BitcoinsNorway LTCUSD
0.0000 29.0000 100.0%
35 nan nan
61 Norgesbank USDNOK
8.4286 8.4286 0.0%
36 22226 nan
62 </pre
></blockquote
></p
>
64 <p
>Yes, I notice the strange negative spread on Hitbtc. I
've seen the
65 same on Kraken. Another strange observation is that Kraken some times
66 announce trade orders a fraction of a second in the future. I really
67 wonder what is going on there.
</p
>
69 <p
>As usual, if you use Bitcoin and want to show your support of my
70 activities, please send Bitcoin donations to my address
71 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>