]> pere.pagekite.me Git - homepage.git/blob - blog/archive/2019/02/02.rss
69cca1dfcc1e9871a8a27dc2c51f8ffcb5514113
[homepage.git] / blog / archive / 2019 / 02 / 02.rss
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/'>
3 <channel>
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>
7
8
9 <item>
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>&lt;p&gt;Yesterday, the Kraken virtual currency exchange announced
15 &lt;a href=&quot;https://blog.kraken.com/post/2019/websockets-public-api-launching-soon/&quot;&gt;their
16 Websocket service&lt;/a&gt;, providing a stream of exchange updates to its
17 clients. Getting updated rates quickly is a good idea, so I used
18 their &lt;a href=&quot;https://www.kraken.com/en-us/help/websocket-api&quot;&gt;API
19 documentation&lt;/a&gt; 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.&lt;/p&gt;
23
24 &lt;p&gt;If this sound interesting to you, the code for valutakrambod is
25 available from
26 &lt;a href=&quot;http://github.com/petterreinholdtsen/valutakrambod&quot;&gt;github&lt;/a&gt;.
27 Here is example output from the example client displaying rates in a
28 curses view:&lt;/p&gt;
29
30 &lt;p&gt;&lt;blockquote&gt;&lt;pre&gt;
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 &lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;
63
64 &lt;p&gt;Yes, I notice the strange negative spread on Hitbtc. I&#39;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.&lt;/p&gt;
68
69 &lt;p&gt;As usual, if you use Bitcoin and want to show your support of my
70 activities, please send Bitcoin donations to my address
71 &lt;b&gt;&lt;a href=&quot;bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&quot;&gt;15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&lt;/a&gt;&lt;/b&gt;.&lt;/p&gt;
72 </description>
73 </item>
74
75 </channel>
76 </rss>