Sha256: a838cefd9838651295e12883af0c9aa6f733c91066d80161ce731b1877c67d43
Contents?: true
Size: 1.92 KB
Versions: 5
Compression:
Stored size: 1.92 KB
Contents
# frozen_string_literal: true # @author Hernani Rodrigues Vaz module Cns # (see Bigquery) class Bigquery private # @return [Etherscan] API blockchain ETH def apies @apies ||= Etherscan.new( { wb: sql("select * from #{BD}.walletEth order by 2"), nt: sql("select itx,iax from #{BD}.ethtx"), nk: sql("select itx,iax from #{BD}.ethkx") }, ops ) end # @return [Greymass] API blockchain EOS def apigm @apigm ||= Greymass.new( { wb: sql("select * from #{BD}.walletEos order by 2"), nt: sql("select itx,iax from #{BD}.eostx") }, ops ) end # @return [Kraken] API exchange kraken def apius @apius ||= Kraken.new( { sl: sql("select sum(btc) xxbt,sum(eth) xeth,sum(eos) eos,sum(eur) zeur from #{BD}.ussl")[0], nt: sql("select * from #{BD}.ustx order by time,txid"), nl: sql("select * from #{BD}.uslx order by time,txid") }, ops ) end # @return [Bitcoinde] API exchange bitcoinde def apide @apide ||= Bitcoinde.new( { sl: sql("select sum(btc) btc from #{BD}.desl")[0], nt: sql("select * from #{BD}.detx order by time,txid"), nl: sql("select * from #{BD}.delx order by time,txid") }, ops ) end # @return [Paymium] API exchange paymium def apifr @apifr ||= Paymium.new( { sl: sql("select sum(btc) btc,sum(eur) eur from #{BD}.frsl")[0], nl: sql("select * from #{BD}.frlx order by time,txid") }, ops ) end # @return [TheRock] API exchange therock def apimt @apimt ||= TheRock.new( { sl: sql("select sum(btc) btc,sum(eur) eur from #{BD}.mtsl")[0], nl: sql("select * from #{BD}.mtlx order by time,txid") }, ops ) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
cns-0.1.6 | lib/cns/bigquery2.rb |
cns-0.1.5 | lib/cns/bigquery2.rb |
cns-0.1.4 | lib/cns/bigquery2.rb |
cns-0.1.3 | lib/cns/bigquery2.rb |
cns-0.1.2 | lib/cns/bigquery2.rb |