From 9e2eb434ca99935e7e60f82ca924731d4138de79 Mon Sep 17 00:00:00 2001 From: MitchellCash Date: Sun, 26 Apr 2020 16:40:59 +0100 Subject: [PATCH] Add ionomy exchange --- README.md | 1 + lib/cryptoexchange/exchanges/ionomy/market.rb | 12 +++ .../exchanges/ionomy/services/market.rb | 52 +++++++++++++ .../exchanges/ionomy/services/order_book.rb | 45 ++++++++++++ .../exchanges/ionomy/services/pairs.rb | 25 +++++++ .../exchanges/ionomy/services/trades.rb | 34 +++++++++ .../integration_specs_fetch_order_book.yml | 63 ++++++++++++++++ .../Ionomy/integration_specs_fetch_pairs.yml | 63 ++++++++++++++++ .../Ionomy/integration_specs_fetch_ticker.yml | 63 ++++++++++++++++ .../Ionomy/integration_specs_fetch_trade.yml | 63 ++++++++++++++++ .../ionomy/integration/market_spec.rb | 73 +++++++++++++++++++ spec/exchanges/ionomy/market_spec.rb | 6 ++ 12 files changed, 500 insertions(+) create mode 100644 lib/cryptoexchange/exchanges/ionomy/market.rb create mode 100644 lib/cryptoexchange/exchanges/ionomy/services/market.rb create mode 100644 lib/cryptoexchange/exchanges/ionomy/services/order_book.rb create mode 100644 lib/cryptoexchange/exchanges/ionomy/services/pairs.rb create mode 100644 lib/cryptoexchange/exchanges/ionomy/services/trades.rb create mode 100644 spec/cassettes/vcr_cassettes/Ionomy/integration_specs_fetch_order_book.yml create mode 100644 spec/cassettes/vcr_cassettes/Ionomy/integration_specs_fetch_pairs.yml create mode 100644 spec/cassettes/vcr_cassettes/Ionomy/integration_specs_fetch_ticker.yml create mode 100644 spec/cassettes/vcr_cassettes/Ionomy/integration_specs_fetch_trade.yml create mode 100644 spec/exchanges/ionomy/integration/market_spec.rb create mode 100644 spec/exchanges/ionomy/market_spec.rb diff --git a/README.md b/README.md index 3293a89fd..10823348f 100644 --- a/README.md +++ b/README.md @@ -322,6 +322,7 @@ Or install it yourself as: | IndependentReserve| Y | Y [x] | N | | Y | Y |independent_reserve| | | InfinityCoin | Y | | | | Y | Y | infinity_coin | | | InstantBitex | Y | Y [x] | Y | | Y | | instantbitex | | +| ionomy | Y | Y | Y | | Y | Y | ionomy | | | Iqfinex | Y | Y | Y | | Y | Y | iqfinex | | | Ironex | Y | | | | Y | | ironex | | | Itbit | Y | Y [x] | Y | | User-Defined| | itbit | | diff --git a/lib/cryptoexchange/exchanges/ionomy/market.rb b/lib/cryptoexchange/exchanges/ionomy/market.rb new file mode 100644 index 000000000..2127d7bea --- /dev/null +++ b/lib/cryptoexchange/exchanges/ionomy/market.rb @@ -0,0 +1,12 @@ +module Cryptoexchange::Exchanges + module Ionomy + class Market < Cryptoexchange::Models::Market + NAME = 'ionomy' + API_URL = 'https://ionomy.com/api/v1' + + def self.trade_page_url(args={}) + "https://ionomy.com/en/markets/#{args[:target]}-#{args[:base]}" + end + end + end +end diff --git a/lib/cryptoexchange/exchanges/ionomy/services/market.rb b/lib/cryptoexchange/exchanges/ionomy/services/market.rb new file mode 100644 index 000000000..b8d2e4ad2 --- /dev/null +++ b/lib/cryptoexchange/exchanges/ionomy/services/market.rb @@ -0,0 +1,52 @@ +module Cryptoexchange::Exchanges + module Ionomy + module Services + class Market < Cryptoexchange::Services::Market + class << self + def supports_individual_ticker_query? + false + end + end + + def fetch + output = super ticker_url + adapt_all(output) + end + + def ticker_url + "#{Cryptoexchange::Exchanges::Ionomy::Market::API_URL}/public/markets-summaries" + end + + def adapt_all(output) + output['data'].map do |output| + target, base = output['market'].split('-') + market_pair = Cryptoexchange::Models::MarketPair.new( + base: base, + target: target, + market: Ionomy::Market::NAME + ) + + adapt(output, market_pair) + end + end + + def adapt(output, market_pair) + ticker = Cryptoexchange::Models::Ticker.new + ticker.base = market_pair.base + ticker.target = market_pair.target + ticker.market = Ionomy::Market::NAME + ticker.bid = NumericHelper.to_d(output['highestBid']) + ticker.ask = NumericHelper.to_d(output['lowestAsk']) + ticker.last = NumericHelper.to_d(output['price']) + ticker.volume = NumericHelper.to_d(output['volume']) + ticker.high = NumericHelper.to_d(output['high']) + ticker.low = NumericHelper.to_d(output['low']) + ticker.change = NumericHelper.to_d(output['change']) + ticker.timestamp = nil + ticker.payload = output + ticker + end + end + end + end +end diff --git a/lib/cryptoexchange/exchanges/ionomy/services/order_book.rb b/lib/cryptoexchange/exchanges/ionomy/services/order_book.rb new file mode 100644 index 000000000..af0565327 --- /dev/null +++ b/lib/cryptoexchange/exchanges/ionomy/services/order_book.rb @@ -0,0 +1,45 @@ +module Cryptoexchange::Exchanges + module Ionomy + module Services + class OrderBook < Cryptoexchange::Services::Market + class << self + def supports_individual_ticker_query? + true + end + end + + def fetch(market_pair) + output = super(ticker_url(market_pair)) + adapt(output, market_pair) + end + + def ticker_url(market_pair) + base = market_pair.base + target = market_pair.target + "#{Cryptoexchange::Exchanges::Ionomy::Market::API_URL}/public/orderbook?market=#{target}-#{base}&type=both" + end + + def adapt(output, market_pair) + order_book = Cryptoexchange::Models::OrderBook.new + + order_book.base = market_pair.base + order_book.target = market_pair.target + order_book.market = Ionomy::Market::NAME + order_book.asks = adapt_orders output['data']['asks'] + order_book.bids = adapt_orders output['data']['bids'] + order_book.timestamp = nil + order_book.payload = output + order_book + end + + def adapt_orders(orders) + orders.collect do |order_entry| + Cryptoexchange::Models::Order.new(price: order_entry['price'], + amount: order_entry['size'] + ) + end + end + end + end + end +end diff --git a/lib/cryptoexchange/exchanges/ionomy/services/pairs.rb b/lib/cryptoexchange/exchanges/ionomy/services/pairs.rb new file mode 100644 index 000000000..c9ef34378 --- /dev/null +++ b/lib/cryptoexchange/exchanges/ionomy/services/pairs.rb @@ -0,0 +1,25 @@ +module Cryptoexchange::Exchanges + module Ionomy + module Services + class Pairs < Cryptoexchange::Services::Pairs + PAIRS_URL = "#{Cryptoexchange::Exchanges::Ionomy::Market::API_URL}/public/markets" + + def fetch + output = super + adapt(output) + end + + def adapt(output) + output['data'].map do |output| + target, base = output['market'].split('-') + Cryptoexchange::Models::MarketPair.new( + base: base, + target: target, + market: Ionomy::Market::NAME + ) + end + end + end + end + end +end diff --git a/lib/cryptoexchange/exchanges/ionomy/services/trades.rb b/lib/cryptoexchange/exchanges/ionomy/services/trades.rb new file mode 100644 index 000000000..b045138ad --- /dev/null +++ b/lib/cryptoexchange/exchanges/ionomy/services/trades.rb @@ -0,0 +1,34 @@ +module Cryptoexchange::Exchanges + module Ionomy + module Services + class Trades < Cryptoexchange::Services::Market + def fetch(market_pair) + output = super(ticker_url(market_pair)) + adapt(output, market_pair) + end + + def ticker_url(market_pair) + base = market_pair.base + target = market_pair.target + "#{Cryptoexchange::Exchanges::Ionomy::Market::API_URL}/public/market-history?market=#{target}-#{base}" + end + + def adapt(output, market_pair) + output['data'].collect do |trade| + tr = Cryptoexchange::Models::Trade.new + tr.trade_id = nil + tr.base = market_pair.base + tr.target = market_pair.target + tr.market = Ionomy::Market::NAME + tr.type = (trade['type'].include? "_BUY") ? "buy" : "sell" + tr.price = trade['price'] + tr.amount = trade['amount'] + tr.timestamp = DateTime.parse(trade['createdAt']).to_time.to_i + tr.payload = trade + tr + end + end + end + end + end +end diff --git a/spec/cassettes/vcr_cassettes/Ionomy/integration_specs_fetch_order_book.yml b/spec/cassettes/vcr_cassettes/Ionomy/integration_specs_fetch_order_book.yml new file mode 100644 index 000000000..d3d58de40 --- /dev/null +++ b/spec/cassettes/vcr_cassettes/Ionomy/integration_specs_fetch_order_book.yml @@ -0,0 +1,63 @@ +--- +http_interactions: +- request: + method: get + uri: https://ionomy.com/api/v1/public/orderbook?market=BTC-ION&type=both + body: + encoding: UTF-8 + string: '' + headers: + Connection: + - close + Host: + - ionomy.com + User-Agent: + - http.rb/5.0.0.pre + response: + status: + code: 200 + message: OK + headers: + Date: + - Wed, 29 Apr 2020 12:54:41 GMT + Content-Type: + - application/json; charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - close + Set-Cookie: + - __cfduid=db16d51ed3bdb78147f552acd9e3f00101588164881; expires=Fri, 29-May-20 + 12:54:41 GMT; path=/; domain=.ionomy.com; HttpOnly; SameSite=Lax; Secure + X-Dns-Prefetch-Control: + - 'off' + X-Frame-Options: + - SAMEORIGIN + Strict-Transport-Security: + - max-age=0; includeSubDomains + X-Download-Options: + - noopen + X-Content-Type-Options: + - nosniff + X-Xss-Protection: + - 1; mode=block + Etag: + - W/"275a-hmS38M13J2+g+5Sk1D22aGHoffY" + Vary: + - Accept-Encoding + Cf-Cache-Status: + - DYNAMIC + Expect-Ct: + - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" + Server: + - cloudflare + Cf-Ray: + - 58b92c4de97cd224-MAN + Cf-Request-Id: + - '02679a04b40000d2249b265200000001' + body: + encoding: UTF-8 + string: '{"success":true,"status":200,"message":null,"data":{"bids":[{"size":"4012.26621479","price":"0.00000316"},{"size":"207.66773162","price":"0.00000313"},{"size":"1585.55261272","price":"0.00000312"},{"size":"1619.38622754","price":"0.00000272"},{"size":"1224.73571375","price":"0.00000270"},{"size":"48383.94351212","price":"0.00000250"},{"size":"20000.00000000","price":"0.00000030"},{"size":"60000.00000000","price":"0.00000010"},{"size":"100000.00000000","price":"0.00000005"}],"asks":[{"size":"1000.00000000","price":"0.00000323"},{"size":"1000.00000000","price":"0.00000327"},{"size":"1000.00000000","price":"0.00000330"},{"size":"195.78313253","price":"0.00000332"},{"size":"1000.00000000","price":"0.00000334"},{"size":"2000.00000000","price":"0.00000338"},{"size":"281.77596190","price":"0.00000340"},{"size":"1384.16564149","price":"0.00000342"},{"size":"1000.00000000","price":"0.00000345"},{"size":"1000.00000000","price":"0.00000349"},{"size":"184.65909090","price":"0.00000352"},{"size":"700.00000000","price":"0.00000353"},{"size":"1000.00000000","price":"0.00000357"},{"size":"1000.00000000","price":"0.00000361"},{"size":"179.06336088","price":"0.00000363"},{"size":"1000.00000000","price":"0.00000365"},{"size":"1000.00000000","price":"0.00000369"},{"size":"1000.00000000","price":"0.00000373"},{"size":"173.79679144","price":"0.00000374"},{"size":"1000.00000000","price":"0.00000377"},{"size":"1000.00000000","price":"0.00000381"},{"size":"219.89528794","price":"0.00000382"},{"size":"168.83116883","price":"0.00000385"},{"size":"1000.00000000","price":"0.00000386"},{"size":"1000.00000000","price":"0.00000390"},{"size":"107.14285714","price":"0.00000392"},{"size":"1000.00000000","price":"0.00000394"},{"size":"163.72795969","price":"0.00000397"},{"size":"2000.00000000","price":"0.00000399"},{"size":"104.47761194","price":"0.00000402"},{"size":"703.42194024","price":"0.00000403"},{"size":"1563.19034622","price":"0.00000407"},{"size":"287.00000000","price":"0.00000408"},{"size":"1369.42223472","price":"0.00000409"},{"size":"1500.00000000","price":"0.00000410"},{"size":"1640.77139472","price":"0.00000411"},{"size":"3500.00000000","price":"0.00000412"},{"size":"1845.00000000","price":"0.00000413"},{"size":"2500.00000000","price":"0.00000416"},{"size":"1500.00000000","price":"0.00000417"},{"size":"1500.00000000","price":"0.00000418"},{"size":"1500.00000000","price":"0.00000419"},{"size":"2840.13826368","price":"0.00000420"},{"size":"1215.00000000","price":"0.00000421"},{"size":"1968.52606635","price":"0.00000422"},{"size":"1869.00000000","price":"0.00000424"},{"size":"1500.00000000","price":"0.00000425"},{"size":"2715.00000000","price":"0.00000426"},{"size":"4848.09227025","price":"0.00000427"},{"size":"369.00000000","price":"0.00000428"},{"size":"1384.96799774","price":"0.00000430"},{"size":"42.13377641","price":"0.00000432"},{"size":"1000.00000000","price":"0.00000435"},{"size":"1421.22945548","price":"0.00000438"},{"size":"1000.00000000","price":"0.00000440"},{"size":"300.00000000","price":"0.00000441"},{"size":"1000.00000000","price":"0.00000445"},{"size":"926.00000000","price":"0.00000447"},{"size":"1269.00000000","price":"0.00000450"},{"size":"300.00000000","price":"0.00000454"},{"size":"1000.00000000","price":"0.00000455"},{"size":"1000.00000000","price":"0.00000460"},{"size":"1000.00000000","price":"0.00000465"},{"size":"300.00000000","price":"0.00000468"},{"size":"1000.00000000","price":"0.00000470"},{"size":"456.74601884","price":"0.00000472"},{"size":"1000.00000000","price":"0.00000475"},{"size":"1000.00000000","price":"0.00000480"},{"size":"300.00000000","price":"0.00000482"},{"size":"1000.00000000","price":"0.00000485"},{"size":"5000.00000000","price":"0.00000489"},{"size":"20000.00000000","price":"0.00000490"},{"size":"1000.00000000","price":"0.00000491"},{"size":"103.00000000","price":"0.00000492"},{"size":"1000.00000000","price":"0.00000496"},{"size":"1000.00000000","price":"0.00000502"},{"size":"103.00000000","price":"0.00000507"},{"size":"103.00000000","price":"0.00000522"},{"size":"1500.00000000","price":"0.00000524"},{"size":"103.00000000","price":"0.00000538"},{"size":"261.35831079","price":"0.00000547"},{"size":"1070.00000000","price":"0.00000552"},{"size":"40.12057970","price":"0.00000553"},{"size":"103.00000000","price":"0.00000554"},{"size":"181.00000000","price":"0.00000555"},{"size":"1500.00000000","price":"0.00000570"},{"size":"171.80160120","price":"0.00000571"},{"size":"72.09523780","price":"0.00000583"},{"size":"103.00000000","price":"0.00000588"},{"size":"69.18719460","price":"0.00000595"},{"size":"1963.19948970","price":"0.00000600"},{"size":"66.45162183","price":"0.00000607"},{"size":"63.87514538","price":"0.00000619"},{"size":"66.46080857","price":"0.00000632"},{"size":"63.78176822","price":"0.00000645"},{"size":"61.26151598","price":"0.00000658"},{"size":"58.88774636","price":"0.00000671"},{"size":"60.91790224","price":"0.00000685"},{"size":"30.00000000","price":"0.00000715"},{"size":"57.79634110","price":"0.00000728"},{"size":"57.43484224","price":"0.00000729"},{"size":"30.00000000","price":"0.00000744"},{"size":"26.63115845","price":"0.00000751"},{"size":"30.00000000","price":"0.00000759"},{"size":"55.83979328","price":"0.00000774"},{"size":"30.00000000","price":"0.00000789"},{"size":"25.09410288","price":"0.00000797"},{"size":"30.00000000","price":"0.00000805"},{"size":"1500.00000000","price":"0.00000820"},{"size":"54.36053593","price":"0.00000821"},{"size":"200.00000000","price":"0.00000825"},{"size":"30.00000000","price":"0.00000838"},{"size":"200.00000000","price":"0.00000846"},{"size":"200.00000000","price":"0.00000867"},{"size":"30.00000000","price":"0.00000880"},{"size":"230.00000000","price":"0.00000889"},{"size":"30.00000000","price":"0.00000897"},{"size":"30.00000000","price":"0.00000906"},{"size":"200.00000000","price":"0.00000911"},{"size":"30.00000000","price":"0.00000915"},{"size":"30.00000000","price":"0.00000925"},{"size":"230.00000000","price":"0.00000934"},{"size":"30.00000000","price":"0.00000943"},{"size":"30.00000000","price":"0.00000953"},{"size":"200.00000000","price":"0.00000957"},{"size":"30.00000000","price":"0.00000962"},{"size":"30.00000000","price":"0.00000972"},{"size":"30.00000000","price":"0.00000981"},{"size":"36.25838345","price":"0.00000986"},{"size":"30.00000000","price":"0.00000991"},{"size":"2000.00000000","price":"0.00001000"},{"size":"30.00000000","price":"0.00001001"},{"size":"34.75670307","price":"0.00001007"},{"size":"34.27682749","price":"0.00001014"},{"size":"33.80682202","price":"0.00001021"},{"size":"32.02025876","price":"0.00001049"},{"size":"31.17962313","price":"0.00001063"},{"size":"30.37166237","price":"0.00001077"},{"size":"29.97940842","price":"0.00001084"},{"size":"65.59833700","price":"0.00001661"},{"size":"15.14056338","price":"0.00002647"},{"size":"490.47923898","price":"0.00003728"},{"size":"20.00000000","price":"0.00005184"},{"size":"20.00000000","price":"0.00005287"},{"size":"20.00000000","price":"0.00005393"},{"size":"20.00000000","price":"0.00005501"},{"size":"23658.53615564","price":"0.00005550"},{"size":"20.00000000","price":"0.00005611"},{"size":"20.00000000","price":"0.00005723"},{"size":"20.00000000","price":"0.00005838"},{"size":"20.00000000","price":"0.00005954"},{"size":"20.00000000","price":"0.00006073"},{"size":"20.00000000","price":"0.00006195"},{"size":"10.00000000","price":"0.00006219"},{"size":"10.00000000","price":"0.00006312"},{"size":"10.00000000","price":"0.00006407"},{"size":"10.00000000","price":"0.00006503"},{"size":"50.00000000","price":"0.00006514"},{"size":"50.00000000","price":"0.00006580"},{"size":"10.00000000","price":"0.00006601"},{"size":"50.00000000","price":"0.00006645"},{"size":"10.00000000","price":"0.00006700"},{"size":"50.00000000","price":"0.00006712"},{"size":"50.00000000","price":"0.00006779"},{"size":"10.00000000","price":"0.00006800"},{"size":"50.00000000","price":"0.00006847"},{"size":"10.00000000","price":"0.00006902"},{"size":"50.00000000","price":"0.00006915"},{"size":"50.00000000","price":"0.00006984"},{"size":"10.00000000","price":"0.00007006"},{"size":"50.00000000","price":"0.00007054"},{"size":"10.00000000","price":"0.00007111"},{"size":"50.00000000","price":"0.00007125"},{"size":"50.00000000","price":"0.00007196"},{"size":"10.00000000","price":"0.00007217"},{"size":"11.00000000","price":"0.00008364"},{"size":"11.00000000","price":"0.00008402"},{"size":"11.00000000","price":"0.00008440"},{"size":"11.00000000","price":"0.00008478"},{"size":"11.00000000","price":"0.00008516"},{"size":"100.00000000","price":"0.00008528"},{"size":"11.00000000","price":"0.00008554"},{"size":"100.00000000","price":"0.00008555"},{"size":"100.00000000","price":"0.00008583"},{"size":"11.00000000","price":"0.00008593"},{"size":"100.00000000","price":"0.00008610"},{"size":"11.00000000","price":"0.00008632"},{"size":"100.00000000","price":"0.00008638"},{"size":"100.00000000","price":"0.00008666"},{"size":"11.00000000","price":"0.00008670"},{"size":"100.00000000","price":"0.00008693"},{"size":"50.00000000","price":"0.00008854"},{"size":"50.00000000","price":"0.00008874"},{"size":"50.00000000","price":"0.00008893"},{"size":"50.00000000","price":"0.00008913"},{"size":"50.00000000","price":"0.00008933"},{"size":"50.00000000","price":"0.00008952"},{"size":"50.00000000","price":"0.00008972"},{"size":"50.00000000","price":"0.00008992"},{"size":"50.00000000","price":"0.00009011"},{"size":"50.00000000","price":"0.00009031"},{"size":"50.00000000","price":"0.00009051"},{"size":"50.00000000","price":"0.00009071"},{"size":"50.00000000","price":"0.00009091"},{"size":"44.00000000","price":"0.00015000"},{"size":"26.00000000","price":"0.00017000"},{"size":"34.16056064","price":"0.00035658"},{"size":"11.00000000","price":"0.00093000"},{"size":"1000.00000000","price":"0.00095000"},{"size":"3.00000000","price":"0.05000000"},{"size":"10.00000000","price":"0.07700000"},{"size":"1259.06416865","price":"0.07912186"},{"size":"5.38000000","price":"0.12300000"},{"size":"2.83000000","price":"1.00000000"}]}}' + http_version: + recorded_at: Wed, 29 Apr 2020 12:54:41 GMT +recorded_with: VCR 4.0.0 diff --git a/spec/cassettes/vcr_cassettes/Ionomy/integration_specs_fetch_pairs.yml b/spec/cassettes/vcr_cassettes/Ionomy/integration_specs_fetch_pairs.yml new file mode 100644 index 000000000..b6b465ae9 --- /dev/null +++ b/spec/cassettes/vcr_cassettes/Ionomy/integration_specs_fetch_pairs.yml @@ -0,0 +1,63 @@ +--- +http_interactions: +- request: + method: get + uri: https://ionomy.com/api/v1/public/markets + body: + encoding: UTF-8 + string: '' + headers: + Connection: + - close + Host: + - ionomy.com + User-Agent: + - http.rb/5.0.0.pre + response: + status: + code: 200 + message: OK + headers: + Date: + - Wed, 29 Apr 2020 12:54:39 GMT + Content-Type: + - application/json; charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - close + Set-Cookie: + - __cfduid=dc8fd26ff53b4a115a985c35b7654c2721588164879; expires=Fri, 29-May-20 + 12:54:39 GMT; path=/; domain=.ionomy.com; HttpOnly; SameSite=Lax; Secure + X-Dns-Prefetch-Control: + - 'off' + X-Frame-Options: + - SAMEORIGIN + Strict-Transport-Security: + - max-age=0; includeSubDomains + X-Download-Options: + - noopen + X-Content-Type-Options: + - nosniff + X-Xss-Protection: + - 1; mode=block + Etag: + - W/"101c-hEcIxGnxq4qdjSF7boBMjPU118A" + Vary: + - Accept-Encoding + Cf-Cache-Status: + - DYNAMIC + Expect-Ct: + - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" + Server: + - cloudflare + Cf-Ray: + - 58b92c415f00d224-MAN + Cf-Request-Id: + - '026799fcdb0000d224a4961200000001' + body: + encoding: UTF-8 + string: '{"success":true,"status":200,"message":null,"data":[{"market":"btc-dash","title":"Bitcoin:Dash","currencyBase":"btc","currencyMarket":"dash","orderMinSize":"0.00001000","buyFee":"0.20000000","sellFee":"0.20000000","inMaintenance":false},{"market":"btc-eth","title":"Bitcoin:Ethereum","currencyBase":"btc","currencyMarket":"eth","orderMinSize":"0.00001000","buyFee":"0.20000000","sellFee":"0.20000000","inMaintenance":false},{"market":"btc-pivx","title":"Bitcoin:Pivx","currencyBase":"btc","currencyMarket":"pivx","orderMinSize":"0.00001000","buyFee":"0.20000000","sellFee":"0.20000000","inMaintenance":false},{"market":"pivx-pivxsx","title":"Pivx:PivxSx","currencyBase":"pivx","currencyMarket":"pivxsx","orderMinSize":"0.10000000","buyFee":"0.50000000","sellFee":"0.50000000","inMaintenance":false},{"market":"btc-ltc","title":"Bitcoin:Litecoin","currencyBase":"btc","currencyMarket":"ltc","orderMinSize":"0.00001000","buyFee":"0.20000000","sellFee":"0.20000000","inMaintenance":false},{"market":"btc-ion","title":"Bitcoin:Ion","currencyBase":"btc","currencyMarket":"ion","orderMinSize":"0.00001000","buyFee":"0.20000000","sellFee":"0.20000000","inMaintenance":false},{"market":"btc-atoms","title":"Bitcoin:Atoms","currencyBase":"btc","currencyMarket":"atoms","orderMinSize":"0.00001000","buyFee":"0.00000000","sellFee":"0.40000000","inMaintenance":false},{"market":"ion-ionsx","title":"Ion:IonSx","currencyBase":"ion","currencyMarket":"ionsx","orderMinSize":"0.10000000","buyFee":"0.50000000","sellFee":"0.50000000","inMaintenance":false},{"market":"dash-dashsx","title":"Dash:DashSx","currencyBase":"dash","currencyMarket":"dashsx","orderMinSize":"0.00010000","buyFee":"0.50000000","sellFee":"0.50000000","inMaintenance":false},{"market":"btc-mnp","title":"Bitcoin:MNPCoin","currencyBase":"btc","currencyMarket":"mnp","orderMinSize":"0.00001000","buyFee":"0.20000000","sellFee":"0.20000000","inMaintenance":false},{"market":"btc-wgr","title":"Bitcoin:Wagerr","currencyBase":"btc","currencyMarket":"wgr","orderMinSize":"0.00001000","buyFee":"0.20000000","sellFee":"0.20000000","inMaintenance":false},{"market":"btc-ionsx","title":"Bitcoin:Ionsx","currencyBase":"btc","currencyMarket":"ionsx","orderMinSize":"0.00001000","buyFee":"0.50000000","sellFee":"0.50000000","inMaintenance":false},{"market":"ion-xdm","title":"ION:XDM","currencyBase":"ion","currencyMarket":"xdm","orderMinSize":"1.00000000","buyFee":"0.20000000","sellFee":"0.20000000","inMaintenance":false},{"market":"ion-atoms","title":"Ion:Atoms","currencyBase":"ion","currencyMarket":"atoms","orderMinSize":"1.00000000","buyFee":"0.00000000","sellFee":"0.40000000","inMaintenance":false},{"market":"btc-xdm","title":"Bitcoin:XDM","currencyBase":"btc","currencyMarket":"xdm","orderMinSize":"0.00001000","buyFee":"0.20000000","sellFee":"0.20000000","inMaintenance":false},{"market":"wgr-wgrsx","title":"Wagerr:Wgrsx","currencyBase":"wgr","currencyMarket":"wgrsx","orderMinSize":"0.10000000","buyFee":"0.50000000","sellFee":"0.50000000","inMaintenance":false},{"market":"btc-hive","title":"Bitcoin:HIVE","currencyBase":"btc","currencyMarket":"hive","orderMinSize":"0.00001000","buyFee":"0.20000000","sellFee":"0.20000000","inMaintenance":false},{"market":"btc-bytz","title":"Bitcoin:BYTZ","currencyBase":"btc","currencyMarket":"bytz","orderMinSize":"0.00001000","buyFee":"0.20000000","sellFee":"0.20000000","inMaintenance":false},{"market":"ion-hive","title":"Ion:Hive","currencyBase":"ion","currencyMarket":"hive","orderMinSize":"1.00000000","buyFee":"0.20000000","sellFee":"0.20000000","inMaintenance":false},{"market":"btc-steem","title":"Bitcoin:STEEM","currencyBase":"btc","currencyMarket":"steem","orderMinSize":"0.00001000","buyFee":"0.20000000","sellFee":"0.20000000","inMaintenance":false},{"market":"btc-hbd","title":"Bitcoin:HBD","currencyBase":"btc","currencyMarket":"hbd","orderMinSize":"0.00001000","buyFee":"0.20000000","sellFee":"0.20000000","inMaintenance":false},{"market":"btc-sbd","title":"Bitcoin:SBD","currencyBase":"btc","currencyMarket":"sbd","orderMinSize":"0.00001000","buyFee":"0.20000000","sellFee":"0.20000000","inMaintenance":false}]}' + http_version: + recorded_at: Wed, 29 Apr 2020 12:54:39 GMT +recorded_with: VCR 4.0.0 diff --git a/spec/cassettes/vcr_cassettes/Ionomy/integration_specs_fetch_ticker.yml b/spec/cassettes/vcr_cassettes/Ionomy/integration_specs_fetch_ticker.yml new file mode 100644 index 000000000..7f3629160 --- /dev/null +++ b/spec/cassettes/vcr_cassettes/Ionomy/integration_specs_fetch_ticker.yml @@ -0,0 +1,63 @@ +--- +http_interactions: +- request: + method: get + uri: https://ionomy.com/api/v1/public/markets-summaries + body: + encoding: UTF-8 + string: '' + headers: + Connection: + - close + Host: + - ionomy.com + User-Agent: + - http.rb/5.0.0.pre + response: + status: + code: 200 + message: OK + headers: + Date: + - Wed, 29 Apr 2020 12:54:41 GMT + Content-Type: + - application/json; charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - close + Set-Cookie: + - __cfduid=d72f480111e69f8e6d277fad514fc79fa1588164879; expires=Fri, 29-May-20 + 12:54:39 GMT; path=/; domain=.ionomy.com; HttpOnly; SameSite=Lax; Secure + X-Dns-Prefetch-Control: + - 'off' + X-Frame-Options: + - SAMEORIGIN + Strict-Transport-Security: + - max-age=0; includeSubDomains + X-Download-Options: + - noopen + X-Content-Type-Options: + - nosniff + X-Xss-Protection: + - 1; mode=block + Etag: + - W/"1a2a-SABaKMi9JKbrR7q+l+e1KoK6baE" + Vary: + - Accept-Encoding + Cf-Cache-Status: + - DYNAMIC + Expect-Ct: + - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" + Server: + - cloudflare + Cf-Ray: + - 58b92c426c8be58f-MAN + Cf-Request-Id: + - '026799fd7c0000e58fdd01c200000001' + body: + encoding: UTF-8 + string: '{"success":true,"status":200,"message":null,"data":[{"market":"btc-dash","high":"0.01086384","low":"0.01043363","volume":"0.47387918","price":"0.01043363","change":"-2.00","baseVolume":"0.00494428","bidsOpenOrders":"20","bidsLastPrice":"0.00671970","highestBid":"0.01043363","asksOpenOrders":"34","asksLastPrice":"0.01086384","lowestAsk":"0.01086384"},{"market":"btc-eth","high":"0.02589710","low":"0.02475000","volume":"0.65486788","price":"0.02475000","change":"-1.00","baseVolume":"0.01620798","bidsOpenOrders":"8","bidsLastPrice":"0.02500000","highestBid":"0.02500000","asksOpenOrders":"9","asksLastPrice":"10.00000000","lowestAsk":"0.02589710"},{"market":"btc-pivx","high":"0.00003840","low":"0.00003840","volume":"20.84791667","price":"0.00003840","change":"0.00","baseVolume":"0.00080056","bidsOpenOrders":"38","bidsLastPrice":"0.00003774","highestBid":"0.00003774","asksOpenOrders":"22","asksLastPrice":"0.00004146","lowestAsk":"0.00003840"},{"market":"pivx-pivxsx","high":"1.00100000","low":"1.00100000","volume":"0.18248679","price":"1.00100000","change":"0.00","baseVolume":"0.18266928","bidsOpenOrders":"1","bidsLastPrice":"1.00000000","highestBid":"1.00000000","asksOpenOrders":"13","asksLastPrice":"1.02600000","lowestAsk":"1.00100000"},{"market":"btc-ltc","high":"0.00580000","low":"0.00550000","volume":"2.34396552","price":"0.00580000","change":"5.45","baseVolume":"0.01359500","bidsOpenOrders":"14","bidsLastPrice":"0.00570000","highestBid":"0.00570000","asksOpenOrders":"66","asksLastPrice":"0.00575000","lowestAsk":"0.00580000"},{"market":"btc-ion","high":"0.00000342","low":"0.00000320","volume":"14181.43125000","price":"0.00000320","change":"-4.19","baseVolume":"0.04538058","bidsOpenOrders":"9","bidsLastPrice":"0.00000335","highestBid":"0.00000316","asksOpenOrders":"214","asksLastPrice":"0.00000323","lowestAsk":"0.00000323"},{"market":"btc-atoms","high":"0.00010000","low":"0.00010000","volume":"66.00000000","price":"0.00010000","change":"0.00","baseVolume":"0.00660000","bidsOpenOrders":"9","bidsLastPrice":"0.00010000","highestBid":"0.00005008","asksOpenOrders":"59","asksLastPrice":"0.00017499","lowestAsk":"0.00019199"},{"market":"ion-ionsx","high":"1.07300000","low":"1.04200000","volume":"3147.37208929","price":"1.04200000","change":"-1.14","baseVolume":"3279.56171704","bidsOpenOrders":"14","bidsLastPrice":"1.04200000","highestBid":"1.04200000","asksOpenOrders":"14","asksLastPrice":"1.07100000","lowestAsk":"1.07100000"},{"market":"dash-dashsx","high":"1.00000000","low":"1.00000000","volume":"0.23044988","price":"1.00000000","change":"0.00","baseVolume":"0.23044988","bidsOpenOrders":"6","bidsLastPrice":"1.00000001","highestBid":"1.00000000","asksOpenOrders":"4","asksLastPrice":"1.00100000","lowestAsk":"1.00100000"},{"market":"btc-mnp","high":"0.00000046","low":"0.00000040","volume":"2049.97826087","price":"0.00000046","change":"0.00","baseVolume":"0.00094299","bidsOpenOrders":"13","bidsLastPrice":"0.00000040","highestBid":"0.00000036","asksOpenOrders":"39","asksLastPrice":"0.00000549","lowestAsk":"0.00000046"},{"market":"btc-wgr","high":"0.00000307","low":"0.00000294","volume":"22390.82885906","price":"0.00000298","change":"-1.32","baseVolume":"0.06672467","bidsOpenOrders":"18","bidsLastPrice":"0.00000131","highestBid":"0.00000294","asksOpenOrders":"163","asksLastPrice":"0.00000300","lowestAsk":"0.00000300"},{"market":"btc-ionsx","high":"0.00000398","low":"0.00000398","volume":"50.81155779","price":"0.00000398","change":"0.00","baseVolume":"0.00020223","bidsOpenOrders":"11","bidsLastPrice":"0.00000331","highestBid":"0.00000350","asksOpenOrders":"28","asksLastPrice":"0.00000398","lowestAsk":"0.00000398"},{"market":"ion-xdm","high":"248.88800000","low":"248.88800000","volume":"0.04144843","price":"248.88800000","change":"0.00","baseVolume":"10.31601685","bidsOpenOrders":"10","bidsLastPrice":"90.10000000","highestBid":"108.00000000","asksOpenOrders":"15","asksLastPrice":"238.50000000","lowestAsk":"238.50000000"},{"market":"ion-atoms","high":"67.92800000","low":"67.92800000","volume":"0.76872565","price":"67.92800000","change":"0.00","baseVolume":"52.21799595","bidsOpenOrders":"13","bidsLastPrice":"21.01000000","highestBid":"21.01000000","asksOpenOrders":"11","asksLastPrice":"67.92800000","lowestAsk":"67.92800000"},{"market":"btc-xdm","high":"0.00050003","low":"0.00050003","volume":"12.75803452","price":"0.00050003","change":"0.00","baseVolume":"0.00637940","bidsOpenOrders":"5","bidsLastPrice":"0.00050003","highestBid":"0.00050001","asksOpenOrders":"19","asksLastPrice":"0.00087999","lowestAsk":"0.00087999"},{"market":"wgr-wgrsx","high":"1.01300000","low":"1.01300000","volume":"2.09561094","price":"1.01300000","change":"0.00","baseVolume":"2.12285388","bidsOpenOrders":"3","bidsLastPrice":"1.00600000","highestBid":"1.00500000","asksOpenOrders":"28","asksLastPrice":"1.01000000","lowestAsk":"1.01300000"},{"market":"btc-hive","high":"0.00007121","low":"0.00003955","volume":"7580.94599100","price":"0.00005999","change":"-4.81","baseVolume":"0.45478095","bidsOpenOrders":"57","bidsLastPrice":"0.00005006","highestBid":"0.00006000","asksOpenOrders":"46","asksLastPrice":"0.00006996","lowestAsk":"0.00006490"},{"market":"btc-bytz","high":"0.00000002","low":"0.00000002","volume":"5000.00000000","price":"0.00000002","change":"0.00","baseVolume":"0.00010000","bidsOpenOrders":"0","bidsLastPrice":"0.00000001","highestBid":"-Infinity","asksOpenOrders":"42","asksLastPrice":"0.00000001","lowestAsk":"0.00000001"},{"market":"ion-hive","high":"11.06000000","low":"11.06000000","volume":"4.38000000","price":"11.06000000","change":"0.00","baseVolume":"48.44280000","bidsOpenOrders":"15","bidsLastPrice":"11.10000000","highestBid":"11.10000000","asksOpenOrders":"5","asksLastPrice":"245.00000000","lowestAsk":"245.00000000"},{"market":"btc-steem","high":"0.00002675","low":"0.00002280","volume":"28886.46176976","price":"0.00002328","change":"-8.02","baseVolume":"0.67247683","bidsOpenOrders":"22","bidsLastPrice":"0.00002328","highestBid":"0.00002328","asksOpenOrders":"36","asksLastPrice":"0.00002350","lowestAsk":"0.00002549"},{"market":"btc-hbd","high":"0.00019500","low":"0.00009303","volume":"310.40288079","price":"0.00009303","change":"-7.01","baseVolume":"0.02887678","bidsOpenOrders":"12","bidsLastPrice":"0.00009306","highestBid":"0.00009306","asksOpenOrders":"24","asksLastPrice":"0.09600000","lowestAsk":"0.00012500"},{"market":"btc-sbd","high":"0.00013850","low":"0.00013850","volume":"6.57797834","price":"0.00013850","change":"0.00","baseVolume":"0.00091105","bidsOpenOrders":"14","bidsLastPrice":"0.00010402","highestBid":"0.00010402","asksOpenOrders":"19","asksLastPrice":"0.00013849","lowestAsk":"0.00013999"}]}' + http_version: + recorded_at: Wed, 29 Apr 2020 12:54:41 GMT +recorded_with: VCR 4.0.0 diff --git a/spec/cassettes/vcr_cassettes/Ionomy/integration_specs_fetch_trade.yml b/spec/cassettes/vcr_cassettes/Ionomy/integration_specs_fetch_trade.yml new file mode 100644 index 000000000..91f889e62 --- /dev/null +++ b/spec/cassettes/vcr_cassettes/Ionomy/integration_specs_fetch_trade.yml @@ -0,0 +1,63 @@ +--- +http_interactions: +- request: + method: get + uri: https://ionomy.com/api/v1/public/market-history?market=BTC-ION + body: + encoding: UTF-8 + string: '' + headers: + Connection: + - close + Host: + - ionomy.com + User-Agent: + - http.rb/5.0.0.pre + response: + status: + code: 200 + message: OK + headers: + Date: + - Wed, 29 Apr 2020 12:54:41 GMT + Content-Type: + - application/json; charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - close + Set-Cookie: + - __cfduid=df8ee7adec4836ed1949f33210d17984c1588164881; expires=Fri, 29-May-20 + 12:54:41 GMT; path=/; domain=.ionomy.com; HttpOnly; SameSite=Lax; Secure + X-Dns-Prefetch-Control: + - 'off' + X-Frame-Options: + - SAMEORIGIN + Strict-Transport-Security: + - max-age=0; includeSubDomains + X-Download-Options: + - noopen + X-Content-Type-Options: + - nosniff + X-Xss-Protection: + - 1; mode=block + Etag: + - W/"907e-zVJ6paE72u2n0QCHOyPGLqsAhjs" + Vary: + - Accept-Encoding + Cf-Cache-Status: + - DYNAMIC + Expect-Ct: + - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" + Server: + - cloudflare + Cf-Ray: + - 58b92c4f1a20367b-MAN + Cf-Request-Id: + - '02679a056c0000367bad8f8200000001' + body: + encoding: UTF-8 + string: '{"success":true,"status":200,"message":null,"data":[{"type":"LIMIT_SELL","amount":"1000.00000000","price":"0.00000320","total":"0.00320000","createdAt":"2020-04-29T11:22:39Z"},{"type":"LIMIT_SELL","amount":"1000.00000000","price":"0.00000323","total":"0.00323000","createdAt":"2020-04-29T11:22:35Z"},{"type":"LIMIT_SELL","amount":"201.23839009","price":"0.00000323","total":"0.00065000","createdAt":"2020-04-29T11:22:35Z"},{"type":"LIMIT_SELL","amount":"1000.00000000","price":"0.00000327","total":"0.00327000","createdAt":"2020-04-29T11:22:32Z"},{"type":"LIMIT_SELL","amount":"109.65383085","price":"0.00000330","total":"0.00036186","createdAt":"2020-04-29T11:22:28Z"},{"type":"LIMIT_SELL","amount":"890.34616915","price":"0.00000330","total":"0.00293814","createdAt":"2020-04-29T10:38:34Z"},{"type":"LIMIT_SELL","amount":"195.78313253","price":"0.00000332","total":"0.00065000","createdAt":"2020-04-29T10:38:34Z"},{"type":"LIMIT_SELL","amount":"413.87069832","price":"0.00000334","total":"0.00138233","createdAt":"2020-04-29T10:38:34Z"},{"type":"LIMIT_SELL","amount":"586.12930168","price":"0.00000334","total":"0.00195767","createdAt":"2020-04-29T07:29:45Z"},{"type":"LIMIT_SELL","amount":"4617.91044776","price":"0.00000335","total":"0.01547000","createdAt":"2020-04-28T20:27:50Z"},{"type":"LIMIT_SELL","amount":"1000.00000000","price":"0.00000338","total":"0.00338000","createdAt":"2020-04-28T15:07:31Z"},{"type":"LIMIT_SELL","amount":"194.10716196","price":"0.00000342","total":"0.00066385","createdAt":"2020-04-28T13:47:51Z"},{"type":"LIMIT_BUY","amount":"190.05847953","price":"0.00000342","total":"0.00065000","createdAt":"2020-04-28T13:47:00Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000342","total":"0.00342000","createdAt":"2020-04-28T13:47:00Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000338","total":"0.00338000","createdAt":"2020-04-28T13:47:00Z"},{"type":"LIMIT_BUY","amount":"232.55413533","price":"0.00000334","total":"0.00077673","createdAt":"2020-04-28T13:47:00Z"},{"type":"MARKET_BUY","amount":"767.44586467","price":"0.00000334","total":"0.00256327","createdAt":"2020-04-27T23:23:32Z"},{"type":"MARKET_BUY","amount":"195.78313253","price":"0.00000332","total":"0.00065000","createdAt":"2020-04-27T23:23:32Z"},{"type":"MARKET_BUY","amount":"1000.00000000","price":"0.00000330","total":"0.00330000","createdAt":"2020-04-27T23:23:32Z"},{"type":"MARKET_BUY","amount":"600.00000000","price":"0.00000327","total":"0.00196200","createdAt":"2020-04-27T23:23:32Z"},{"type":"LIMIT_SELL","amount":"26.38209643","price":"0.00000323","total":"0.00008521","createdAt":"2020-04-27T21:55:51Z"},{"type":"LIMIT_SELL","amount":"17.05501440","price":"0.00000323","total":"0.00005509","createdAt":"2020-04-27T21:54:15Z"},{"type":"LIMIT_BUY","amount":"400.00000000","price":"0.00000327","total":"0.00130800","createdAt":"2020-04-27T18:27:40Z"},{"type":"LIMIT_BUY","amount":"201.23839009","price":"0.00000323","total":"0.00065000","createdAt":"2020-04-27T15:27:37Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000323","total":"0.00323000","createdAt":"2020-04-27T15:27:37Z"},{"type":"LIMIT_BUY","amount":"389.00000000","price":"0.00000322","total":"0.00125258","createdAt":"2020-04-27T15:27:37Z"},{"type":"LIMIT_BUY","amount":"822.67684744","price":"0.00000322","total":"0.00264902","createdAt":"2020-04-27T15:27:37Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000320","total":"0.00320000","createdAt":"2020-04-27T15:27:37Z"},{"type":"LIMIT_BUY","amount":"46.34139141","price":"0.00000318","total":"0.00014737","createdAt":"2020-04-27T15:27:37Z"},{"type":"LIMIT_BUY","amount":"109.24941633","price":"0.00000316","total":"0.00034523","createdAt":"2020-04-27T14:54:23Z"},{"type":"LIMIT_SELL","amount":"300.00000000","price":"0.00000312","total":"0.00093600","createdAt":"2020-04-27T09:53:48Z"},{"type":"LIMIT_SELL","amount":"3.75159903","price":"0.00000308","total":"0.00001155","createdAt":"2020-04-26T08:30:20Z"},{"type":"LIMIT_BUY","amount":"430.88221464","price":"0.00000319","total":"0.00137451","createdAt":"2020-04-26T04:10:06Z"},{"type":"LIMIT_SELL","amount":"618.46960472","price":"0.00000316","total":"0.00195436","createdAt":"2020-04-26T04:01:46Z"},{"type":"LIMIT_SELL","amount":"10.11952082","price":"0.00000316","total":"0.00003198","createdAt":"2020-04-26T01:43:28Z"},{"type":"LIMIT_SELL","amount":"8.88030049","price":"0.00000316","total":"0.00002806","createdAt":"2020-04-26T01:26:04Z"},{"type":"LIMIT_SELL","amount":"355.10588541","price":"0.00000316","total":"0.00112213","createdAt":"2020-04-25T22:00:39Z"},{"type":"LIMIT_SELL","amount":"4.17468856","price":"0.00000316","total":"0.00001319","createdAt":"2020-04-25T21:58:33Z"},{"type":"LIMIT_SELL","amount":"3.25000000","price":"0.00000316","total":"0.00001027","createdAt":"2020-04-25T21:39:00Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000320","total":"0.00320000","createdAt":"2020-04-25T21:27:03Z"},{"type":"LIMIT_BUY","amount":"278.65632078","price":"0.00000320","total":"0.00089170","createdAt":"2020-04-25T21:27:03Z"},{"type":"LIMIT_BUY","amount":"441.02643754","price":"0.00000320","total":"0.00141128","createdAt":"2020-04-25T21:27:03Z"},{"type":"LIMIT_SELL","amount":"8.60000000","price":"0.00000301","total":"0.00002589","createdAt":"2020-04-25T20:07:47Z"},{"type":"LIMIT_SELL","amount":"74.98164332","price":"0.00000316","total":"0.00023694","createdAt":"2020-04-25T20:01:31Z"},{"type":"LIMIT_SELL","amount":"9.51435668","price":"0.00000316","total":"0.00003007","createdAt":"2020-04-25T19:46:37Z"},{"type":"LIMIT_BUY","amount":"662.51228272","price":"0.00000320","total":"0.00212004","createdAt":"2020-04-25T16:10:19Z"},{"type":"LIMIT_BUY","amount":"257.80021728","price":"0.00000320","total":"0.00082496","createdAt":"2020-04-25T16:10:18Z"},{"type":"LIMIT_SELL","amount":"915.50400000","price":"0.00000316","total":"0.00289299","createdAt":"2020-04-25T16:06:41Z"},{"type":"LIMIT_SELL","amount":"999.80000000","price":"0.00000316","total":"0.00315937","createdAt":"2020-04-25T15:45:54Z"},{"type":"LIMIT_SELL","amount":"999.80000000","price":"0.00000316","total":"0.00315937","createdAt":"2020-04-25T15:18:05Z"},{"type":"LIMIT_SELL","amount":"1000.00000000","price":"0.00000316","total":"0.00316000","createdAt":"2020-04-25T15:18:05Z"},{"type":"LIMIT_SELL","amount":"999.80000000","price":"0.00000316","total":"0.00315937","createdAt":"2020-04-25T14:52:35Z"},{"type":"LIMIT_SELL","amount":"999.80000000","price":"0.00000316","total":"0.00315937","createdAt":"2020-04-25T14:31:09Z"},{"type":"LIMIT_SELL","amount":"999.80000000","price":"0.00000316","total":"0.00315937","createdAt":"2020-04-25T14:10:29Z"},{"type":"LIMIT_SELL","amount":"999.80000000","price":"0.00000316","total":"0.00315937","createdAt":"2020-04-25T13:49:04Z"},{"type":"LIMIT_SELL","amount":"999.80000000","price":"0.00000316","total":"0.00315937","createdAt":"2020-04-25T13:29:59Z"},{"type":"LIMIT_SELL","amount":"999.80000000","price":"0.00000316","total":"0.00315937","createdAt":"2020-04-25T13:11:18Z"},{"type":"LIMIT_SELL","amount":"999.80000000","price":"0.00000316","total":"0.00315937","createdAt":"2020-04-25T12:54:20Z"},{"type":"LIMIT_SELL","amount":"999.80000000","price":"0.00000316","total":"0.00315937","createdAt":"2020-04-25T12:35:04Z"},{"type":"LIMIT_BUY","amount":"341.11038987","price":"0.00000320","total":"0.00109155","createdAt":"2020-04-25T12:21:32Z"},{"type":"LIMIT_BUY","amount":"58.88961013","price":"0.00000320","total":"0.00018845","createdAt":"2020-04-25T12:21:32Z"},{"type":"LIMIT_BUY","amount":"46.80000000","price":"0.00000320","total":"0.00014976","createdAt":"2020-04-25T11:09:58Z"},{"type":"MARKET_BUY","amount":"246.84282500","price":"0.00000320","total":"0.00078990","createdAt":"2020-04-24T22:52:56Z"},{"type":"LIMIT_BUY","amount":"647.46756487","price":"0.00000320","total":"0.00207190","createdAt":"2020-04-24T18:08:45Z"},{"type":"LIMIT_SELL","amount":"1000.00000000","price":"0.00000316","total":"0.00316000","createdAt":"2020-04-24T17:50:57Z"},{"type":"LIMIT_SELL","amount":"999.80000000","price":"0.00000316","total":"0.00315937","createdAt":"2020-04-24T17:40:29Z"},{"type":"LIMIT_SELL","amount":"999.80000000","price":"0.00000316","total":"0.00315937","createdAt":"2020-04-24T17:19:02Z"},{"type":"LIMIT_SELL","amount":"999.80036325","price":"0.00000316","total":"0.00315937","createdAt":"2020-04-24T16:53:12Z"},{"type":"LIMIT_SELL","amount":"33.52563675","price":"0.00000320","total":"0.00010728","createdAt":"2020-04-24T16:53:12Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000320","total":"0.00320000","createdAt":"2020-04-24T16:29:39Z"},{"type":"LIMIT_BUY","amount":"93.03130740","price":"0.00000319","total":"0.00029677","createdAt":"2020-04-24T16:29:39Z"},{"type":"LIMIT_BUY","amount":"261.37344507","price":"0.00000319","total":"0.00083378","createdAt":"2020-04-24T16:29:39Z"},{"type":"LIMIT_SELL","amount":"739.92617603","price":"0.00000273","total":"0.00202000","createdAt":"2020-04-24T05:40:40Z"},{"type":"LIMIT_SELL","amount":"60.95729088","price":"0.00000274","total":"0.00016702","createdAt":"2020-04-24T05:40:40Z"},{"type":"MARKET_BUY","amount":"134.36596464","price":"0.00000319","total":"0.00042863","createdAt":"2020-04-24T04:14:10Z"},{"type":"MARKET_BUY","amount":"1063.16187060","price":"0.00000318","total":"0.00338085","createdAt":"2020-04-24T04:14:10Z"},{"type":"MARKET_BUY","amount":"196.83812940","price":"0.00000318","total":"0.00062595","createdAt":"2020-04-24T04:14:10Z"},{"type":"LIMIT_BUY","amount":"300.15776350","price":"0.00000318","total":"0.00095450","createdAt":"2020-04-24T02:43:26Z"},{"type":"MARKET_BUY","amount":"81.62886792","price":"0.00000318","total":"0.00025958","createdAt":"2020-04-23T19:51:40Z"},{"type":"LIMIT_SELL","amount":"1063.16187060","price":"0.00000271","total":"0.00288117","createdAt":"2020-04-23T17:04:26Z"},{"type":"MARKET_SELL","amount":"360.62865104","price":"0.00000271","total":"0.00097730","createdAt":"2020-04-23T04:20:21Z"},{"type":"MARKET_SELL","amount":"112.77076842","price":"0.00000271","total":"0.00030561","createdAt":"2020-04-23T04:20:21Z"},{"type":"MARKET_BUY","amount":"47.87057680","price":"0.00000319","total":"0.00015271","createdAt":"2020-04-23T04:16:27Z"},{"type":"MARKET_BUY","amount":"56.39001349","price":"0.00000319","total":"0.00017988","createdAt":"2020-04-23T04:14:57Z"},{"type":"MARKET_BUY","amount":"317.77209984","price":"0.00000318","total":"0.00101052","createdAt":"2020-04-23T04:14:57Z"},{"type":"LIMIT_BUY","amount":"500.00000000","price":"0.00000319","total":"0.00159500","createdAt":"2020-04-22T13:46:29Z"},{"type":"LIMIT_BUY","amount":"47.39319471","price":"0.00000315","total":"0.00014929","createdAt":"2020-04-22T13:45:36Z"},{"type":"LIMIT_SELL","amount":"2.58730940","price":"0.00000316","total":"0.00000818","createdAt":"2020-04-21T14:43:02Z"},{"type":"LIMIT_SELL","amount":"997.41269060","price":"0.00000316","total":"0.00315182","createdAt":"2020-04-21T13:48:34Z"},{"type":"LIMIT_SELL","amount":"62.58730940","price":"0.00000320","total":"0.00020028","createdAt":"2020-04-21T13:48:34Z"},{"type":"LIMIT_BUY","amount":"287.52592883","price":"0.00000320","total":"0.00092008","createdAt":"2020-04-21T13:24:52Z"},{"type":"LIMIT_BUY","amount":"960.00000000","price":"0.00000320","total":"0.00307200","createdAt":"2020-04-21T13:24:52Z"},{"type":"LIMIT_BUY","amount":"850.30030967","price":"0.00000319","total":"0.00271246","createdAt":"2020-04-21T13:24:52Z"},{"type":"MARKET_SELL","amount":"485.00000000","price":"0.00000265","total":"0.00128525","createdAt":"2020-04-20T20:40:39Z"},{"type":"MARKET_SELL","amount":"250.00000000","price":"0.00000266","total":"0.00066500","createdAt":"2020-04-20T20:40:39Z"},{"type":"MARKET_SELL","amount":"750.00000000","price":"0.00000266","total":"0.00199500","createdAt":"2020-04-20T20:37:43Z"},{"type":"LIMIT_SELL","amount":"40.00000000","price":"0.00000251","total":"0.00010040","createdAt":"2020-04-20T13:28:25Z"},{"type":"LIMIT_BUY","amount":"40.00000000","price":"0.00000320","total":"0.00012800","createdAt":"2020-04-20T13:09:19Z"},{"type":"LIMIT_SELL","amount":"61.26016840","price":"0.00000252","total":"0.00015438","createdAt":"2020-04-20T12:52:13Z"},{"type":"LIMIT_SELL","amount":"207.66773162","price":"0.00000313","total":"0.00065000","createdAt":"2020-04-20T09:50:29Z"},{"type":"LIMIT_SELL","amount":"370.02019445","price":"0.00000316","total":"0.00116926","createdAt":"2020-04-20T09:50:22Z"},{"type":"LIMIT_SELL","amount":"112.12440143","price":"0.00000316","total":"0.00035431","createdAt":"2020-04-20T09:29:27Z"},{"type":"LIMIT_SELL","amount":"392.85540412","price":"0.00000316","total":"0.00124142","createdAt":"2020-04-19T19:44:20Z"},{"type":"LIMIT_SELL","amount":"125.00000000","price":"0.00000316","total":"0.00039500","createdAt":"2020-04-19T14:35:09Z"},{"type":"MARKET_BUY","amount":"149.75888820","price":"0.00000322","total":"0.00048222","createdAt":"2020-04-19T06:51:45Z"},{"type":"LIMIT_SELL","amount":"296.79514743","price":"0.00000317","total":"0.00094084","createdAt":"2020-04-18T22:22:46Z"},{"type":"MARKET_SELL","amount":"33.91989727","price":"0.00000317","total":"0.00010753","createdAt":"2020-04-18T21:16:59Z"},{"type":"LIMIT_SELL","amount":"307.65082350","price":"0.00000317","total":"0.00097525","createdAt":"2020-04-18T18:55:54Z"},{"type":"LIMIT_SELL","amount":"32.15931219","price":"0.00000317","total":"0.00010195","createdAt":"2020-04-18T14:22:16Z"},{"type":"LIMIT_SELL","amount":"319.15076349","price":"0.00000317","total":"0.00101171","createdAt":"2020-04-18T11:51:40Z"},{"type":"LIMIT_SELL","amount":"1000.00000000","price":"0.00000320","total":"0.00320000","createdAt":"2020-04-18T01:35:13Z"},{"type":"LIMIT_SELL","amount":"1000.00000000","price":"0.00000323","total":"0.00323000","createdAt":"2020-04-18T01:22:36Z"},{"type":"LIMIT_SELL","amount":"201.23839009","price":"0.00000323","total":"0.00065000","createdAt":"2020-04-18T01:22:36Z"},{"type":"LIMIT_SELL","amount":"1000.00000000","price":"0.00000327","total":"0.00327000","createdAt":"2020-04-18T01:21:53Z"},{"type":"LIMIT_SELL","amount":"1000.00000000","price":"0.00000330","total":"0.00330000","createdAt":"2020-04-18T01:14:01Z"},{"type":"LIMIT_SELL","amount":"195.78313253","price":"0.00000332","total":"0.00065000","createdAt":"2020-04-17T16:23:15Z"},{"type":"LIMIT_SELL","amount":"195.78313253","price":"0.00000332","total":"0.00065000","createdAt":"2020-04-17T16:23:15Z"},{"type":"LIMIT_SELL","amount":"259.60567889","price":"0.00000334","total":"0.00086708","createdAt":"2020-04-17T16:23:12Z"},{"type":"LIMIT_SELL","amount":"65.28900332","price":"0.00000334","total":"0.00021807","createdAt":"2020-04-16T19:08:53Z"},{"type":"LIMIT_SELL","amount":"675.10531779","price":"0.00000334","total":"0.00225485","createdAt":"2020-04-16T18:08:17Z"},{"type":"LIMIT_SELL","amount":"529.39517871","price":"0.00000338","total":"0.00178936","createdAt":"2020-04-16T18:08:17Z"},{"type":"LIMIT_SELL","amount":"252.84200000","price":"0.00000338","total":"0.00085461","createdAt":"2020-04-16T17:16:03Z"},{"type":"LIMIT_SELL","amount":"217.76282129","price":"0.00000338","total":"0.00073604","createdAt":"2020-04-16T17:13:06Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000342","total":"0.00342000","createdAt":"2020-04-16T17:05:02Z"},{"type":"LIMIT_BUY","amount":"190.05847953","price":"0.00000342","total":"0.00065000","createdAt":"2020-04-16T17:05:02Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000341","total":"0.00341000","createdAt":"2020-04-16T17:04:57Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000338","total":"0.00338000","createdAt":"2020-04-16T17:04:50Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000337","total":"0.00337000","createdAt":"2020-04-16T17:04:43Z"},{"type":"LIMIT_BUY","amount":"300.00000000","price":"0.00000334","total":"0.00100200","createdAt":"2020-04-16T17:03:53Z"},{"type":"LIMIT_BUY","amount":"195.78313253","price":"0.00000332","total":"0.00065000","createdAt":"2020-04-16T17:03:50Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000330","total":"0.00330000","createdAt":"2020-04-16T17:03:46Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000327","total":"0.00327000","createdAt":"2020-04-16T17:03:43Z"},{"type":"LIMIT_BUY","amount":"201.23839009","price":"0.00000323","total":"0.00065000","createdAt":"2020-04-16T17:03:39Z"},{"type":"LIMIT_BUY","amount":"144.84520124","price":"0.00000323","total":"0.00046785","createdAt":"2020-04-16T17:03:39Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000320","total":"0.00320000","createdAt":"2020-04-16T17:03:30Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000319","total":"0.00319000","createdAt":"2020-04-16T17:03:25Z"},{"type":"LIMIT_BUY","amount":"301.90085361","price":"0.00000316","total":"0.00095401","createdAt":"2020-04-16T17:03:19Z"},{"type":"LIMIT_BUY","amount":"10052.00000000","price":"0.00000315","total":"0.03166380","createdAt":"2020-04-16T17:03:16Z"},{"type":"LIMIT_BUY","amount":"241.71956811","price":"0.00000315","total":"0.00076142","createdAt":"2020-04-16T17:03:16Z"},{"type":"LIMIT_BUY","amount":"301.90085422","price":"0.00000314","total":"0.00094797","createdAt":"2020-04-16T17:03:13Z"},{"type":"LIMIT_BUY","amount":"66.12235115","price":"0.00000313","total":"0.00020696","createdAt":"2020-04-16T17:03:10Z"},{"type":"LIMIT_BUY","amount":"207.66773162","price":"0.00000313","total":"0.00065000","createdAt":"2020-04-16T17:03:10Z"},{"type":"LIMIT_BUY","amount":"186.08403640","price":"0.00000312","total":"0.00058058","createdAt":"2020-04-16T17:03:05Z"},{"type":"LIMIT_SELL","amount":"98.07893510","price":"0.00000265","total":"0.00025991","createdAt":"2020-04-15T07:11:12Z"},{"type":"LIMIT_SELL","amount":"250.00000000","price":"0.00000270","total":"0.00067500","createdAt":"2020-04-15T07:11:12Z"},{"type":"LIMIT_SELL","amount":"85.00000000","price":"0.00000265","total":"0.00022525","createdAt":"2020-04-14T17:18:24Z"},{"type":"LIMIT_SELL","amount":"213.81578947","price":"0.00000304","total":"0.00065000","createdAt":"2020-04-14T11:45:35Z"},{"type":"MARKET_BUY","amount":"57.30630060","price":"0.00000315","total":"0.00018051","createdAt":"2020-04-14T08:30:30Z"},{"type":"MARKET_BUY","amount":"301.90085310","price":"0.00000314","total":"0.00094797","createdAt":"2020-04-14T08:30:30Z"},{"type":"MARKET_BUY","amount":"157.66773162","price":"0.00000313","total":"0.00049350","createdAt":"2020-04-14T08:30:30Z"},{"type":"MARKET_BUY","amount":"187.92883725","price":"0.00000312","total":"0.00058634","createdAt":"2020-04-14T08:30:30Z"},{"type":"MARKET_BUY","amount":"13.52972012","price":"0.00000312","total":"0.00004221","createdAt":"2020-04-14T07:30:18Z"},{"type":"MARKET_BUY","amount":"66.51842332","price":"0.00000312","total":"0.00020754","createdAt":"2020-04-14T07:30:18Z"},{"type":"LIMIT_SELL","amount":"2568.06090421","price":"0.00000269","total":"0.00690808","createdAt":"2020-04-12T22:23:48Z"},{"type":"LIMIT_BUY","amount":"50.00000000","price":"0.00000313","total":"0.00015650","createdAt":"2020-04-12T13:40:40Z"},{"type":"LIMIT_SELL","amount":"467.20555238","price":"0.00000274","total":"0.00128014","createdAt":"2020-04-12T09:39:00Z"},{"type":"LIMIT_SELL","amount":"213.81578947","price":"0.00000304","total":"0.00065000","createdAt":"2020-04-12T09:39:00Z"},{"type":"LIMIT_SELL","amount":"10.71732195","price":"0.00000313","total":"0.00003355","createdAt":"2020-04-12T09:39:00Z"},{"type":"LIMIT_SELL","amount":"196.95040967","price":"0.00000313","total":"0.00061645","createdAt":"2020-04-12T02:52:37Z"},{"type":"LIMIT_SELL","amount":"285.20300000","price":"0.00000316","total":"0.00090124","createdAt":"2020-04-12T02:52:25Z"},{"type":"LIMIT_SELL","amount":"714.79700000","price":"0.00000316","total":"0.00225876","createdAt":"2020-04-12T01:47:47Z"},{"type":"LIMIT_BUY","amount":"851.39318885","price":"0.00000323","total":"0.00275000","createdAt":"2020-04-12T01:38:16Z"},{"type":"LIMIT_BUY","amount":"3.76160991","price":"0.00000323","total":"0.00001215","createdAt":"2020-04-12T01:23:20Z"},{"type":"LIMIT_BUY","amount":"201.23839009","price":"0.00000323","total":"0.00065000","createdAt":"2020-04-12T01:23:20Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000320","total":"0.00320000","createdAt":"2020-04-12T01:23:08Z"},{"type":"LIMIT_BUY","amount":"313.25994379","price":"0.00000319","total":"0.00099930","createdAt":"2020-04-12T01:23:02Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000319","total":"0.00319000","createdAt":"2020-04-12T01:23:02Z"},{"type":"LIMIT_BUY","amount":"207.66773162","price":"0.00000313","total":"0.00065000","createdAt":"2020-04-12T01:22:57Z"},{"type":"LIMIT_BUY","amount":"790.13374816","price":"0.00000312","total":"0.00246522","createdAt":"2020-04-12T01:22:53Z"},{"type":"LIMIT_BUY","amount":"304.77583850","price":"0.00000311","total":"0.00094785","createdAt":"2020-04-12T01:22:34Z"},{"type":"LIMIT_BUY","amount":"951.02526376","price":"0.00000311","total":"0.00295769","createdAt":"2020-04-12T01:22:34Z"},{"type":"LIMIT_BUY","amount":"17.07444098","price":"0.00000300","total":"0.00005122","createdAt":"2020-04-12T00:13:57Z"},{"type":"LIMIT_BUY","amount":"40.09314703","price":"0.00000300","total":"0.00012028","createdAt":"2020-04-11T22:49:05Z"},{"type":"LIMIT_SELL","amount":"841.36390000","price":"0.00000264","total":"0.00222120","createdAt":"2020-04-11T14:04:58Z"},{"type":"LIMIT_SELL","amount":"950.00000000","price":"0.00000261","total":"0.00247950","createdAt":"2020-04-10T23:31:09Z"},{"type":"LIMIT_SELL","amount":"294.85781394","price":"0.00000262","total":"0.00077253","createdAt":"2020-04-10T23:30:50Z"},{"type":"LIMIT_SELL","amount":"1.12148410","price":"0.00000304","total":"0.00000341","createdAt":"2020-04-10T18:49:00Z"},{"type":"LIMIT_BUY","amount":"182.64724469","price":"0.00000319","total":"0.00058264","createdAt":"2020-04-10T00:01:21Z"},{"type":"LIMIT_SELL","amount":"142.00000000","price":"0.00000304","total":"0.00043168","createdAt":"2020-04-09T15:17:44Z"},{"type":"LIMIT_BUY","amount":"205.84543100","price":"0.00000318","total":"0.00065459","createdAt":"2020-04-09T13:50:42Z"},{"type":"LIMIT_BUY","amount":"276.25954144","price":"0.00000318","total":"0.00087851","createdAt":"2020-04-09T13:50:42Z"},{"type":"LIMIT_SELL","amount":"70.69430537","price":"0.00000304","total":"0.00021491","createdAt":"2020-04-09T12:16:18Z"},{"type":"LIMIT_SELL","amount":"213.81578947","price":"0.00000304","total":"0.00065000","createdAt":"2020-04-09T12:16:18Z"},{"type":"LIMIT_BUY","amount":"35.15296451","price":"0.00000318","total":"0.00011179","createdAt":"2020-04-09T11:09:29Z"},{"type":"LIMIT_BUY","amount":"239.58372563","price":"0.00000318","total":"0.00076188","createdAt":"2020-04-09T05:37:36Z"},{"type":"LIMIT_BUY","amount":"207.66773162","price":"0.00000313","total":"0.00065000","createdAt":"2020-04-09T05:35:53Z"},{"type":"LIMIT_SELL","amount":"1616.05648788","price":"0.00000250","total":"0.00404014","createdAt":"2020-04-09T02:45:38Z"},{"type":"LIMIT_SELL","amount":"11495.64256215","price":"0.00000290","total":"0.03333736","createdAt":"2020-04-09T00:40:25Z"},{"type":"LIMIT_SELL","amount":"5896.45704467","price":"0.00000291","total":"0.01715869","createdAt":"2020-04-09T00:40:13Z"},{"type":"LIMIT_SELL","amount":"221.34156344","price":"0.00000292","total":"0.00064632","createdAt":"2020-04-09T00:39:12Z"},{"type":"LIMIT_SELL","amount":"213.81578947","price":"0.00000304","total":"0.00065000","createdAt":"2020-04-08T18:26:39Z"},{"type":"LIMIT_SELL","amount":"207.66773162","price":"0.00000313","total":"0.00065000","createdAt":"2020-04-08T18:26:39Z"},{"type":"LIMIT_SELL","amount":"201.23839009","price":"0.00000316","total":"0.00063591","createdAt":"2020-04-08T18:26:39Z"},{"type":"LIMIT_SELL","amount":"798.76160991","price":"0.00000316","total":"0.00252409","createdAt":"2020-04-08T18:26:10Z"},{"type":"LIMIT_SELL","amount":"1000.00000000","price":"0.00000320","total":"0.00320000","createdAt":"2020-04-08T18:26:10Z"},{"type":"LIMIT_SELL","amount":"201.23839009","price":"0.00000323","total":"0.00065000","createdAt":"2020-04-08T18:26:10Z"},{"type":"LIMIT_SELL","amount":"1000.00000000","price":"0.00000323","total":"0.00323000","createdAt":"2020-04-08T18:26:10Z"},{"type":"LIMIT_SELL","amount":"823.29341317","price":"0.00000327","total":"0.00269217","createdAt":"2020-04-08T18:14:31Z"},{"type":"MARKET_SELL","amount":"176.70658683","price":"0.00000327","total":"0.00057783","createdAt":"2020-04-08T17:23:32Z"},{"type":"LIMIT_BUY","amount":"700.00000000","price":"0.00000334","total":"0.00233800","createdAt":"2020-04-08T17:19:44Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000333","total":"0.00333000","createdAt":"2020-04-08T17:19:27Z"},{"type":"LIMIT_BUY","amount":"148.78795903","price":"0.00000332","total":"0.00049398","createdAt":"2020-04-08T17:19:22Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000330","total":"0.00330000","createdAt":"2020-04-08T17:19:15Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000327","total":"0.00327000","createdAt":"2020-04-08T17:19:09Z"},{"type":"LIMIT_BUY","amount":"201.23839009","price":"0.00000323","total":"0.00065000","createdAt":"2020-04-08T17:19:03Z"},{"type":"LIMIT_BUY","amount":"875.00000000","price":"0.00000323","total":"0.00282625","createdAt":"2020-04-08T17:19:03Z"},{"type":"LIMIT_BUY","amount":"864.54915170","price":"0.00000320","total":"0.00276656","createdAt":"2020-04-08T17:18:58Z"},{"type":"LIMIT_BUY","amount":"207.66773162","price":"0.00000313","total":"0.00065000","createdAt":"2020-04-08T17:18:52Z"},{"type":"LIMIT_BUY","amount":"50.00000000","price":"0.00000312","total":"0.00015600","createdAt":"2020-04-08T17:18:47Z"},{"type":"LIMIT_SELL","amount":"1309.04952697","price":"0.00000291","total":"0.00380933","createdAt":"2020-04-08T13:59:33Z"},{"type":"MARKET_SELL","amount":"61.96524620","price":"0.00000291","total":"0.00018032","createdAt":"2020-04-08T12:19:15Z"},{"type":"MARKET_SELL","amount":"213.81578947","price":"0.00000304","total":"0.00065000","createdAt":"2020-04-08T12:19:15Z"},{"type":"MARKET_SELL","amount":"14.47902917","price":"0.00000313","total":"0.00004532","createdAt":"2020-04-08T12:19:15Z"},{"type":"LIMIT_BUY","amount":"104.26334830","price":"0.00000320","total":"0.00033364","createdAt":"2020-04-08T08:52:25Z"},{"type":"MARKET_BUY","amount":"31.18750000","price":"0.00000320","total":"0.00009980","createdAt":"2020-04-08T04:17:25Z"},{"type":"LIMIT_BUY","amount":"22.54596238","price":"0.00000313","total":"0.00007057","createdAt":"2020-04-08T03:31:19Z"},{"type":"LIMIT_BUY","amount":"37.02499155","price":"0.00000313","total":"0.00011589","createdAt":"2020-04-08T03:28:48Z"},{"type":"LIMIT_BUY","amount":"148.09677769","price":"0.00000313","total":"0.00046354","createdAt":"2020-04-08T03:28:15Z"},{"type":"MARKET_SELL","amount":"1347.24590389","price":"0.00000290","total":"0.00390701","createdAt":"2020-04-07T23:34:34Z"},{"type":"MARKET_SELL","amount":"213.81578947","price":"0.00000304","total":"0.00065000","createdAt":"2020-04-07T23:34:34Z"},{"type":"MARKET_SELL","amount":"1000.00000000","price":"0.00000316","total":"0.00316000","createdAt":"2020-04-07T23:34:34Z"},{"type":"MARKET_SELL","amount":"824.19666458","price":"0.00000320","total":"0.00263743","createdAt":"2020-04-07T23:34:34Z"},{"type":"LIMIT_BUY","amount":"708.66885438","price":"0.00000320","total":"0.00226774","createdAt":"2020-04-07T23:15:31Z"},{"type":"LIMIT_BUY","amount":"198.99887724","price":"0.00000320","total":"0.00063680","createdAt":"2020-04-07T22:22:02Z"},{"type":"LIMIT_BUY","amount":"92.33226838","price":"0.00000320","total":"0.00029546","createdAt":"2020-04-07T20:00:33Z"},{"type":"LIMIT_BUY","amount":"207.66773162","price":"0.00000313","total":"0.00065000","createdAt":"2020-04-07T20:00:33Z"},{"type":"MARKET_SELL","amount":"15076.95872089","price":"0.00000290","total":"0.04372318","createdAt":"2020-04-07T18:59:55Z"},{"type":"MARKET_SELL","amount":"3421.30414938","price":"0.00000293","total":"0.01002442","createdAt":"2020-04-07T18:59:55Z"},{"type":"MARKET_SELL","amount":"213.81578947","price":"0.00000304","total":"0.00065000","createdAt":"2020-04-07T18:59:55Z"},{"type":"MARKET_SELL","amount":"207.66773162","price":"0.00000313","total":"0.00065000","createdAt":"2020-04-07T18:59:55Z"},{"type":"MARKET_SELL","amount":"1000.00000000","price":"0.00000316","total":"0.00316000","createdAt":"2020-04-07T18:59:55Z"},{"type":"MARKET_SELL","amount":"92.44972236","price":"0.00000317","total":"0.00029307","createdAt":"2020-04-07T18:59:55Z"},{"type":"LIMIT_SELL","amount":"296.01003493","price":"0.00000317","total":"0.00093835","createdAt":"2020-04-07T12:24:38Z"},{"type":"MARKET_SELL","amount":"611.54024271","price":"0.00000317","total":"0.00193858","createdAt":"2020-04-07T08:13:01Z"},{"type":"LIMIT_BUY","amount":"125.00000000","price":"0.00000323","total":"0.00040375","createdAt":"2020-04-06T19:44:30Z"},{"type":"LIMIT_SELL","amount":"1000.00000000","price":"0.00000320","total":"0.00320000","createdAt":"2020-04-06T16:03:12Z"},{"type":"LIMIT_SELL","amount":"304.21328438","price":"0.00000323","total":"0.00098261","createdAt":"2020-04-06T16:03:06Z"},{"type":"MARKET_SELL","amount":"695.78671562","price":"0.00000323","total":"0.00224739","createdAt":"2020-04-06T13:22:57Z"},{"type":"MARKET_SELL","amount":"304.01328438","price":"0.00000323","total":"0.00098196","createdAt":"2020-04-06T13:22:57Z"},{"type":"LIMIT_SELL","amount":"401.22510571","price":"0.00000323","total":"0.00129596","createdAt":"2020-04-06T12:54:05Z"},{"type":"LIMIT_SELL","amount":"633.68481633","price":"0.00000327","total":"0.00207215","createdAt":"2020-04-06T12:10:23Z"},{"type":"LIMIT_SELL","amount":"297.31518367","price":"0.00000327","total":"0.00097222","createdAt":"2020-04-06T09:34:25Z"},{"type":"LIMIT_SELL","amount":"69.00000000","price":"0.00000327","total":"0.00022563","createdAt":"2020-04-06T09:32:27Z"},{"type":"LIMIT_BUY","amount":"46.99517350","price":"0.00000332","total":"0.00015602","createdAt":"2020-04-06T08:28:14Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000330","total":"0.00330000","createdAt":"2020-04-06T08:28:14Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000329","total":"0.00329000","createdAt":"2020-04-06T08:28:00Z"},{"type":"LIMIT_BUY","amount":"504.00000000","price":"0.00000328","total":"0.00165312","createdAt":"2020-04-06T08:27:44Z"},{"type":"LIMIT_SELL","amount":"294.76160991","price":"0.00000323","total":"0.00095208","createdAt":"2020-04-06T07:16:52Z"},{"type":"LIMIT_SELL","amount":"201.23839009","price":"0.00000323","total":"0.00065000","createdAt":"2020-04-06T07:16:52Z"},{"type":"LIMIT_BUY","amount":"496.00000000","price":"0.00000328","total":"0.00162688","createdAt":"2020-04-06T07:15:28Z"},{"type":"LIMIT_SELL","amount":"195.78313253","price":"0.00000327","total":"0.00064021","createdAt":"2020-04-05T20:17:39Z"},{"type":"LIMIT_SELL","amount":"804.21686747","price":"0.00000327","total":"0.00262979","createdAt":"2020-04-05T19:51:49Z"},{"type":"LIMIT_SELL","amount":"195.78313253","price":"0.00000330","total":"0.00064608","createdAt":"2020-04-05T19:51:49Z"},{"type":"LIMIT_SELL","amount":"804.21686747","price":"0.00000330","total":"0.00265392","createdAt":"2020-04-05T19:51:36Z"},{"type":"LIMIT_SELL","amount":"1000.00000000","price":"0.00000330","total":"0.00330000","createdAt":"2020-04-05T19:51:36Z"},{"type":"LIMIT_SELL","amount":"1000.00000000","price":"0.00000330","total":"0.00330000","createdAt":"2020-04-05T19:51:36Z"},{"type":"LIMIT_SELL","amount":"195.78313253","price":"0.00000332","total":"0.00065000","createdAt":"2020-04-05T19:51:36Z"},{"type":"LIMIT_SELL","amount":"1000.00000000","price":"0.00000334","total":"0.00334000","createdAt":"2020-04-05T19:51:29Z"},{"type":"LIMIT_SELL","amount":"918.32256796","price":"0.00000334","total":"0.00306720","createdAt":"2020-04-05T19:51:29Z"},{"type":"LIMIT_SELL","amount":"1000.00000000","price":"0.00000338","total":"0.00338000","createdAt":"2020-04-05T19:51:26Z"},{"type":"LIMIT_SELL","amount":"190.05847953","price":"0.00000342","total":"0.00065000","createdAt":"2020-04-05T19:51:16Z"},{"type":"LIMIT_SELL","amount":"1000.00000000","price":"0.00000342","total":"0.00342000","createdAt":"2020-04-05T19:51:16Z"},{"type":"LIMIT_SELL","amount":"1000.00000000","price":"0.00000345","total":"0.00345000","createdAt":"2020-04-05T19:51:10Z"},{"type":"LIMIT_BUY","amount":"300.00000000","price":"0.00000353","total":"0.00105900","createdAt":"2020-04-05T19:49:49Z"},{"type":"LIMIT_BUY","amount":"184.65909090","price":"0.00000352","total":"0.00065000","createdAt":"2020-04-05T19:49:12Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000349","total":"0.00349000","createdAt":"2020-04-05T19:47:01Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000345","total":"0.00345000","createdAt":"2020-04-05T19:46:51Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000342","total":"0.00342000","createdAt":"2020-04-05T19:46:42Z"},{"type":"LIMIT_BUY","amount":"65.82890794","price":"0.00000342","total":"0.00022513","createdAt":"2020-04-05T19:46:42Z"},{"type":"LIMIT_SELL","amount":"81.67743204","price":"0.00000334","total":"0.00027280","createdAt":"2020-04-05T19:22:59Z"},{"type":"LIMIT_BUY","amount":"124.22957159","price":"0.00000342","total":"0.00042487","createdAt":"2020-04-05T19:15:29Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000338","total":"0.00338000","createdAt":"2020-04-05T19:15:01Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000334","total":"0.00334000","createdAt":"2020-04-05T19:14:49Z"},{"type":"LIMIT_BUY","amount":"195.78313253","price":"0.00000332","total":"0.00065000","createdAt":"2020-04-05T19:14:39Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000330","total":"0.00330000","createdAt":"2020-04-05T19:14:33Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000327","total":"0.00327000","createdAt":"2020-04-05T19:14:20Z"},{"type":"LIMIT_BUY","amount":"201.23839009","price":"0.00000323","total":"0.00065000","createdAt":"2020-04-05T19:14:09Z"},{"type":"LIMIT_BUY","amount":"873.23839009","price":"0.00000323","total":"0.00282056","createdAt":"2020-04-05T19:14:09Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000320","total":"0.00320000","createdAt":"2020-04-05T19:14:01Z"},{"type":"LIMIT_BUY","amount":"207.66773162","price":"0.00000313","total":"0.00065000","createdAt":"2020-04-05T19:13:41Z"},{"type":"MARKET_SELL","amount":"263.88735927","price":"0.00000293","total":"0.00077319","createdAt":"2020-04-05T01:09:29Z"},{"type":"LIMIT_SELL","amount":"860.02768761","price":"0.00000300","total":"0.00258008","createdAt":"2020-04-04T20:47:07Z"},{"type":"LIMIT_SELL","amount":"90.90000000","price":"0.00000300","total":"0.00027270","createdAt":"2020-04-04T18:56:11Z"},{"type":"LIMIT_BUY","amount":"41.93122892","price":"0.00000304","total":"0.00012747","createdAt":"2020-04-04T14:20:59Z"},{"type":"LIMIT_SELL","amount":"34.15302102","price":"0.00000304","total":"0.00010383","createdAt":"2020-04-04T09:21:49Z"},{"type":"MARKET_SELL","amount":"179.66276845","price":"0.00000304","total":"0.00054617","createdAt":"2020-04-04T06:12:28Z"},{"type":"MARKET_SELL","amount":"160.82674374","price":"0.00000313","total":"0.00050339","createdAt":"2020-04-04T06:12:28Z"},{"type":"LIMIT_SELL","amount":"46.84098788","price":"0.00000313","total":"0.00014661","createdAt":"2020-04-04T05:12:35Z"},{"type":"LIMIT_BUY","amount":"471.04849861","price":"0.00000319","total":"0.00150264","createdAt":"2020-04-03T21:28:06Z"},{"type":"LIMIT_SELL","amount":"1000.00000000","price":"0.00000316","total":"0.00316000","createdAt":"2020-04-03T21:14:39Z"},{"type":"LIMIT_BUY","amount":"126.76160991","price":"0.00000323","total":"0.00040944","createdAt":"2020-04-03T20:21:13Z"},{"type":"LIMIT_BUY","amount":"201.23839009","price":"0.00000323","total":"0.00065000","createdAt":"2020-04-03T20:21:13Z"},{"type":"LIMIT_BUY","amount":"1000.00000000","price":"0.00000320","total":"0.00320000","createdAt":"2020-04-03T20:20:24Z"},{"type":"LIMIT_BUY","amount":"207.66773162","price":"0.00000313","total":"0.00065000","createdAt":"2020-04-03T20:20:10Z"},{"type":"MARKET_SELL","amount":"712.19947597","price":"0.00000300","total":"0.00213660","createdAt":"2020-04-03T14:46:42Z"},{"type":"MARKET_SELL","amount":"213.81578947","price":"0.00000304","total":"0.00065000","createdAt":"2020-04-03T14:46:42Z"},{"type":"MARKET_SELL","amount":"1000.00000000","price":"0.00000316","total":"0.00316000","createdAt":"2020-04-03T14:46:42Z"},{"type":"MARKET_SELL","amount":"454.20654000","price":"0.00000316","total":"0.00143529","createdAt":"2020-04-03T12:52:47Z"},{"type":"LIMIT_SELL","amount":"337.92572838","price":"0.00000316","total":"0.00106785","createdAt":"2020-04-03T11:25:25Z"},{"type":"LIMIT_BUY","amount":"207.66773162","price":"0.00000313","total":"0.00065000","createdAt":"2020-04-03T10:04:25Z"},{"type":"LIMIT_SELL","amount":"213.81578947","price":"0.00000304","total":"0.00065000","createdAt":"2020-04-03T09:57:51Z"}]}' + http_version: + recorded_at: Wed, 29 Apr 2020 12:54:41 GMT +recorded_with: VCR 4.0.0 diff --git a/spec/exchanges/ionomy/integration/market_spec.rb b/spec/exchanges/ionomy/integration/market_spec.rb new file mode 100644 index 000000000..8e141f525 --- /dev/null +++ b/spec/exchanges/ionomy/integration/market_spec.rb @@ -0,0 +1,73 @@ +require 'spec_helper' + +RSpec.describe 'Ionomy integration specs' do + let(:client) { Cryptoexchange::Client.new } + let(:market) { 'ionomy' } + let(:btc_ion_pair) { Cryptoexchange::Models::MarketPair.new(base: 'ION', target: 'BTC', market: market) } + + it 'fetch pairs' do + pairs = client.pairs(market) + expect(pairs).not_to be_empty + + pair = pairs.first + expect(pair.base).to_not be nil + expect(pair.target).to_not be nil + expect(pair.market).to eq market + end + + it 'give trade url' do + trade_page_url = client.trade_page_url market, base: btc_ion_pair.base, target: btc_ion_pair.target + expect(trade_page_url).to eq "https://ionomy.com/en/markets/BTC-ION" + end + + it 'fetch ticker' do + ticker = client.ticker(btc_ion_pair) + + expect(ticker.base).to eq 'ION' + expect(ticker.target).to eq 'BTC' + expect(ticker.market).to eq market + expect(ticker.last).to be_a Numeric + expect(ticker.ask).to be_a Numeric + expect(ticker.bid).to be_a Numeric + expect(ticker.low).to be_a Numeric + expect(ticker.high).to be_a Numeric + expect(ticker.volume).to be_a Numeric + expect(ticker.change).to be_a Numeric + expect(ticker.timestamp).to be nil + + expect(ticker.payload).to_not be nil + end + + it 'fetch order book' do + order_book = client.order_book(btc_ion_pair) + + expect(order_book.base).to eq 'ION' + expect(order_book.target).to eq 'BTC' + expect(order_book.market).to eq market + expect(order_book.asks).to_not be_empty + expect(order_book.bids).to_not be_empty + expect(order_book.asks.first.price).to_not be_nil + expect(order_book.bids.first.amount).to_not be_nil + expect(order_book.bids.first.timestamp).to be_nil + expect(order_book.asks.count).to be > 0 + expect(order_book.bids.count).to be > 0 + expect(order_book.timestamp).to be_nil + expect(order_book.payload).to_not be nil + end + + it 'fetch trade' do + trades = client.trades(btc_ion_pair) + trade = trades.sample + + expect(trades).to_not be_empty + expect(trade.base).to eq 'ION' + expect(trade.target).to eq 'BTC' + expect(trade.market).to eq market + expect(trade.trade_id).to be_nil + expect(['buy', 'sell']).to include trade.type + expect(trade.price).to_not be_nil + expect(trade.amount).to_not be_nil + expect(trade.timestamp).to be_a Numeric + expect(trade.payload).to_not be nil + end +end diff --git a/spec/exchanges/ionomy/market_spec.rb b/spec/exchanges/ionomy/market_spec.rb new file mode 100644 index 000000000..b24f7c218 --- /dev/null +++ b/spec/exchanges/ionomy/market_spec.rb @@ -0,0 +1,6 @@ +require 'spec_helper' + +RSpec.describe Cryptoexchange::Exchanges::Ionomy::Market do + it { expect(described_class::NAME).to eq 'ionomy' } + it { expect(described_class::API_URL).to eq 'https://ionomy.com/api/v1' } +end