kraken_client 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +1 -0
  3. data/Gemfile +7 -0
  4. data/Gemfile.lock +61 -0
  5. data/LICENSE.md +24 -0
  6. data/Rakefile +1 -0
  7. data/fixtures/vcr_cassettes/add_order.yml +41 -0
  8. data/fixtures/vcr_cassettes/assets.yml +45 -0
  9. data/fixtures/vcr_cassettes/assets_pairs.yml +45 -0
  10. data/fixtures/vcr_cassettes/balance.yml +41 -0
  11. data/fixtures/vcr_cassettes/cancel_order.yml +41 -0
  12. data/fixtures/vcr_cassettes/closed_orders.yml +134 -0
  13. data/fixtures/vcr_cassettes/ledgers.yml +41 -0
  14. data/fixtures/vcr_cassettes/open_orders.yml +43 -0
  15. data/fixtures/vcr_cassettes/order_book.yml +43 -0
  16. data/fixtures/vcr_cassettes/query_ledgers.yml +41 -0
  17. data/fixtures/vcr_cassettes/query_orders.yml +43 -0
  18. data/fixtures/vcr_cassettes/query_trades.yml +41 -0
  19. data/fixtures/vcr_cassettes/server_time.yml +44 -0
  20. data/fixtures/vcr_cassettes/spread.yml +43 -0
  21. data/fixtures/vcr_cassettes/ticker.yml +43 -0
  22. data/fixtures/vcr_cassettes/trade_balance.yml +41 -0
  23. data/fixtures/vcr_cassettes/trade_volume.yml +41 -0
  24. data/fixtures/vcr_cassettes/trades.yml +43 -0
  25. data/fixtures/vcr_cassettes/trades_history.yml +41 -0
  26. data/kraken_rb.gemspec +33 -0
  27. data/lib/configurable.rb +13 -0
  28. data/lib/configuration.rb +19 -0
  29. data/lib/exceptions.rb +6 -0
  30. data/lib/kraken_client/application.rb +45 -0
  31. data/lib/kraken_client/endpoints/base.rb +43 -0
  32. data/lib/kraken_client/endpoints/private.rb +45 -0
  33. data/lib/kraken_client/endpoints/public.rb +33 -0
  34. data/lib/kraken_client/requests/base.rb +35 -0
  35. data/lib/kraken_client/requests/content/body.rb +18 -0
  36. data/lib/kraken_client/requests/content/header.rb +61 -0
  37. data/lib/kraken_client/requests/get.rb +13 -0
  38. data/lib/kraken_client/requests/limiter.rb +78 -0
  39. data/lib/kraken_client/requests/post.rb +38 -0
  40. data/lib/kraken_client.rb +15 -0
  41. data/lib/version.rb +3 -0
  42. data/readme.md +280 -0
  43. data/spec/requests/private_spec.rb +104 -0
  44. data/spec/requests/public_spec.rb +57 -0
  45. metadata +229 -0
@@ -0,0 +1,43 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.kraken.com/0/public/Trades?pair=XXBTZEUR
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - cloudflare-nginx
23
+ Date:
24
+ - Sun, 23 Aug 2015 08:27:09 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Set-Cookie:
32
+ - __cfduid=COMPUTED; expires=Mon, 22-Aug-16
33
+ 08:27:08 GMT; path=/; domain=.kraken.com; HttpOnly
34
+ Vary:
35
+ - Accept-Encoding
36
+ Cf-Ray:
37
+ - COMPUTED
38
+ body:
39
+ encoding: UTF-8
40
+ string: '{"error":[],"result":{"XXBTZEUR":[["202.51626","0.01440000",1440277319.1922,"b","l",""],["202.54000","0.10000000",1440277322.8993,"b","l",""],["202.57500","0.03810653",1440277322.9748,"b","l",""],["202.60000","3.30000000",1440277342.9523,"b","l",""],["202.60000","0.10000000",1440277342.969,"b","l",""],["202.62010","0.12032518",1440277343.0443,"b","l",""],["202.67000","0.02000000",1440277343.1125,"b","l",""],["202.74000","0.10000000",1440277352.3303,"b","l",""],["202.74900","0.02000000",1440277352.4036,"b","l",""],["202.85000","0.10000000",1440277352.4777,"b","l",""],["202.66733","0.80000000",1440277356.9312,"s","l",""],["202.55633","2.36000000",1440277359.1253,"s","l",""],["202.57000","0.12000000",1440277363.8049,"b","l",""],["202.55633","0.02000000",1440277365.0264,"s","m",""],["202.57000","2.08000000",1440277381.5089,"b","l",""],["202.88000","0.10000000",1440277381.5903,"b","l",""],["202.90000","0.50000000",1440277381.6649,"b","l",""],["202.95000","0.02000000",1440277381.7407,"b","l",""],["203.10000","0.10000000",1440277381.8151,"b","l",""],["203.11100","0.03000000",1440277381.9379,"b","l",""],["203.12381","0.01728000",1440277382.019,"b","l",""],["203.15100","0.02000000",1440277382.0959,"b","l",""],["203.35200","0.02000000",1440277382.1713,"b","l",""],["203.39000","2.67000000",1440277386.4148,"s","l",""],["203.55300","0.02000000",1440277389.1761,"b","l",""],["203.73318","0.02073600",1440277389.2549,"b","l",""],["203.76400","0.02000000",1440277389.3283,"b","l",""],["203.78206","0.03926400",1440277389.4035,"b","l",""],["203.39000","1.57880000",1440277393.3662,"s","l",""],["203.39000","0.07000000",1440277393.55,"s","l",""],["202.77914","2.20000000",1440277406.6651,"s","l",""],["202.77914","0.01000000",1440277414.1808,"s","l",""],["202.77914","8.00000000",1440277416.8297,"s","l",""],["203.05010","0.02000000",1440277423.3739,"s","m",""],["203.63990","0.10000000",1440277428.3423,"b","l",""],["203.22549","2.29000000",1440277428.5255,"s","l",""],["203.22549","0.09000000",1440277434.8359,"s","l",""],["203.22549","1.31520000",1440277436.8759,"s","l",""],["203.44903","1.32150000",1440277453.9034,"s","l",""],["203.62000","2.76400000",1440277455.8439,"b","l",""],["203.62000","1.92464703",1440277459.2445,"b","l",""],["203.63990","0.21200000",1440277459.3241,"b","l",""],["203.64000","0.03230932",1440277459.3987,"b","l",""],["203.64000","0.02301719",1440277459.41,"b","l",""],["203.64000","2.39259766",1440277459.4198,"b","l",""],["203.64000","0.02691154",1440277459.4298,"b","l",""],["203.64000","0.03400649",1440277459.4398,"b","l",""],["203.64000","0.04289265",1440277459.4497,"b","l",""],["203.69000","0.31161812",1440277459.5146,"b","l",""],["203.44903","1.09400000",1440277462.5925,"s","l",""],["203.68000","5.83398000",1440277500.4139,"b","l",""],["203.68990","0.31200000",1440277500.4935,"b","l",""],["203.68999","0.21000000",1440277500.5655,"b","l",""],["203.69000","0.96402000",1440277500.6366,"b","l",""],["203.68000","0.94927582",1440277537.6635,"b","l",""],["203.69000","0.20993518",1440277537.7474,"b","l",""],["203.96500","0.02000000",1440277537.8196,"b","l",""],["203.99999","0.23980000",1440277537.8897,"b","l",""],["204.00000","0.13098900",1440277537.9582,"b","l",""],["203.96500","0.24630000",1440277544.6607,"s","l",""],["204.00000","1.72000000",1440277552.0139,"b","l",""],["203.96500","0.00490280",1440277574.3718,"s","l",""],["204.00000","3.00000000",1440277574.643,"b","l",""],["204.00000","1.55000000",1440277585.8125,"b","l",""],["204.00000","11.63354100",1440277586.6021,"b","l",""],["204.00000","0.01400000",1440277586.617,"b","l",""],["204.07700","0.10000000",1440277586.6836,"b","l",""],["204.69377","0.01000000",1440277599.3804,"b","l",""],["204.73000","0.10000000",1440277599.455,"b","l",""],["204.90000","0.50000000",1440277599.5279,"b","l",""],["205.21000","0.08000000",1440277599.6798,"b","m",""],["204.99000","0.03799197",1440277603.2992,"s","l",""],["204.99000","0.02000000",1440277606.7917,"s","m",""],["205.21000","1.47483545",1440277635.2709,"b","l",""],["205.30000","0.10000000",1440277635.3465,"b","l",""],["205.37989","0.31200000",1440277635.4226,"b","l",""],["205.37999","0.44220000",1440277635.4961,"b","l",""],["205.38000","0.67096455",1440277635.5682,"b","l",""],["205.37999","0.33570000",1440277641.169,"b","l",""],["205.38000","1.03430000",1440277641.2407,"b","l",""],["204.45667","0.43868446",1440277653.4289,"s","l",""],["204.45667","0.02000000",1440277669.1335,"s","m",""],["205.38000","12.69473545",1440277687.9061,"b","l",""],["205.77900","9.00000000",1440277687.9799,"b","l",""],["205.77900","0.26126455",1440277688.1349,"s","l",""],["205.66800","0.13873545",1440277690.6746,"b","l",""],["205.79000","0.10000000",1440277690.8745,"b","l",""],["205.80000","0.10000000",1440277690.9512,"b","l",""],["205.96000","0.70000000",1440277691.0279,"b","l",""],["206.21999","0.27740000",1440277691.0995,"b","l",""],["206.22000","2.40000000",1440277691.2671,"b","l",""],["206.30000","0.02000000",1440277691.3453,"b","l",""],["206.30000","0.40770000",1440277691.5455,"s","l",""],["206.30000","0.19200000",1440277693.5535,"s","l",""],["206.30000","1.47220000",1440277693.752,"s","l",""],["206.30000","0.01000000",1440277694.067,"s","l",""],["206.30000","0.00484730",1440277694.4521,"s","l",""],["206.30000","0.33810000",1440277699.9771,"s","l",""],["206.30000","1.22110000",1440277700.5948,"s","l",""],["206.30000","0.15920000",1440277700.9281,"s","l",""],["206.30000","0.83940000",1440277708.222,"s","l",""],["206.30000","0.62050000",1440277713.0998,"s","l",""],["204.99000","0.02000000",1440277713.4459,"s","m",""],["205.38000","3.85105657",1440277733.7453,"s","l",""],["205.02074","6.14894343",1440277733.8236,"s","l",""],["206.31000","0.03300627",1440277738.717,"b","l",""],["206.31000","0.03710907",1440277738.735,"b","l",""],["206.31000","0.02653989",1440277738.7479,"b","l",""],["206.31000","0.03314035",1440277738.7606,"b","l",""],["206.31000","0.02585540",1440277738.7734,"b","l",""],["206.31000","0.15014133",1440277738.786,"b","l",""],["206.40000","0.02000000",1440277750.8578,"b","m",""],["206.60000","0.01102938",1440277750.8855,"b","m",""],["206.50000","0.02000000",1440277751.1729,"b","l",""],["206.50000","0.08000000",1440277751.1871,"b","l",""],["205.47203","0.10621736",1440277755.8601,"s","m",""],["205.69804","0.02000000",1440277758.3211,"s","m",""],["206.49142","0.93788600",1440277795.6872,"b","m",""],["206.40002","0.07403421",1440277802.1297,"s","l",""],["206.40002","0.52596579",1440277804.2768,"s","l",""],["206.30002","0.07435216",1440277806.4247,"s","m",""],["206.40002","0.07403421",1440277811.4177,"b","l",""],["206.49142","0.02596579",1440277811.4927,"b","l",""],["206.30002","3.34562112",1440277817.4238,"s","l",""],["206.49142","0.11304000",1440277858.7756,"b","m",""],["206.49142","0.10000000",1440277868.1468,"b","l",""],["206.30002","0.04950000",1440277870.961,"s","l",""],["206.30002","2.53052672",1440277872.4706,"s","l",""],["205.70000","0.05204651",1440277877.6134,"s","m",""],["205.70000","1.80895349",1440277881.1321,"s","l",""],["205.69990","0.10000000",1440277929.3447,"b","l",""],["205.69990","0.10000000",1440277975.8838,"b","l",""],["205.92629","0.10000000",1440278021.3335,"b","l",""],["205.90000","0.10000000",1440278092.503,"b","l",""],["205.49000","0.10000000",1440278138.0664,"s","l",""],["205.20010","0.31200000",1440278176.1095,"s","l",""],["205.20000","0.07818262",1440278176.1923,"s","l",""],["205.15037","0.03286890",1440278176.2621,"s","l",""],["205.15037","0.04000000",1440278237.1297,"b","l",""],["205.13233","1.78506000",1440278321.8468,"b","m",""],["204.06100","0.08000000",1440278519.8632,"s","m",""],["204.90659","0.27120160",1440278559.4669,"b","m",""],["204.17200","0.04177000",1440278624.022,"b","l",""],["204.21100","0.80000000",1440278639.9109,"s","m",""],["204.18000","0.78661970",1440278639.9717,"s","m",""],["204.18000","3.41338030",1440278640.017,"s","m",""],["204.90655","0.31200000",1440278780.5978,"b","m",""],["204.90658","0.01000000",1440278780.6736,"b","m",""],["204.90663","0.10760000",1440278780.7286,"b","m",""],["204.16000","0.10935074",1440278806.813,"s","l",""],["204.68119","0.01000000",1440278983.3262,"b","m",""],["204.79569","0.80000000",1440278983.405,"b","m",""],["204.90667","0.41051196",1440278983.4581,"b","m",""],["205.24061","0.01000000",1440279270.68,"b","l",""],["205.24708","0.31200000",1440279270.7797,"b","l",""],["205.35820","6.00000000",1440279270.8546,"b","l",""],["205.58434","6.00000000",1440279270.9214,"b","l",""],["205.58436","0.71600000",1440279270.9874,"b","l",""],["205.58436","0.10000000",1440279271.0445,"b","l",""],["205.58436","0.02000000",1440279271.0982,"b","l",""],["205.58436","0.10000000",1440279271.1522,"b","l",""],["205.58436","0.52000000",1440279271.2061,"b","l",""],["205.58436","8.55450000",1440279271.2631,"b","l",""],["205.09000","0.02000000",1440279303.9018,"s","m",""],["205.09000","0.08000000",1440279307.6166,"s","l",""],["205.04000","0.10000000",1440279307.6917,"s","l",""],["204.90667","9.82000000",1440279312.7476,"b","l",""],["205.58436","4.10250000",1440279312.8213,"b","l",""],["205.67798","0.80000000",1440279312.8875,"b","l",""],["205.85633","0.01200000",1440279312.9561,"b","l",""],["205.89998","0.83700000",1440279313.0238,"b","l",""],["205.90000","0.90000000",1440279313.3566,"b","l",""],["205.92639","0.30000000",1440279313.4301,"b","l",""],["205.92639","2.53477419",1440279313.4418,"b","l",""],["205.81539","0.30000000",1440279319.1117,"b","m",""],["205.92639","0.88486512",1440279319.174,"b","m",""],["205.92639","1.18470342",1440279324.9094,"b","m",""],["204.79245","0.02000000",1440279341.8834,"s","m",""],["204.79245","0.02000000",1440279389.479,"s","m",""],["205.60000","0.02000000",1440279518.5381,"s","m",""],["205.81075","0.10000000",1440279550.8423,"b","l",""],["205.81075","0.10000000",1440279559.9263,"b","l",""],["205.75000","0.10000000",1440279609.1329,"b","l",""],["205.75000","0.10000000",1440279646.3974,"b","l",""],["205.60000","0.28000000",1440279660.3496,"s","l",""],["205.34000","0.10000000",1440279680.9107,"s","l",""],["205.08825","0.01000000",1440279772.4843,"s","l",""],["205.08825","0.08836000",1440279783.4481,"b","m",""],["204.94000","0.02000000",1440279804.7829,"s","m",""],["204.94000","0.08000000",1440279828.753,"s","l",""],["204.83000","0.02000000",1440279877.6324,"s","m",""],["205.13232","0.01000000",1440279905.4545,"b","m",""],["205.13233","0.46549000",1440279905.52,"b","m",""],["204.47299","0.01203610",1440279961.3611,"s","l",""],["204.47299","0.00796390",1440279984.6106,"b","l",""],["204.40000","0.10000000",1440280061.1709,"b","l",""],["204.29010","0.01550833",1440280291.4139,"s","l",""],["204.16100","0.11020000",1440280325.7146,"s","l",""],["204.13000","0.02739834",1440280325.7937,"s","l",""],["204.05000","0.10000000",1440280336.4947,"s","m",""],["204.04200","0.50000000",1440280336.5498,"s","m",""],["203.99000","0.10000000",1440280336.6123,"s","m",""],["203.93000","0.10000000",1440280336.6574,"s","m",""],["203.91000","0.10000000",1440280336.7036,"s","m",""],["203.90830","0.03815817",1440280336.8127,"s","m",""],["203.84000","12.78635033",1440280336.8606,"s","m",""],["203.84000","0.10000000",1440280348.1751,"s","l",""],["203.68000","1.48621404",1440280393.3806,"s","m",""],["203.67000","6.42900000",1440280393.4451,"s","m",""],["203.50000","1.68468596",1440280393.4895,"s","m",""],["203.50001","0.10000000",1440280404.0458,"s","l",""],["203.50001","0.22600000",1440280404.2568,"s","m",""],["203.50000","0.01507000",1440280404.3053,"s","m",""],["203.50001","0.10000000",1440280410.4748,"s","l",""],["203.50011","0.31200000",1440280451.8532,"s","m",""],["203.50000","0.48800000",1440280451.9088,"s","m",""],["203.92999","0.01000000",1440280452.9182,"b","l",""],["204.00000","4.03990000",1440280455.4958,"s","m",""],["203.70002","0.14245653",1440280510.4062,"s","m",""],["203.88000","0.10000000",1440280597.9127,"b","l",""],["203.80000","0.02000000",1440280655.134,"b","l",""],["203.93000","0.10000000",1440280656.6635,"b","m",""],["204.05000","0.10000000",1440280656.7325,"b","m",""],["204.18000","0.10000000",1440280656.7984,"b","m",""],["204.20000","0.02000000",1440280656.8634,"b","m",""],["204.23126","0.60232700",1440280656.9269,"b","m",""],["203.92990","0.31200000",1440280664.6351,"b","l",""],["204.18879","0.01000000",1440280825.3679,"b","l",""],["204.29990","0.31200000",1440280825.476,"b","l",""],["204.30000","0.02000000",1440280825.5507,"b","l",""],["204.30000","0.10000000",1440280825.5651,"b","l",""],["204.52240","0.01000000",1440280825.6412,"b","l",""],["204.55000","0.10000000",1440280825.7167,"b","l",""],["204.56000","0.31200000",1440280831.5423,"s","l",""],["204.59000","0.31200000",1440280858.6835,"s","l",""],["204.59000","0.30000000",1440280858.9202,"s","l",""],["203.80000","4.84493000",1440280867.7127,"s","m",""],["204.61000","0.10000000",1440280868.9319,"b","l",""],["204.68000","0.33333000",1440280869.1419,"b","l",""],["204.69000","0.31200000",1440280872.7871,"s","l",""],["204.79569","0.05150000",1440280885.8407,"b","m",""],["204.80000","0.10000000",1440280885.9034,"b","m",""],["204.80000","0.02000000",1440280885.9153,"b","m",""],["204.90669","14.38300000",1440280885.9768,"b","m",""],["205.00000","0.04000000",1440280886.0311,"b","m",""],["205.05000","0.10000000",1440280886.0918,"b","m",""],["205.13233","13.41051000",1440280886.1888,"b","m",""],["205.13597","0.01200000",1440280886.244,"b","m",""],["206.60000","0.00897062",1440280886.2617,"b","m",""],["205.14285","0.03787070",1440280886.3219,"b","m",""],["206.70000","0.02000000",1440280886.3445,"b","m",""],["205.20000","0.04000000",1440280886.4049,"b","m",""],["206.73000","0.05000000",1440280886.4276,"b","m",""],["205.21000","1.47513292",1440280886.4891,"b","m",""],["206.74070","0.01200000",1440280886.5103,"b","m",""],["205.30000","0.10000000",1440280886.7595,"b","m",""],["206.75000","1.46417013",1440280886.7813,"b","m",""],["205.35822","15.60200000",1440280886.8432,"b","m",""],["206.80000","0.02000000",1440280886.8603,"b","m",""],["205.40000","0.02000000",1440280886.9214,"b","m",""],["206.92793","0.02537120",1440280886.944,"b","m",""],["205.55000","0.10000000",1440280887.0015,"b","m",""],["206.94645","13.15800000",1440280887.0237,"b","m",""],["205.58436","15.48300000",1440280887.0791,"b","m",""],["205.60000","0.04000000",1440280887.1802,"b","m",""],["205.74998","12.46000000",1440280887.2413,"b","m",""],["205.75000","9.80000000",1440280887.297,"b","m",""],["205.75138","0.01440000",1440280887.3552,"b","m",""],["205.80000","20.00000000",1440280887.4119,"b","m",""],["205.80000","0.10000000",1440280887.4255,"b","m",""],["205.80000","0.04000000",1440280887.4362,"b","m",""],["205.81075","13.34000000",1440280887.5827,"b","m",""],["205.99000","0.50000000",1440280887.6404,"b","m",""],["206.00000","0.04000000",1440280887.6985,"b","m",""],["206.03739","13.19200000",1440280887.7564,"b","m",""],["206.26428","13.91300000",1440280887.8104,"b","m",""],["206.36863","0.01728000",1440280887.8977,"b","m",""],["206.38000","0.40000000",1440280887.9499,"b","m",""],["206.38000","0.10000000",1440280887.9925,"b","m",""],["206.45000","0.50000000",1440280888.0489,"b","m",""],["206.49142","13.50300000",1440280888.1073,"b","m",""],["206.50000","64.17395641",1440280888.1579,"b","m",""],["205.58437","0.10000000",1440280904.6762,"b","l",""],["205.58427","0.10000000",1440280940.5958,"b","l",""],["205.20000","0.02000000",1440280964.6705,"s","m",""],["205.58427","0.10000000",1440280983.1783,"b","l",""],["205.20010","0.02000000",1440281000.0324,"s","m",""],["205.58427","0.10000000",1440281026.369,"b","l",""],["205.20010","0.02000000",1440281035.4043,"s","m",""],["205.35823","1.00000000",1440281050.4719,"b","m",""],["205.35823","0.00431587",1440281060.8355,"b","m",""],["205.35823","0.10000000",1440281061.6731,"b","l",""],["205.35813","0.31200000",1440281088.2409,"b","l",""],["205.35823","0.70800000",1440281088.324,"b","l",""],["205.35823","2.76198400",1440281088.383,"b","l",""],["205.35823","2.21801600",1440281088.4391,"b","l",""],["205.35823","0.04910673",1440281088.4953,"b","l",""],["205.35823","3.95089327",1440281088.5509,"b","l",""],["205.20010","0.10000000",1440281096.2649,"b","l",""],["205.20000","0.02000000",1440281103.2775,"s","m",""],["205.20010","0.31200000",1440281111.7355,"b","l",""],["205.20010","0.10000000",1440281132.2075,"b","l",""],["205.20000","0.02000000",1440281139.2408,"s","m",""],["205.20000","0.02000000",1440281206.8544,"s","m",""],["205.20000","1.39326567",1440281217.981,"s","l",""],["205.20000","0.02073433",1440281221.3888,"b","l",""],["205.20020","0.02000000",1440281240.0386,"s","m",""],["205.20020","0.02000000",1440281273.1448,"s","m",""],["205.20020","0.06000000",1440281284.6361,"s","l",""],["205.20020","1.00000000",1440281303.1078,"s","l",""],["205.20020","0.02000000",1440281311.3132,"s","m",""],["205.20020","0.02000000",1440281349.7182,"s","m",""],["205.20020","0.05758819",1440281374.5687,"s","l",""],["205.00010","0.31200000",1440281474.8639,"s","l",""],["205.00000","4.80400000",1440281474.9531,"s","l",""],["204.93000","0.10000000",1440281475.0297,"s","l",""],["204.79547","0.31200000",1440281489.3817,"b","l",""],["204.70000","0.02000000",1440281807.8454,"s","l",""],["204.68000","0.05000000",1440281808.0762,"s","l",""],["204.66332","0.01000000",1440281817.9489,"s","l",""],["204.68131","8.96000000",1440281823.8646,"b","l",""],["204.68131","4.17200000",1440281823.9306,"b","l",""],["204.79535","0.31200000",1440281824.0031,"b","l",""],["204.79545","1.55600000",1440281824.0769,"b","l",""],["204.38110","0.31200000",1440281833.2221,"s","m",""],["204.27000","0.33396000",1440281833.2783,"s","m",""],["204.16033","0.80000000",1440281833.3293,"s","m",""],["204.04933","0.01203610",1440281833.3715,"s","m",""],["203.93000","8.54200390",1440281833.4143,"s","m",""],["204.23000","2.01732000",1440281949.0623,"s","l",""],["204.79537","0.31200000",1440281979.0554,"b","l",""],["204.79547","0.00488292",1440282068.94,"b","l",""],["204.79537","0.20000000",1440282257.5546,"s","l",""],["204.79537","5.49207483",1440282271.7299,"s","l",""],["204.79537","0.11200000",1440282271.7729,"s","l",""],["204.79537","0.88392517",1440282271.8073,"s","l",""],["204.79537","0.51200000",1440282271.8421,"s","l",""],["204.79537","0.31200000",1440282300.8704,"b","m",""],["204.79547","0.31366499",1440282300.936,"b","m",""],["204.55000","0.10000000",1440282572.3179,"b","l",""],["204.57045","0.33000000",1440282694.1086,"s","l",""],["204.57045","0.33294578",1440282695.6081,"s","l",""],["204.79547","0.04000000",1440282898.5804,"b","l",""],["204.79547","0.02000000",1440282898.6557,"b","l",""],["204.75000","0.05000000",1440283225.0413,"b","m",""],["204.79547","0.40848000",1440283225.1161,"b","m",""],["204.79547","0.91000000",1440283305.7868,"b","m",""],["204.70000","0.91138176",1440283393.992,"b","m",""],["204.70000","1.75394000",1440283468.838,"b","m",""],["204.69999","0.02000000",1440283809.7515,"b","l",""],["204.70000","0.22836601",1440283809.8479,"b","l",""],["204.38000","20.00000000",1440283815.3651,"b","l",""],["204.69990","0.12590000",1440284022.0314,"b","l",""],["204.27000","2.27322028",1440284217.8398,"s","l",""],["204.27000","0.21921000",1440284217.9135,"s","l",""],["204.27000","0.00075412",1440284217.9631,"s","l",""],["204.27000","4.00000000",1440284218.0118,"s","l",""],["204.27000","6.00000000",1440284218.1883,"s","l",""],["204.27000","0.80000000",1440284218.2388,"s","l",""],["204.27000","0.01000000",1440284218.2892,"s","l",""],["204.27000","0.10000000",1440284218.34,"s","l",""],["204.27000","0.01200000",1440284218.3903,"s","l",""],["204.27000","0.80000000",1440284218.4404,"s","l",""],["204.27000","0.10000000",1440284218.4907,"s","l",""],["204.27000","1.68481560",1440284218.5412,"s","l",""],["204.24010","0.10000000",1440284452.4284,"s","l",""],["204.24010","0.21200000",1440284513.4078,"s","m",""],["204.24000","0.78800000",1440284513.4717,"s","m",""],["204.69990","0.18610000",1440284654.8985,"b","l",""],["204.70000","0.81390000",1440284654.9883,"b","l",""],["204.56780","1.00000000",1440285028.5197,"b","l",""],["204.58900","0.30000000",1440285028.6217,"b","l",""],["204.60536","0.01000000",1440285028.6921,"b","l",""],["204.60536","0.30000000",1440285031.0021,"s","l",""],["204.60536","5.99000000",1440285374.859,"s","l",""],["204.57029","0.11940000",1440285394.2436,"b","m",""],["204.24000","0.21200000",1440285563.692,"s","l",""],["204.10000","0.01352000",1440285638.7104,"s","l",""],["203.90082","0.03815531",1440285699.0516,"s","m",""],["203.90000","0.02000000",1440285699.1185,"s","m",""],["203.79197","0.01000000",1440285699.1701,"s","m",""],["203.70000","0.02000000",1440285699.2334,"s","m",""],["203.68010","0.31200000",1440285699.2862,"s","m",""],["203.68000","0.15734469",1440285699.5998,"s","m",""],["203.69010","0.10000000",1440285737.9674,"s","l",""],["203.69010","0.21200000",1440285747.0263,"s","m",""],["203.68000","1.32957785",1440285747.0844,"s","m",""],["203.50000","9.70719610",1440285747.1366,"s","m",""],["203.50000","3.75122605",1440285747.1797,"s","m",""],["203.70000","0.10000000",1440285820.8178,"b","l",""],["203.50012","0.31200000",1440285988.5442,"s","l",""],["203.50012","9.29600000",1440285994.1672,"b","l",""],["203.50012","4.10250000",1440285994.2171,"b","l",""],["203.50012","0.80000000",1440285994.2609,"b","l",""],["203.50012","0.01200000",1440285994.3059,"b","l",""],["203.50012","0.83700000",1440285994.3511,"b","l",""],["203.50012","0.90000000",1440285994.3963,"b","l",""],["203.50012","2.83477419",1440285994.4414,"b","l",""],["203.61110","0.31200000",1440286109.5868,"s","m",""],["203.61100","0.23637000",1440286109.6477,"s","m",""],["204.44988","0.31200000",1440286179.0396,"b","m",""],["204.44998","5.51700000",1440286179.1117,"b","m",""],["204.33890","0.31200000",1440286240.9418,"b","l",""],["204.44000","0.33333000",1440286241.0282,"b","l",""],["204.45000","0.35467000",1440286241.1106,"b","l",""],["204.33890","0.31200000",1440286335.93,"b","m",""],["204.33900","0.18400000",1440286336.0038,"b","m",""],["204.45000","1.69152951",1440286336.0567,"b","m",""],["204.33900","0.09200000",1440286428.1099,"b","l",""],["204.44990","0.31200000",1440286428.1923,"b","l",""],["204.45000","0.79862592",1440286428.283,"b","l",""],["204.45000","1.79737408",1440286428.3384,"b","l",""],["203.70010","0.21990000",1440286436.5936,"s","l",""],["204.44990","0.31200000",1440286739.3902,"b","l",""],["204.04210","0.31200000",1440286760.7618,"s","l",""],["204.04200","0.50000000",1440286760.9701,"s","l",""],["204.00000","1.00000000",1440286761.048,"s","l",""],["203.88000","0.50000000",1440286761.1188,"s","l",""],["203.72332","0.40000000",1440286761.1947,"s","l",""],["203.70000","0.50000000",1440286761.3756,"s","l",""],["203.67282","0.54480000",1440286761.4516,"s","l",""],["203.67292","0.31200000",1440286798.4648,"s","m",""],["203.67282","0.02400000",1440286798.5201,"s","m",""],["204.00000","10.00000000",1440286958.7873,"b","l",""],["204.00000","16.18800000",1440286958.813,"b","l",""],["203.79100","0.80000000",1440287009.354,"s","l",""],["203.68000","0.33459000",1440287009.4402,"s","l",""],["203.67282","9.61341000",1440287009.5219,"s","l",""],["203.67282","1.45200000",1440287009.5685,"s","l",""],["203.67282","0.98914049",1440287009.6158,"s","l",""],["203.67282","0.10000000",1440287009.6635,"s","l",""],["203.67282","0.26964951",1440287009.711,"s","l",""],["203.61232","0.01000000",1440287009.7795,"s","l",""],["203.60000","4.63121000",1440287015.3956,"b","l",""],["203.60000","5.00000000",1440287015.4576,"b","l",""],["203.60000","13.66614000",1440287015.5108,"b","l",""],["203.60000","1.33386000",1440287015.5652,"b","l",""],["203.99000","0.45210000",1440287079.7832,"b","m",""],["203.62010","0.31200000",1440287352.956,"s","m",""],["203.62000","5.39062592",1440287353.033,"s","m",""],["203.62000","5.00000000",1440287353.0795,"s","m",""],["203.62000","1.61682474",1440287353.1228,"s","m",""],["203.62000","0.06200000",1440287353.1674,"s","m",""],["203.62000","0.17400000",1440287353.2115,"s","m",""],["203.62000","0.17400000",1440287353.2555,"s","m",""],["203.62000","0.17400000",1440287353.2994,"s","m",""],["203.62000","0.17500000",1440287353.3434,"s","m",""],["203.62000","2.62417526",1440287353.3876,"s","m",""],["203.62000","4.29737408",1440287353.4318,"s","m",""],["203.99000","10.84040000",1440287537.6229,"b","l",""],["204.00000","14.06200000",1440287537.715,"b","l",""],["204.44990","0.31200000",1440287769.3043,"b","l",""],["204.45000","0.18765000",1440287769.3864,"b","l",""],["203.89482","0.80000000",1440287775.3462,"s","m",""],["203.78392","0.20000000",1440287775.3981,"s","m",""],["203.92202","0.80000000",1440288149.935,"s","l",""],["203.70010","0.31200000",1440288150.0474,"s","l",""],["203.67282","0.32167939",1440288150.126,"s","l",""],["203.67282","1.46609578",1440288150.7323,"s","l",""],["204.00000","0.10000000",1440288265.0589,"b","l",""],["204.00000","0.26770000",1440288265.1234,"b","l",""],["204.00000","1.97158000",1440288265.1794,"b","l",""],["204.00000","0.66072000",1440288265.2362,"b","l",""],["204.44990","0.07000000",1440288395.2921,"s","m",""],["204.45000","0.16300000",1440288428.5633,"b","l",""],["204.45000","0.00715049",1440288451.7127,"b","l",""],["204.45500","3.00000000",1440288451.7845,"b","l",""],["204.49000","1.15052017",1440288451.857,"b","l",""],["204.49000","0.00489021",1440288458.8676,"b","l",""],["204.49000","0.22500000",1440288470.0021,"b","l",""],["204.69999","1.00000000",1440288519.3639,"b","m",""],["204.74289","0.01000000",1440288519.4267,"b","m",""],["204.87000","0.10000000",1440288519.4846,"b","m",""],["204.90670","2.68610000",1440288519.5494,"b","m",""],["204.89990","0.31200000",1440288571.4783,"b","l",""],["204.89998","2.68800000",1440288571.5564,"b","l",""],["204.89988","0.31200000",1440288614.6516,"b","l",""],["204.89998","3.68800000",1440288614.7368,"b","l",""],["204.89988","0.31200000",1440288627.2512,"b","l",""],["204.89988","2.68800000",1440288635.6139,"s","l",""],["204.89988","4.00000000",1440288647.5783,"s","l",""],["204.89998","4.00000000",1440288651.5759,"b","l",""],["204.89988","0.63000000",1440288661.4848,"s","l",""],["204.89997","0.96441505",1440288670.4173,"b","l",""],["204.89997","2.03558495",1440288670.4821,"b","l",""],["204.12114","0.33850000",1440288698.512,"s","l",""],["204.12114","0.33850000",1440288700.3153,"s","l",""],["204.88889","0.31200000",1440288708.5807,"b","l",""],["204.89995","0.02483069",1440288708.6634,"b","l",""],["204.88889","0.21680000",1440288716.1306,"s","l",""],["204.89985","0.10000000",1440288743.5497,"b","l",""],["204.88800","0.10000000",1440288778.7647,"b","l",""],["204.89982","0.10000000",1440288821.8388,"b","l",""],["204.25000","0.10000000",1440288920.0668,"s","l",""],["204.11886","0.40080000",1440288920.1431,"s","l",""],["204.11886","0.33430000",1440288920.4293,"s","l",""],["204.11886","0.06490000",1440288920.647,"s","l",""],["203.89696","0.23370000",1440288920.7158,"s","l",""],["203.89696","0.07830000",1440288941.7876,"s","l",""],["203.89686","0.35760000",1440288941.8647,"s","l",""],["203.89686","0.50000000",1440289024.5786,"s","l",""],["203.89686","0.50000000",1440289032.2339,"s","l",""],["203.89686","1.32559491",1440289033.4871,"s","l",""],["203.89686","0.17290369",1440289033.716,"s","l",""],["203.89696","0.31200000",1440289038.7578,"s","l",""],["203.89686","0.86450000",1440289038.834,"s","l",""],["203.89686","0.50000000",1440289039.2203,"s","l",""],["203.89698","0.21821689",1440289064.9674,"s","l",""],["203.89698","0.00490443",1440289077.0415,"s","l",""],["203.89698","0.08887868",1440289095.546,"s","l",""],["203.89686","0.01112132",1440289095.6241,"s","l",""],["204.23000","0.02891375",1440289539.6477,"b","m",""],["204.23000","0.07108625",1440289674.7372,"b","l",""],["204.23000","3.00000000",1440289698.9189,"s","l",""],["204.28000","0.04175131",1440290019.9635,"b","m",""],["204.41000","0.10000000",1440290094.7858,"b","l",""],["204.51000","0.10000000",1440290094.8642,"b","l",""],["204.53000","0.10000000",1440290094.9336,"b","l",""],["204.66000","0.10000000",1440290095.0043,"b","l",""],["204.86776","0.01000000",1440290095.0747,"b","l",""],["204.89898","1.06250000",1440290095.2778,"b","l",""],["204.89898","2.59370000",1440290095.4983,"b","l",""],["204.89888","0.10000000",1440290137.6585,"b","l",""],["204.89888","0.10000000",1440290141.8087,"b","l",""],["204.89900","0.10000000",1440290177.5493,"b","l",""],["204.78790","0.10000000",1440290221.0026,"b","l",""],["204.89890","0.23948141",1440290297.4072,"b","m",""],["204.89890","0.00428720",1440290338.6547,"b","m",""],["204.78790","0.18101800",1440290482.3044,"b","m",""],["204.52893","0.01000000",1440291861.1361,"b","l",""],["204.67698","0.24452000",1440291861.2328,"b","l",""],["204.89888","0.21392169",1440292185.177,"b","m",""],["204.89888","0.09807831",1440292488.871,"b","m",""],["204.89898","0.61831169",1440292488.9451,"b","m",""],["204.49010","0.31200000",1440292711.525,"s","l",""],["204.49000","0.92048032",1440292711.6101,"s","l",""],["204.23002","0.20000000",1440292874.0342,"s","l",""],["204.23000","0.32000000",1440292874.124,"s","l",""],["204.23000","0.17300000",1440292880.48,"s","l",""],["204.23000","0.17300000",1440292887.6515,"s","l",""],["204.23000","0.17300000",1440292894.763,"s","l",""],["204.23000","0.17300000",1440292897.1472,"s","l",""],["204.23000","2.86441505",1440293015.7299,"s","m",""],["204.13000","1.13558495",1440293015.7898,"s","m",""],["204.13000","4.00000000",1440293038.5955,"s","m",""],["204.13000","3.79449121",1440293063.0443,"s","m",""],["204.13000","0.00493070",1440293166.1314,"s","m",""],["204.13000","10.99506930",1440293166.1889,"s","m",""],["204.45617","0.08479391",1440293339.4751,"b","m",""],["204.56898","0.80000000",1440294915.4845,"b","l",""],["204.67988","0.31200000",1440294915.5587,"b","l",""],["204.67998","0.14290000",1440294915.6346,"b","l",""],["204.67998","0.16340000",1440294915.8467,"b","l",""],["204.59990","0.31200000",1440295065.4315,"b","l",""],["204.60000","0.46980000",1440295065.5055,"b","l",""],["204.60000","0.50136275",1440295065.9823,"b","l",""],["204.60000","0.02883725",1440295069.3224,"b","l",""],["204.65089","0.57676275",1440295069.3942,"b","l",""],["204.67988","0.19170000",1440295175.4301,"b","l",""],["204.67988","0.12030000",1440295175.899,"b","l",""],["204.67988","0.06968921",1440295178.8418,"s","l",""],["204.67988","0.12231079",1440295181.4714,"b","l",""],["204.67998","0.46148921",1440295181.5435,"b","l",""],["204.67998","8.40730910",1440295184.6548,"b","l",""],["204.67998","1.03660000",1440295189.2656,"b","l",""],["204.67998","0.13520000",1440295189.3489,"b","l",""],["204.67998","0.28380000",1440295190.0273,"b","l",""],["204.67998","1.25460169",1440295192.0507,"b","l",""],["204.68000","4.67357523",1440295192.1236,"b","l",""],["204.68000","1.03450000",1440295199.386,"b","l",""],["204.68000","0.13490000",1440295199.6804,"b","l",""],["204.67998","0.50135767",1440295201.685,"s","l",""],["204.67998","0.00064233",1440295206.8926,"b","l",""],["204.68000","0.15702477",1440295206.9652,"b","l",""],["204.68131","0.34368397",1440295207.1684,"b","l",""],["204.68131","1.03280000",1440295209.2721,"b","l",""],["204.68131","0.13470000",1440295210.0221,"b","l",""],["204.68129","0.50135010",1440295216.1803,"b","l",""],["204.68000","0.08075725",1440295218.9735,"s","l",""],["204.68000","0.01924275",1440295219.2784,"b","l",""],["204.68119","0.11515725",1440295219.3487,"b","l",""],["204.68119","0.19684275",1440295219.706,"b","l",""],["204.68129","0.83415725",1440295219.7833,"b","l",""],["204.68129","0.50135019",1440295224.231,"b","l",""],["204.68129","0.19180000",1440295229.2931,"b","l",""],["204.07010","0.31200000",1440295230.7892,"s","l",""],["204.07000","0.10000000",1440295230.8662,"s","l",""],["204.02000","0.06823085",1440295230.9414,"s","l",""],["204.68000","0.38290000",1440295250.8569,"s","l",""],["204.68000","0.03770037",1440295252.3039,"s","l",""],["204.02000","0.03176915",1440295280.6224,"s","l",""],["204.01100","0.46823085",1440295280.6979,"s","l",""],["204.01110","0.31200000",1440295282.5888,"s","l",""],["203.90000","0.10000000",1440295289.6105,"s","l",""],["203.89686","0.18000000",1440295289.6877,"s","l",""],["203.89686","0.46690000",1440295300.6785,"s","l",""],["204.12114","0.10000000",1440295375.6885,"s","l",""],["204.12124","0.01000000",1440296002.1293,"s","l",""],["204.91000","0.10000000",1440296645.2762,"b","m",""],["204.95990","0.31200000",1440296645.3511,"b","m",""],["204.96000","0.10000000",1440296645.4109,"b","m",""],["204.99999","0.10261415",1440296645.4708,"b","m",""],["204.99999","0.35004655",1440296658.4776,"b","m",""],["204.99989","0.31200000",1440296732.7145,"b","l",""],["204.99999","34.68800000",1440296732.7974,"b","l",""],["204.99999","25.04800000",1440296733.119,"b","l",""],["204.79547","0.02000000",1440296735.516,"s","m",""],["204.99999","0.10000000",1440296738.3369,"b","l",""],["204.99999","23.83635930",1440296745.4855,"b","l",""],["205.02076","0.02000000",1440296768.5175,"s","m",""],["205.11000","1.44719964",1440296771.5287,"b","l",""],["205.13533","0.03787117",1440296777.5653,"b","l",""],["205.15285","0.01000000",1440296777.6403,"b","l",""],["205.21000","0.10000000",1440296777.7135,"b","l",""],["205.34000","0.10000000",1440296777.7919,"b","l",""],["205.43000","0.05907000",1440296794.075,"b","l",""],["205.28000","0.02000000",1440296800.8486,"s","m",""],["205.59000","0.10000000",1440296810.1983,"b","l",""],["205.65000","0.10000000",1440296810.2805,"b","l",""],["205.69000","0.31200000",1440296815.2149,"s","l",""],["205.47203","1.00000000",1440296829.0519,"s","m",""],["205.47203","0.02000000",1440296833.1747,"s","m",""],["205.50000","0.02000000",1440296865.1963,"s","m",""],["205.50000","0.02000000",1440296899.2637,"s","m",""],["205.61102","0.02000000",1440296931.5111,"s","m",""],["205.76831","0.01200000",1440296936.1893,"b","l",""],["205.84000","0.10000000",1440296937.4872,"b","l",""],["205.75002","0.02000000",1440296963.5425,"s","m",""],["205.97202","0.02000000",1440296995.5383,"s","m",""],["205.64000","0.02000000",1440297027.3066,"s","m",""],["206.20000","0.04000000",1440297054.7499,"b","l",""],["206.37731","0.03775705",1440297054.8317,"b","l",""],["206.38562","0.01440000",1440297054.9055,"b","l",""],["206.46990","0.31200000",1440297054.9733,"b","l",""],["206.47000","0.10000000",1440297055.0455,"b","l",""],["206.49143","0.49584295",1440297055.1811,"b","l",""],["206.49143","9.00000000",1440297055.239,"b","l",""],["206.49990","0.31200000",1440297122.0681,"b","m",""],["206.50000","0.68800000",1440297122.1323,"b","m",""],["205.96100","0.02000000",1440297226.1137,"s","m",""],["205.96110","0.02000000",1440297258.8495,"s","m",""],["206.29990","0.10000000",1440297344.7953,"b","l",""],["206.29990","0.10000000",1440297385.7129,"b","l",""],["205.96429","0.02000000",1440297420.3602,"s","m",""],["206.30000","0.10000000",1440297425.5449,"b","l",""],["206.30000","0.10000000",1440297429.5605,"b","l",""],["205.96429","0.02000000",1440297452.0734,"s","m",""],["206.30000","0.10000000",1440297465.5735,"b","l",""],["205.96429","0.02000000",1440297484.0494,"s","m",""],["206.06000","0.02000000",1440297516.9397,"s","m",""],["206.24000","0.02000000",1440297550.0092,"s","m",""],["206.30000","0.10000000",1440297573.6338,"b","l",""],["206.06000","0.02000000",1440297586.1853,"s","m",""],["206.06000","0.01000000",1440297586.6793,"s","l",""],["206.06000","0.05000000",1440297596.3081,"s","l",""],["205.96429","0.53000000",1440297596.3828,"s","l",""],["205.81372","0.43790000",1440297596.453,"s","l",""],["205.81372","0.13280000",1440297596.6627,"s","l",""],["205.81372","0.22930000",1440297601.3554,"s","l",""],["205.50000","0.27070000",1440297601.4345,"s","l",""],["205.50002","0.20050000",1440297604.3163,"s","l",""],["205.50002","0.20050000",1440297605.6429,"s","l",""],["205.50012","0.08748059",1440297633.0994,"s","l",""],["206.00000","0.02000000",1440297690.7623,"s","m",""],["206.00000","0.02000000",1440297723.3026,"s","m",""],["206.00000","0.02000000",1440297756.4234,"s","m",""],["206.00000","0.02000000",1440297788.2071,"s","m",""],["206.00000","0.02000000",1440297821.6919,"s","m",""],["206.00000","0.02000000",1440297855.1554,"s","m",""],["206.00000","0.02000000",1440297887.6117,"s","m",""],["206.00000","0.02000000",1440297920.0358,"s","m",""],["206.00000","0.02000000",1440297952.1905,"s","m",""],["206.00000","0.02000000",1440297984.8022,"s","m",""],["206.00000","0.02000000",1440298017.0135,"s","m",""],["206.03000","0.02000000",1440298049.2512,"s","m",""],["206.03000","0.02000000",1440298082.0499,"s","m",""],["206.00000","0.02000000",1440298114.6134,"s","m",""],["206.00000","0.02000000",1440298146.328,"s","m",""],["206.00000","0.02000000",1440298181.5525,"s","m",""],["206.00000","0.02000000",1440298217.7329,"s","m",""],["206.00000","0.02000000",1440298250.1816,"s","m",""],["206.00000","0.02000000",1440298282.5815,"s","m",""],["206.00000","0.02000000",1440298314.887,"s","m",""],["206.10000","0.02000000",1440298346.5285,"s","m",""],["206.10000","0.02000000",1440298379.128,"s","m",""],["206.10000","0.02000000",1440298411.8661,"s","m",""],["206.10000","0.02000000",1440298445.8631,"s","m",""],["206.10000","0.02000000",1440298478.1565,"s","m",""],["206.10000","0.02000000",1440298511.3532,"s","m",""],["206.10000","0.88000000",1440298529.7158,"s","l",""],["206.00000","0.02000000",1440298544.2945,"s","m",""],["206.00000","0.02000000",1440298577.4348,"s","m",""],["206.00000","9.60000000",1440298606.7184,"s","l",""],["205.81066","0.19800000",1440298916.6808,"b","l",""],["205.81066","0.11400000",1440298917.4554,"b","l",""],["205.81076","0.29580000",1440298917.528,"b","l",""],["205.81076","1.51810000",1440298917.8471,"b","l",""],["205.81076","5.20379998",1440298918.0775,"b","l",""],["205.81076","0.04928543",1440298926.293,"b","l",""],["205.47203","14.12200000",1440300400.4899,"s","m",""],["205.24626","11.22901000",1440300400.5542,"s","m",""],["205.15000","0.10000000",1440300568.5034,"b","l",""],["205.12781","0.03804092",1440300640.9917,"s","l",""],["205.02084","0.07715908",1440300641.0694,"s","l",""],["205.47203","9.00000000",1440300700.5685,"s","l",""],["205.24895","0.03968897",1440301005.9199,"s","l",""],["205.24895","0.07847987",1440301007.6077,"s","l",""],["205.58303","0.33480000",1440301261.3587,"s","l",""],["205.58303","0.46520000",1440301270.9772,"s","l",""],["205.47213","0.10790000",1440301271.0518,"s","l",""],["205.30110","0.17840000",1440301862.4875,"s","l",""],["205.30110","0.13360000",1440301872.4308,"s","l",""],["205.26835","0.01000000",1440301872.5102,"s","l",""],["205.24626","0.29070000",1440301872.581,"s","l",""],["205.24636","0.31200000",1440301941.3011,"s","l",""],["205.24626","0.15940000",1440301941.3799,"s","l",""],["205.24628","0.23040000",1440301957.8116,"b","l",""],["205.24636","0.31200000",1440302021.0463,"s","l",""],["205.24626","0.13870000",1440302021.123,"s","l",""],["205.24636","0.05701085",1440302321.5895,"s","l",""],["205.13587","0.01000000",1440302402.877,"s","l",""],["205.03000","0.09000000",1440302410.2866,"b","l",""],["204.57055","0.10000000",1440302732.1497,"s","l",""],["204.57055","0.10000000",1440302798.2952,"s","l",""],["204.79557","0.31200000",1440303875.8266,"s","l",""],["204.79547","9.68800000",1440303875.908,"s","l",""],["204.79557","0.31200000",1440303891.3785,"s","l",""],["204.79547","3.66400000",1440303891.4572,"s","l",""],["204.57045","6.02400000",1440303891.5268,"s","l",""],["204.57057","0.31200000",1440303905.9985,"s","l",""],["204.57045","7.99200000",1440303906.0786,"s","l",""],["204.54232","0.01000000",1440303906.1487,"s","l",""],["204.50000","0.30000000",1440303906.2184,"s","l",""],["204.50000","1.38600000",1440303912.2683,"b","l",""],["204.57045","10.00000000",1440303932.3707,"s","l",""],["204.57055","0.31200000",1440303953.7252,"s","l",""],["204.57045","2.81300000",1440303953.8045,"s","l",""],["204.57045","6.87500000",1440303953.8137,"s","l",""],["204.57055","0.31200000",1440303971.1452,"s","l",""],["204.57045","5.39200000",1440303971.2275,"s","l",""],["204.57045","4.29600000",1440303971.2368,"s","l",""],["204.57045","10.00000000",1440303988.6177,"s","l",""],["204.38002","1.50997000",1440304053.5461,"s","m",""],["204.53266","0.01000000",1440304076.6089,"b","l",""],["204.38012","0.31200000",1440304082.4453,"s","m",""],["204.34567","0.18800000",1440304082.4996,"s","m",""],["204.34581","0.31200000",1440304103.4257,"s","m",""],["204.34567","5.68800000",1440304103.4795,"s","m",""],["204.36590","0.31200000",1440304149.5341,"s","m",""],["204.34567","2.25186863",1440304149.5936,"s","m",""],["204.44010","0.10000000",1440304327.8365,"s","l",""],["204.98980","0.10000000",1440305422.0923,"b","l",""],["204.99990","0.31200000",1440305422.1656,"b","l",""],["205.00000","0.16300000",1440305422.3752,"b","l",""],["205.00000","9.83700000",1440305423.6454,"b","l",""],["205.30980","0.01000000",1440305530.6289,"b","l",""],["205.31990","0.07560827",1440305530.7087,"b","l",""],["205.30980","0.10000000",1440305970.4664,"b","l",""],["205.31990","0.31200000",1440305970.5536,"b","l",""],["205.32000","0.10000000",1440305970.6281,"b","l",""],["205.49000","0.01000000",1440306189.5847,"b","m",""],["205.49000","0.09000000",1440306547.1537,"b","l",""],["205.50000","0.10000000",1440306608.4894,"b","l",""],["205.50000","0.10000000",1440306649.2239,"b","l",""],["205.50000","0.10000000",1440306737.3477,"b","l",""],["205.50000","0.79000000",1440306776.5039,"b","l",""],["205.50000","0.10000000",1440306817.6123,"b","l",""],["205.50000","0.50000000",1440307056.9222,"b","l",""],["205.50000","0.04447000",1440307263.2861,"b","l",""],["205.49990","0.34665670",1440308236.72,"s","l",""],["205.49990","0.11358222",1440308236.7861,"s","l",""],["205.49990","0.13130000",1440308236.8215,"s","l",""],["205.49990","0.44336727",1440308236.8565,"s","l",""],["205.49990","0.10000000",1440308236.892,"s","l",""],["205.49990","0.03429800",1440308236.9272,"s","l",""],["205.49990","3.83079581",1440308236.9627,"s","l",""],["205.50000","1.00000000",1440308449.717,"b","l",""],["205.50000","0.09489051",1440308835.3111,"b","l",""],["205.49990","0.89000000",1440308896.4182,"s","l",""],["205.49020","0.10000000",1440308908.2888,"b","m",""],["205.49990","4.70610000",1440308908.3495,"b","m",""],["205.49000","0.22781752",1440308939.8335,"s","l",""],["205.49000","0.22790000",1440308940.7221,"s","l",""],["205.49000","1.88663681",1440309073.2222,"s","l",""],["205.05002","11.46800000",1440309088.7029,"s","l",""],["205.05000","0.53200000",1440309088.7783,"s","l",""],["205.29000","0.10000000",1440309097.7648,"b","l",""],["205.30000","0.10000000",1440309097.8545,"b","l",""],["205.05002","11.10500000",1440309105.21,"s","l",""],["205.05000","0.89500000",1440309105.2877,"s","l",""],["205.08000","4.00000000",1440309186.5669,"s","l",""],["205.08010","12.00000000",1440309238.7509,"b","l",""],["205.48980","0.10000000",1440309317.6412,"b","l",""],["205.50000","0.11900000",1440309464.2838,"b","m",""],["205.49990","2.56920419",1440309587.3435,"s","l",""],["205.49990","0.39079581",1440309587.3845,"s","l",""],["205.49990","0.50000000",1440309587.3952,"s","l",""],["205.35823","0.00486953",1440309600.0435,"b","m",""],["204.93000","0.71000000",1440309811.0192,"s","l",""],["204.92000","0.10000000",1440309811.1046,"s","l",""],["204.87000","0.10000000",1440309841.8702,"s","l",""],["204.75010","0.31200000",1440309852.8732,"s","l",""],["204.75000","0.10000000",1440309852.9521,"s","l",""],["204.63010","0.10000000",1440309865.959,"s","m",""],["204.62000","0.10000000",1440309890.2007,"s","l",""],["204.50000","0.10000000",1440309909.9251,"s","l",""],["204.45617","0.02000000",1440309922.6236,"b","m",""],["204.44610","0.02000000",1440309955.7075,"b","m",""],["204.25000","0.10000000",1440309958.1234,"s","l",""],["204.19990","2.11420419",1440309967.4028,"s","l",""],["204.19990","0.10000000",1440309967.4429,"s","l",""],["204.19990","2.23601611",1440309967.4767,"s","l",""],["204.19990","0.47977970",1440309967.5118,"s","l",""],["204.22120","0.08000000",1440309985.4043,"b","l",""],["204.23127","0.12000000",1440309985.4832,"b","l",""],["204.23127","0.02000000",1440309987.6836,"b","m",""],["204.19397","0.01000000",1440309999.5705,"s","l",""],["204.23127","0.02000000",1440310020.8023,"b","m",""],["204.23127","0.02000000",1440310052.655,"b","m",""],["204.23127","0.02000000",1440310084.8671,"b","m",""],["204.12000","4.60000000",1440310085.3611,"s","m",""],["204.23127","0.02000000",1440310117.3452,"b","m",""],["204.23127","0.02000000",1440310149.7237,"b","m",""],["204.22410","0.02000000",1440310182.8584,"b","m",""],["204.33510","0.02000000",1440310214.677,"b","m",""],["204.34517","0.02000000",1440310246.6472,"b","m",""],["204.34517","0.01999803",1440310278.9592,"b","m",""],["204.33510","0.02000000",1440310310.9328,"b","m",""],["204.33510","0.02000000",1440310343.4569,"b","m",""],["204.34517","0.02000000",1440310375.5486,"b","m",""],["204.33510","0.02000000",1440310410.5528,"b","m",""],["204.34517","0.02000000",1440310445.9911,"b","m",""],["204.40000","0.40000000",1440310471.0086,"b","m",""],["204.45617","0.06747150",1440310471.0703,"b","m",""],["204.45617","0.02000000",1440310482.2996,"b","m",""],["204.32770","0.02000000",1440310518.7468,"b","m",""],["204.32770","0.02000000",1440310551.0496,"b","m",""],["204.32770","0.06000000",1440310553.094,"b","l",""],["204.33779","0.01000000",1440310555.2441,"b","m",""],["204.57021","0.31200000",1440310555.3065,"b","m",""],["204.57031","0.08921000",1440310555.3671,"b","m",""],["204.57031","1.22207372",1440310686.3854,"s","l",""],["204.34517","0.02000000",1440310712.8333,"b","m",""],["204.13010","0.10000000",1440310740.5935,"s","l",""],["204.34517","0.02000000",1440310744.7508,"b","m",""],["204.34517","0.02000000",1440310778.1329,"b","m",""],["204.18030","0.10000000",1440310782.2764,"s","l",""],["204.34517","0.02000000",1440310810.4251,"b","m",""],["204.13010","0.10000000",1440310821.1312,"s","l",""],["204.12000","0.10000000",1440310827.0999,"s","l",""],["204.38910","0.02000000",1440310843.6697,"b","m",""],["204.13020","0.16000000",1440310848.0355,"s","l",""],["204.14030","0.10000000",1440310861.6059,"s","l",""],["204.37430","0.02000000",1440310876.3563,"b","m",""],["204.34517","0.02000000",1440310908.0094,"b","m",""],["204.33510","0.02000000",1440310939.9699,"b","m",""],["204.33510","0.02000000",1440310975.6417,"b","m",""],["204.30490","0.02000000",1440311012.6908,"b","m",""],["204.34517","0.02000000",1440311044.7436,"b","m",""],["204.34517","0.02000000",1440311077.4754,"b","m",""],["204.16020","0.10000000",1440311099.0891,"s","l",""],["204.15010","0.90000000",1440311099.1991,"s","l",""],["204.12000","2.37543911",1440311105.3129,"s","l",""],["204.02000","5.44697149",1440311105.3927,"s","l",""],["203.98000","3.93618940",1440311105.4665,"s","l",""],["204.34517","0.02000000",1440311109.3131,"b","m",""],["204.34507","0.16220319",1440311131.4573,"b","l",""],["204.34507","0.02000000",1440311141.935,"b","m",""],["203.99010","0.17990000",1440311153.3173,"s","l",""],["203.99020","0.10000000",1440311164.1381,"s","l",""],["204.12027","0.02000000",1440311174.932,"b","m",""],["204.02040","0.03000000",1440311202.8596,"s","l",""],["203.98000","0.07000000",1440311203.0701,"s","l",""],["204.12027","0.02000000",1440311207.3987,"b","m",""],["204.11020","0.10000000",1440311232.8689,"b","l",""],["204.12027","0.38574809",1440311232.9475,"b","l",""],["204.12027","0.02000000",1440311239.6645,"b","m",""],["203.99000","1.75430419",1440311246.6365,"s","l",""],["203.99000","0.46545820",1440311246.6856,"s","l",""],["203.99000","0.10000000",1440311246.7281,"s","l",""],["203.99000","0.10000000",1440311246.7703,"s","l",""],["203.99000","0.01000000",1440311246.8123,"s","l",""],["203.99000","0.10000000",1440311246.8533,"s","l",""],["203.99000","0.01000000",1440311246.8956,"s","l",""],["203.99000","0.09000000",1440311246.9379,"s","l",""],["203.99000","0.10000000",1440311246.9801,"s","l",""],["203.99000","0.10000000",1440311247.0225,"s","l",""],["203.99000","0.10000000",1440311247.0648,"s","l",""],["203.99000","0.02000000",1440311247.1073,"s","l",""],["203.99000","0.08000000",1440311247.1494,"s","l",""],["203.99000","0.02000000",1440311247.1917,"s","l",""],["203.99000","0.02000000",1440311247.234,"s","l",""],["203.99000","0.02000000",1440311247.2765,"s","l",""],["203.99000","0.02000000",1440311247.3187,"s","l",""],["203.99000","0.02000000",1440311247.3611,"s","l",""],["203.99000","0.02000000",1440311247.4032,"s","l",""],["203.99000","0.02000000",1440311247.4455,"s","l",""],["203.99000","0.06000000",1440311247.4879,"s","l",""],["203.99000","0.02000000",1440311247.5305,"s","l",""],["203.99000","0.02000000",1440311247.5727,"s","l",""],["203.99000","0.02000000",1440311247.6151,"s","l",""],["203.99000","0.02000000",1440311247.6625,"s","l",""],["203.99000","0.02000000",1440311247.7048,"s","l",""],["203.99000","0.10000000",1440311247.7473,"s","l",""],["203.99000","1.46023761",1440311247.7917,"s","l",""],["203.98000","3.45214561",1440311247.8552,"s","l",""],["203.89562","0.02089466",1440311265.2545,"b","l",""],["203.89562","0.02000000",1440311271.5094,"b","m",""],["204.22110","0.02000000",1440311305.1893,"b","m",""],["204.23127","0.02000000",1440311337.6233,"b","m",""],["204.31900","0.02001086",1440311369.6856,"b","m",""],["204.21000","0.02000000",1440311402.9113,"b","m",""],["204.20990","0.02000000",1440311435.1941,"b","m",""],["204.21000","0.02000000",1440311467.8697,"b","m",""],["204.21000","0.02000000",1440311501.35,"b","m",""],["204.21000","0.02000000",1440311537.3679,"b","m",""],["204.21000","0.02000000",1440311573.1237,"b","m",""],["204.21000","0.02000000",1440311605.3031,"b","m",""],["204.21000","0.02000000",1440311638.259,"b","m",""],["204.21000","0.26000000",1440311646.76,"b","l",""],["204.34517","0.02000000",1440311928.527,"b","m",""],["204.26030","0.10000000",1440311990.4161,"b","l",""],["204.27040","1.31000000",1440312000.1762,"s","l",""],["204.22010","0.02000000",1440312019.0272,"s","l",""],["204.21000","27.68800000",1440312019.1003,"s","l",""],["204.23127","0.02000000",1440312026.3218,"b","m",""],["204.23020","0.30000000",1440312065.9505,"s","l",""],["204.22010","0.10000000",1440312066.0274,"s","l",""],["204.21000","24.84300000",1440312066.0963,"s","l",""],["204.22010","4.55000000",1440312112.2751,"s","l",""],["204.21000","23.11000000",1440312112.3501,"s","l",""],["204.42930","0.11960000",1440312202.3319,"b","m",""],["204.31830","0.02000988",1440312225.4094,"b","m",""],["204.52560","0.10000000",1440312570.726,"b","m",""],["204.53568","0.80000000",1440312570.7993,"b","m",""],["204.64658","0.31200000",1440312570.8541,"b","m",""],["204.64668","0.78800000",1440312570.9121,"b","m",""],["204.34100","0.01099192",1440313424.1756,"s","l",""],["204.50000","1.00000000",1440314315.2865,"b","l",""],["204.39070","0.09000000",1440314970.0947,"s","l",""],["204.25010","1.76000000",1440314976.8974,"s","l",""],["204.24000","0.50000000",1440314976.974,"s","l",""],["204.22000","0.30000000",1440314977.0485,"s","l",""],["204.21000","22.33900000",1440314977.12,"s","l",""],["204.45617","0.01000000",1440315000.2098,"b","l",""],["204.56840","0.02450000",1440315417.3207,"b","l",""],["204.45000","0.17776846",1440315756.518,"b","l",""],["204.31050","1.68000000",1440315760.695,"s","l",""],["204.45000","0.22223154",1440315769.2948,"b","m",""],["204.45617","14.78700000",1440315769.4787,"b","m",""],["204.68131","10.64200292",1440315769.5382,"b","m",""],["204.66098","0.10038000",1440315953.3833,"b","m",""],["204.24050","0.02000000",1440316183.9509,"s","m",""],["204.21000","0.10500000",1440316184.0127,"s","m",""],["204.34517","0.19212858",1440316336.9167,"b","m",""],["204.21651","0.01000000",1440317366.4489,"b","m",""],["204.34000","0.15017000",1440317366.5452,"b","m",""],["204.34000","0.13902905",1440317459.3035,"b","m",""],["204.34000","0.11080095",1440317562.6978,"b","l",""],["204.34000","0.21707905",1440317575.8775,"s","l",""],["204.21000","1.65500000",1440317650.7766,"s","l",""],["204.19630","8.00000000",1440317650.8588,"s","l",""],["204.18370","0.10000000",1440317650.9277,"s","l",""],["204.12027","0.02000000",1440317682.863,"b","m",""],["204.12027","0.49000000",1440317708.8002,"b","m",""],["204.12027","0.02000000",1440317716.4244,"b","m",""],["204.23127","0.01998912",1440317752.5622,"b","m",""],["204.12027","0.02000000",1440317791.4179,"b","m",""],["204.10000","0.02000000",1440317824.2102,"b","m",""],["204.10000","0.02000000",1440317857.9486,"b","m",""],["204.10000","0.02000000",1440317890.7996,"b","m",""],["204.10000","0.02000000",1440317923.602,"b","m",""],["204.08990","0.02000000",1440317955.969,"b","m",""],["203.99000","0.10000000",1440317988.4503,"s","l",""],["203.97000","0.04482135",1440317988.5272,"s","l",""],["203.97000","0.00017865",1440317989.413,"b","m",""],["204.10000","0.01980872",1440317989.429,"b","m",""],["203.88588","0.03815655",1440318007.1546,"s","l",""],["203.80000","3.00000000",1440318007.2352,"s","l",""],["203.72240","0.10000000",1440318007.3086,"s","l",""],["203.70000","1.00000000",1440318021.4331,"s","l",""],["203.68000","25.79900000",1440318021.5087,"s","l",""],["203.78222","0.02000000",1440318022.0482,"b","m",""],["203.68000","24.96000000",1440318035.6966,"s","l",""],["203.77220","0.02000000",1440318054.5146,"b","m",""],["203.68000","28.14400000",1440318062.9838,"s","l",""],["203.68000","21.09700000",1440318078.9186,"s","l",""],["203.78222","0.02000000",1440318087.569,"b","m",""],["203.77220","0.02000098",1440318119.5786,"b","m",""],["203.78222","0.23010000",1440318131.9073,"b","m",""],["203.67284","0.10000000",1440318151.7494,"s","l",""],["204.00662","0.02000000",1440318152.3464,"b","m",""],["203.99660","0.02000000",1440318184.4134,"b","m",""],["204.10000","0.04000000",1440318203.1085,"b","m",""],["204.11000","0.00714000",1440318203.298,"b","m",""],["204.08980","0.08000000",1440318310.5468,"b","m",""],["204.23000","0.01337613",1440318310.621,"b","m",""],["204.12016","0.01000000",1440318332.6631,"b","l",""],["204.19880","0.02246244",1440318332.7475,"b","l",""],["204.00662","0.02000000",1440318385.9158,"b","m",""]],"last":"1440318385915770354"}}'
41
+ http_version:
42
+ recorded_at: Sun, 23 Aug 2015 08:27:09 GMT
43
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,41 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.kraken.com/0/private/TradesHistory
6
+ body:
7
+ encoding: UTF-8
8
+ string: nonce=943910819948949525
9
+ headers:
10
+ Api-Key:
11
+ - COMPUTED
12
+ Api-Sign:
13
+ - COMPUTED
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Server:
20
+ - cloudflare-nginx
21
+ Date:
22
+ - Sun, 23 Aug 2015 01:33:30 GMT
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=COMPUTED; expires=Mon, 22-Aug-16
31
+ 01:33:29 GMT; path=/; domain=.kraken.com; HttpOnly
32
+ Vary:
33
+ - Accept-Encoding
34
+ Cf-Ray:
35
+ - COMPUTED
36
+ body:
37
+ encoding: UTF-8
38
+ string: '{"error":[],"result":{"trades":{"TGGPX6-6RB25-OBRPHS":{"ordertxid":"O475ZL-YESKC-XPWMHB","pair":"XETHZEUR","time":1440193797.3785,"type":"sell","ordertype":"limit","price":"1.30349","cost":"1226.95680","fee":"1.96313","vol":"941.28593402","margin":"0.00000","misc":""},"TKCPEI-IOJ3V-OWYLD6":{"ordertxid":"OFFEW7-XBSCD-QM2I6R","pair":"XETHZEUR","time":1440189051.7106,"type":"sell","ordertype":"limit","price":"1.27000","cost":"10.35031","fee":"0.01656","vol":"8.14984964","margin":"0.00000","misc":""},"TXMKZY-UJRDU-UXA3RQ":{"ordertxid":"OFFEW7-XBSCD-QM2I6R","pair":"XETHZEUR","time":1440189045.0212,"type":"sell","ordertype":"limit","price":"1.27000","cost":"20.69172","fee":"0.03311","vol":"16.29269422","margin":"0.00000","misc":""},"TUQDI7-2A2VX-4J3J6P":{"ordertxid":"O4IZWP-FBLE5-VGGBR2","pair":"XETHZEUR","time":1440188566.3866,"type":"sell","ordertype":"limit","price":"1.27000","cost":"36.69924","fee":"0.05872","vol":"28.89704241","margin":"0.00000","misc":""},"TDKDI7-GLJU6-AXPDJI":{"ordertxid":"O4IZWP-FBLE5-VGGBR2","pair":"XETHZEUR","time":1440188551.6007,"type":"sell","ordertype":"limit","price":"1.27000","cost":"8.41248","fee":"0.01346","vol":"6.62400000","margin":"0.00000","misc":""},"T76GH4-6WSNO-BR5C6F":{"ordertxid":"O4IZWP-FBLE5-VGGBR2","pair":"XETHZEUR","time":1440188544.5184,"type":"sell","ordertype":"limit","price":"1.28341","cost":"0.00110","fee":"0.00001","vol":"0.00085723","margin":"0.00000","misc":""},"T6BPBS-CKEOT-5RV3IV":{"ordertxid":"OYKIQR-L3VX6-PXX3QP","pair":"XETHZEUR","time":1440184482.1885,"type":"buy","ordertype":"limit","price":"1.25001","cost":"599.48719","fee":"0.95918","vol":"479.58591739","margin":"0.00000","misc":""},"T6ZXO4-PRCTQ-NKWANC":{"ordertxid":"OYKIQR-L3VX6-PXX3QP","pair":"XETHZEUR","time":1440184480.8866,"type":"buy","ordertype":"limit","price":"1.25001","cost":"33.13289","fee":"0.05301","vol":"26.50610000","margin":"0.00000","misc":""},"TJOUGD-NBNFP-FW32TP":{"ordertxid":"OYKIQR-L3VX6-PXX3QP","pair":"XETHZEUR","time":1440184480.7564,"type":"buy","ordertype":"limit","price":"1.25001","cost":"74.82260","fee":"0.11972","vol":"59.85760000","margin":"0.00000","misc":""},"T7YOUA-GQYLL-3SCZYP":{"ordertxid":"OYKIQR-L3VX6-PXX3QP","pair":"XETHZEUR","time":1440184475.844,"type":"buy","ordertype":"limit","price":"1.25001","cost":"54.10118","fee":"0.08656","vol":"43.28060000","margin":"0.00000","misc":""},"TEOPQ4-JYRII-A25DM2":{"ordertxid":"OYKIQR-L3VX6-PXX3QP","pair":"XETHZEUR","time":1440184474.7365,"type":"buy","ordertype":"limit","price":"1.25001","cost":"500.00400","fee":"0.80001","vol":"400.00000000","margin":"0.00000","misc":""},"T43EFN-LF4HZ-6MIW5U":{"ordertxid":"OYKIQR-L3VX6-PXX3QP","pair":"XETHZEUR","time":1440184465.6373,"type":"buy","ordertype":"limit","price":"1.25001","cost":"56.46670","fee":"0.09035","vol":"45.17299861","margin":"0.00000","misc":""},"TUIXMX-M7YTO-PIPMZA":{"ordertxid":"OYKIQR-L3VX6-PXX3QP","pair":"XETHZEUR","time":1440184462.7562,"type":"buy","ordertype":"limit","price":"1.25001","cost":"33.02374","fee":"0.05284","vol":"26.41878400","margin":"0.00000","misc":""},"TFHB5G-ORDPC-D5N4XY":{"ordertxid":"OYKIQR-L3VX6-PXX3QP","pair":"XETHZEUR","time":1440184461.7489,"type":"buy","ordertype":"limit","price":"1.25001","cost":"23.97269","fee":"0.03836","vol":"19.17800000","margin":"0.00000","misc":""},"TWYBFW-2M6VA-XEWWTK":{"ordertxid":"OTROMJ-BVPA3-ROGNZX","pair":"XETHZEUR","time":1440178999.414,"type":"buy","ordertype":"limit","price":"1.36000","cost":"0.36000","fee":"0.00058","vol":"0.26470589","margin":"0.00000","misc":""},"TC4KV7-BEUVG-QMCRXY":{"ordertxid":"OTROMJ-BVPA3-ROGNZX","pair":"XETHZEUR","time":1440178997.8852,"type":"buy","ordertype":"limit","price":"1.36000","cost":"1.00000","fee":"0.00160","vol":"0.73529411","margin":"0.00000","misc":""},"TPCDMG-ZYQYH-N4VHJG":{"ordertxid":"OMOPDQ-PMPBS-WEB44W","pair":"XXBTZEUR","time":1440152868.483,"type":"sell","ordertype":"limit","price":"210.20000","cost":"105.10000","fee":"0.16816","vol":"0.50000000","margin":"0.00000","misc":""},"TEY2ZW-LAGP3-PFFTVY":{"ordertxid":"OUJ4V4-HB25J-2PEX3A","pair":"XXBTZEUR","time":1440152630.3106,"type":"buy","ordertype":"limit","price":"209.86010","cost":"104.93005","fee":"0.16789","vol":"0.50000000","margin":"0.00000","misc":""},"TVCJ3B-3UVTL-2UWBVD":{"ordertxid":"OSOSHM-BOCYR-JJJENN","pair":"XETHZEUR","time":1440109173.7417,"type":"sell","ordertype":"market","price":"1.34042","cost":"1.59510","fee":"0.00415","vol":"1.19000000","margin":"0.00000","misc":""},"TFNLDH-4ABVJ-EOCGYZ":{"ordertxid":"O3FLSW-FMU5J-QILSVQ","pair":"XETHZEUR","time":1440096631.2024,"type":"buy","ordertype":"limit","price":"1.29989","cost":"1.54700","fee":"0.00402","vol":"1.19010000","margin":"0.00000","misc":""},"TJS2DT-S5GDF-746XS4":{"ordertxid":"O23UDQ-A73M5-BNZO4C","pair":"XETHZEUR","time":1440089663.9165,"type":"sell","ordertype":"limit","price":"1.22000","cost":"86.62000","fee":"0.13859","vol":"71.00000000","margin":"0.00000","misc":""},"TLZ5PB-MFBNT-LP7TDA":{"ordertxid":"OTDBFW-XEM3Q-S7XEJ6","pair":"XETHZEUR","time":1440088940.1339,"type":"sell","ordertype":"limit","price":"1.20000","cost":"24.00000","fee":"0.03840","vol":"20.00000000","margin":"0.00000","misc":""},"T6ZXLI-Z72TZ-BT5L24":{"ordertxid":"OOG4LN-WKYLK-K427GM","pair":"XETHZEUR","time":1440086465.0835,"type":"buy","ordertype":"limit","price":"1.16000","cost":"17.96049","fee":"0.02874","vol":"15.48318355","margin":"0.00000","misc":""},"TZQIMV-HBY7M-LYKNVU":{"ordertxid":"OOG4LN-WKYLK-K427GM","pair":"XETHZEUR","time":1440086255.6621,"type":"buy","ordertype":"limit","price":"1.16000","cost":"41.98771","fee":"0.06718","vol":"36.19630000","margin":"0.00000","misc":""},"TPVA2G-LYFJ3-4YFXMK":{"ordertxid":"OOG4LN-WKYLK-K427GM","pair":"XETHZEUR","time":1440086175.5005,"type":"buy","ordertype":"limit","price":"1.16000","cost":"34.01180","fee":"0.05442","vol":"29.32051645","margin":"0.00000","misc":""},"TNDTMF-2CJ74-GU3CRD":{"ordertxid":"OF25G6-RTPSE-EI4IZB","pair":"XETHZEUR","time":1440085418.2478,"type":"buy","ordertype":"limit","price":"1.15010","cost":"11.50100","fee":"0.01840","vol":"10.00000000","margin":"0.00000","misc":""},"TCSPYS-24HHP-EYJJH5":{"ordertxid":"ODSETW-TIS4S-QB2PNZ","pair":"XETHZEUR","time":1440080173.2833,"type":"sell","ordertype":"limit","price":"1.33000","cost":"106.12336","fee":"0.16980","vol":"79.79200000","margin":"0.00000","misc":""},"T6Y7M3-ZD76B-CHL75P":{"ordertxid":"OOEKSW-OY7Y6-LTEQVK","pair":"XETHZEUR","time":1440072661.2467,"type":"buy","ordertype":"limit","price":"1.25000","cost":"100.00000","fee":"0.26000","vol":"80.00000000","margin":"0.00000","misc":""}},"count":"28"}}'
39
+ http_version:
40
+ recorded_at: Sun, 23 Aug 2015 01:33:30 GMT
41
+ recorded_with: VCR 2.9.3
data/kraken_rb.gemspec ADDED
@@ -0,0 +1,33 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'kraken_client'
8
+ spec.version = KrakenClient::VERSION
9
+ spec.authors = ['Sidney SISSAOUI']
10
+ spec.email = ['shideneyu@gmail.com']
11
+ spec.description = %q{'Wrapper for Kraken Exchange API'}
12
+ spec.summary = %q{'Wrapper for Kraken Exchange API'}
13
+ spec.homepage = 'https://www.kraken.com/help/api'
14
+ spec.license = 'MIT'
15
+
16
+ spec.files = `git ls-files`.split($/).delete_if { |f| f =~ /\.gem$/ }
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ['lib']
20
+
21
+ spec.add_development_dependency 'bundler', '~> 1.3'
22
+ spec.add_development_dependency 'rake'
23
+ spec.add_development_dependency 'spectus'
24
+ spec.add_development_dependency 'pry'
25
+ spec.add_development_dependency 'webmock'
26
+ spec.add_development_dependency 'vcr'
27
+
28
+ spec.add_dependency 'httparty'
29
+ spec.add_dependency 'hashie'
30
+ spec.add_dependency 'addressable'
31
+ spec.add_dependency 'activesupport'
32
+
33
+ end
@@ -0,0 +1,13 @@
1
+ module KrakenClient
2
+ module Configurable
3
+
4
+ def config
5
+ @config ||= ::KrakenClient::Configuration.new
6
+ end
7
+
8
+ def configure
9
+ yield config if block_given?
10
+ end
11
+
12
+ end
13
+ end
@@ -0,0 +1,19 @@
1
+ module KrakenClient
2
+ class Configuration
3
+
4
+ attr_accessor :api_key, :api_secret, :base_uri, :limiter_interface,
5
+ :api_version, :tier, :limiter, :limit_current_count
6
+
7
+ def initialize
8
+ @api_key = ENV['KRAKEN_API_KEY']
9
+ @api_secret = ENV['KRAKEN_API_SECRET']
10
+ @base_uri = 'https://api.kraken.com'
11
+ @api_version = 0
12
+ @limiter = true
13
+ @tier = 2
14
+
15
+ @limiter_interface ||= KrakenClient::Requests::Limiter.new(self)
16
+ end
17
+
18
+ end
19
+ end
data/lib/exceptions.rb ADDED
@@ -0,0 +1,6 @@
1
+ module KrakenClient
2
+ class Exception < StandardError; end
3
+ class ArgumentError < Exception; end
4
+ class NotImplemented < Exception; end
5
+ class MissingApiKeys < Exception; end
6
+ end
@@ -0,0 +1,45 @@
1
+ require 'base64'
2
+ require 'securerandom'
3
+ require 'addressable/uri'
4
+ require 'httparty'
5
+ require 'hashie'
6
+ require 'pry'
7
+
8
+ module KrakenClient
9
+ class Application
10
+
11
+ def initialize(params)
12
+ set_config(params)
13
+ end
14
+
15
+ def public(options = {})
16
+ ::KrakenClient::Endpoints::Public.new(config, options)
17
+ end
18
+
19
+ def private(options = {})
20
+ requires_api_keys
21
+
22
+ ::KrakenClient::Endpoints::Private.new(config, options)
23
+ end
24
+
25
+ def config
26
+ @config ||= ::KrakenClient.config.dup
27
+ end
28
+
29
+ private
30
+
31
+ def requires_api_keys
32
+ return unless api_keys_missing?
33
+
34
+ fail KrakenClient::MissingApiKeys, 'This feature requires API credentials.'
35
+ end
36
+
37
+ def api_keys_missing?
38
+ !(config.api_key && config.api_secret)
39
+ end
40
+
41
+ def set_config(params)
42
+ params.each { |k, v| config.send("#{k}=", v) }
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,43 @@
1
+ module KrakenClient
2
+ module Endpoints
3
+ class Base
4
+
5
+ attr_accessor :config, :options
6
+
7
+ def initialize(config, options = {})
8
+ @config = config
9
+ @options = options
10
+
11
+ set_methods
12
+ end
13
+
14
+ def request_manager
15
+ @request_manager ||= KrakenClient::Requests::Base.build(config, type)
16
+ end
17
+
18
+ private
19
+
20
+ def set_methods
21
+ data.each do |method, method_alias|
22
+ self.class.send(:define_method, Array(method_alias).first) do |args = {}|
23
+ raise_exception(Array(method_alias).last, args)
24
+
25
+ perform(method.to_s, args)
26
+ end
27
+ end
28
+ end
29
+
30
+ def type
31
+ @type ||= self.class.name.demodulize
32
+ end
33
+
34
+ def data
35
+ fail ::KrakenClient::NotImplemented
36
+ end
37
+
38
+ def raise_exception
39
+ fail ::KrakenClient::NotImplemented
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,45 @@
1
+ module KrakenClient
2
+ module Endpoints
3
+ class Private < Base
4
+
5
+ def perform(endpoint_name, args)
6
+ url = config.base_uri + url_path(endpoint_name)
7
+ response = Hashie::Mash.new(request_manager.call(url, endpoint_name, args))
8
+ end
9
+
10
+ def data
11
+ {
12
+ :Balance => :balance,
13
+ :TradeBalance => :trade_balance,
14
+ :OpenOrders => :open_orders,
15
+ :ClosedOrders => :closed_orders,
16
+ :QueryOrders => [:query_orders, params: [:txid]],
17
+ :TradesHistory => :trades_history,
18
+ :QueryTrades => [:query_trades, params: [:txid]],
19
+ :OpenPositions => :open_positions, params: [:txid],
20
+ :Ledgers => :ledgers,
21
+ :QueryLedgers => [:query_ledgers, params: [:id]],
22
+ :TradeVolume => :trade_volume,
23
+ :AddOrder => [:add_order, params: [:pair, :type, :ordertype, :volume]],
24
+ :CancelOrder => [:cancel_order, params: [:txid]],
25
+ }
26
+ end
27
+
28
+ def raise_exception(options, args)
29
+ return unless options.is_a?(Hash)
30
+
31
+ leftover = options[:params] - args.keys
32
+
33
+ if leftover.length > 0
34
+ fail ::KrakenClient::ArgumentError, "Required options absent. Input must include #{leftover}"
35
+ end
36
+ end
37
+
38
+ private
39
+
40
+ def url_path(method)
41
+ '/' + config.api_version.to_s + '/private/' + method
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,33 @@
1
+ module KrakenClient
2
+ module Endpoints
3
+ class Public < Base
4
+
5
+ def perform(endpoint_name, args)
6
+ response = request_manager.call(url(endpoint_name), args)
7
+ hash = Hashie::Mash.new(JSON.parse(response.body))
8
+ hash[:result]
9
+ end
10
+
11
+ def data
12
+ {
13
+ :Time => :server_time,
14
+ :AssetPairs => :asset_pairs,
15
+ :Depth => :order_book,
16
+ :Ticker => :ticker,
17
+ :Trades => :trades,
18
+ :Spread => :spread,
19
+ :Assets => :assets,
20
+ }
21
+ end
22
+
23
+ private
24
+
25
+ def url(endpoint_name)
26
+ @url = config.base_uri + '/' + config.api_version.to_s + '/public/' + endpoint_name
27
+ end
28
+
29
+ def raise_exception(*)
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,35 @@
1
+ require 'observer'
2
+
3
+ module KrakenClient
4
+ module Requests
5
+ class Base
6
+
7
+ include Observable
8
+
9
+ attr_reader :config, :type, :endpoint_name, :url
10
+
11
+ def initialize(config, type)
12
+ @config = config
13
+ @type = type
14
+ add_observer(config.limiter_interface)
15
+ end
16
+
17
+ def self.build(config, type)
18
+ type = self.type(type)
19
+
20
+ "KrakenClient::Requests::#{type}".constantize.new(config, type)
21
+ end
22
+
23
+ def call(url, endpoint_name, options = nil)
24
+ changed
25
+ notify_observers(url.split('/').last)
26
+ end
27
+
28
+ private
29
+
30
+ def self.type(given_type)
31
+ given_type == 'Public' ? 'Get' : 'Post'
32
+ end
33
+ end
34
+ end
35
+ end