]> pere.pagekite.me Git - homepage.git/blobdiff - blog/index.html
Generated.
[homepage.git] / blog / index.html
index 34e0710d61ba13dc7e6f93d8679760ad40e76ad0..91c4c3a679394745df92374cf231a7d75462f9b2 100644 (file)
 
 
     
+    <div class="entry">
+      <div class="title"><a href="http://people.skolelinux.org/pere/blog/Websocket_from_Kraken_in_Valutakrambod.html">Websocket from Kraken in Valutakrambod</a></div>
+      <div class="date"> 1st February 2019</div>
+      <div class="body"><p>Yesterday, the Kraken virtual currency exchange announced
+<a href="https://blog.kraken.com/post/2019/websockets-public-api-launching-soon/">their
+Websocket service</a>, providing a stream of exchange updates to its
+clients.  Getting updated rates quickly is a good idea, so I used
+their <a href="https://www.kraken.com/en-us/help/websocket-api">API
+documentation</a> and added Websocket support to the Kraken service in
+Valutakrambod today.  The python library can now get updates
+from Kraken several times per second, instead of every time the
+information is polled from the REST API.</p>
+
+<p>If this sound interesting to you, the code for valutakrambod is
+available from
+<a href="http://github.com/petterreinholdtsen/valutakrambod">github</a>.
+Here is example output from the example client displaying rates in a
+curses view:</p>
+
+<p><blockquote><pre>
+           Name Pair   Bid         Ask         Spr    Ftcd    Age
+ BitcoinsNorway BTCEUR   2959.2800   3021.0500   2.0%   36    nan    nan
+       Bitfinex BTCEUR   3087.9000   3088.0000   0.0%   36     37    nan
+        Bitmynt BTCEUR   3001.8700   3135.4600   4.3%   36     52    nan
+         Bitpay BTCEUR   3003.8659         nan   nan%   35    nan    nan
+       Bitstamp BTCEUR   3008.0000   3010.2300   0.1%    0      1      1
+           Bl3p BTCEUR   3000.6700   3010.9300   0.3%    1    nan    nan
+       Coinbase BTCEUR   2992.1800   3023.2500   1.0%   34    nan    nan
+         Kraken+BTCEUR   3005.7000   3006.6000   0.0%    0      1      0
+        Paymium BTCEUR   2940.0100   2993.4400   1.8%    0   2688    nan
+ BitcoinsNorway BTCNOK  29000.0000  29360.7400   1.2%   36    nan    nan
+        Bitmynt BTCNOK  29115.6400  29720.7500   2.0%   36     52    nan
+         Bitpay BTCNOK  29029.2512         nan   nan%   36    nan    nan
+       Coinbase BTCNOK  28927.6000  29218.5900   1.0%   35    nan    nan
+        MiraiEx BTCNOK  29097.7000  29741.4200   2.2%   36    nan    nan
+ BitcoinsNorway BTCUSD   3385.4200   3456.0900   2.0%   36    nan    nan
+       Bitfinex BTCUSD   3538.5000   3538.6000   0.0%   36     45    nan
+         Bitpay BTCUSD   3443.4600         nan   nan%   34    nan    nan
+       Bitstamp BTCUSD   3443.0100   3445.0500   0.1%    0      2      1
+       Coinbase BTCUSD   3428.1600   3462.6300   1.0%   33    nan    nan
+         Gemini BTCUSD   3445.8800   3445.8900   0.0%   36    326    nan
+         Hitbtc BTCUSD   3473.4700   3473.0700  -0.0%    0      0      0
+         Kraken+BTCUSD   3444.4000   3445.6000   0.0%    0      1      0
+  Exchangerates EURNOK      9.6685      9.6685   0.0%   36  22226    nan
+     Norgesbank EURNOK      9.6685      9.6685   0.0%   36  22226    nan
+       Bitstamp EURUSD      1.1440      1.1462   0.2%    0      1      2
+  Exchangerates EURUSD      1.1471      1.1471   0.0%   36  22226    nan
+ BitcoinsNorway LTCEUR      1.0009     22.6538  95.6%   35    nan    nan
+ BitcoinsNorway LTCNOK    259.0900    264.9300   2.2%   35    nan    nan
+ BitcoinsNorway LTCUSD      0.0000     29.0000 100.0%   35    nan    nan
+     Norgesbank USDNOK      8.4286      8.4286   0.0%   36  22226    nan
+</pre></blockquote></p>
+
+<p>Yes, I notice the strange negative spread on Hitbtc.  I've seen the
+same on Kraken.  Another strange observation is that Kraken some times
+announce trade orders a fraction of a second in the future.  I really
+wonder what is going on there.</p>
+
+<p>As usual, if you use Bitcoin and want to show your support of my
+activities, please send Bitcoin donations to my address
+<b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p>
+</div>
+      <div class="tags">
+        
+        
+        Tags: <a href="http://people.skolelinux.org/pere/blog/tags/bitcoin">bitcoin</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>. 
+        
+        
+      </div>
+    </div>
+    <div class="padding"></div>
+    
     <div class="entry">
       <div class="title"><a href="http://people.skolelinux.org/pere/blog/Strategispillet_Unknown_Horizons_n__tilgjengelig_p__bokm_l.html">Strategispillet Unknown Horizons nå tilgjengelig på bokmål</a></div>
       <div class="date">23rd January 2019</div>
@@ -836,49 +908,6 @@ activities, please send Bitcoin donations to my address
     </div>
     <div class="padding"></div>
     
-    <div class="entry">
-      <div class="title"><a href="http://people.skolelinux.org/pere/blog/Time_for_an_official_MIME_type_for_patches_.html">Time for an official MIME type for patches?</a></div>
-      <div class="date"> 1st November 2018</div>
-      <div class="body"><p>As part of my involvement in
-<a href="https://gitlab.com/OsloMet-ABI/nikita-noark5-core">the Nikita
-archive API project</a>, I've been importing a fairly large lump of
-emails into a test instance of the archive to see how well this would
-go.  I picked a subset of <a href="https://notmuchmail.org/">my
-notmuch email database</a>, all public emails sent to me via
-@lists.debian.org, giving me a set of around 216 000 emails to import.
-In the process, I had a look at the various attachments included in
-these emails, to figure out what to do with attachments, and noticed
-that one of the most common attachment formats do not have
-<a href="https://www.iana.org/assignments/media-types/media-types.xhtml">an
-official MIME type</a> registered with IANA/IETF.  The output from
-diff, ie the input for patch, is on the top 10 list of formats
-included in these emails.  At the moment people seem to use either
-text/x-patch or text/x-diff, but neither is officially registered.  It
-would be better if one official MIME type were registered and used
-everywhere.</p>
-
-<p>To try to get one official MIME type for these files, I've brought
-up the topic on
-<a href="https://www.ietf.org/mailman/listinfo/media-types">the
-media-types mailing list</a>.  If you are interested in discussion
-which MIME type to use as the official for patch files, or involved in
-making software using a MIME type for patches, perhaps you would like
-to join the discussion?</p>
-
-<p>As usual, if you use Bitcoin and want to show your support of my
-activities, please send Bitcoin donations to my address
-<b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p>
-</div>
-      <div class="tags">
-        
-        
-        Tags: <a href="http://people.skolelinux.org/pere/blog/tags/debian">debian</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>, <a href="http://people.skolelinux.org/pere/blog/tags/standard">standard</a>. 
-        
-        
-      </div>
-    </div>
-    <div class="padding"></div>
-    
     <p style="text-align: right;"><a href="index.rss"><img src="http://people.skolelinux.org/pere/blog/xml.gif" alt="RSS feed" width="36" height="14" /></a></p>
     <div id="sidebar">
       
@@ -892,6 +921,8 @@ activities, please send Bitcoin donations to my address
 
 <li><a href="http://people.skolelinux.org/pere/blog/archive/2019/01/">January (4)</a></li>
 
+<li><a href="http://people.skolelinux.org/pere/blog/archive/2019/02/">February (1)</a></li>
+
 </ul></li>
 
 <li>2018
@@ -1204,7 +1235,7 @@ activities, please send Bitcoin donations to my address
 
  <li><a href="http://people.skolelinux.org/pere/blog/tags/bankid">bankid (4)</a></li>
 
- <li><a href="http://people.skolelinux.org/pere/blog/tags/bitcoin">bitcoin (10)</a></li>
+ <li><a href="http://people.skolelinux.org/pere/blog/tags/bitcoin">bitcoin (11)</a></li>
 
  <li><a href="http://people.skolelinux.org/pere/blog/tags/bootsystem">bootsystem (17)</a></li>
 
@@ -1226,7 +1257,7 @@ activities, please send Bitcoin donations to my address
 
  <li><a href="http://people.skolelinux.org/pere/blog/tags/drivstoffpriser">drivstoffpriser (4)</a></li>
 
- <li><a href="http://people.skolelinux.org/pere/blog/tags/english">english (397)</a></li>
+ <li><a href="http://people.skolelinux.org/pere/blog/tags/english">english (398)</a></li>
 
  <li><a href="http://people.skolelinux.org/pere/blog/tags/fiksgatami">fiksgatami (23)</a></li>