lib/cns/bigquery2.rb in cns-0.1.1 vs lib/cns/bigquery2.rb in cns-0.1.2

- old
+ new

@@ -2,11 +2,13 @@ # @author Hernani Rodrigues Vaz module Cns # (see Bigquery) class Bigquery - # @return [Etherscan] API etherscan + 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"), @@ -14,22 +16,22 @@ }, ops ) end - # @return [Greymass] API greymass + # @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 kraken - obter saldos & transacoes trades e ledger + # @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"), @@ -37,11 +39,11 @@ }, ops ) end - # @return [Bitcoinde] API Bitcoinde - obter saldos & transacoes trades e ledger + # @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"), @@ -49,21 +51,21 @@ }, ops ) end - # @return [Paymium] API Paymium - obter saldos & transacoes ledger + # @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 TheRock - obter saldos & transacoes ledger + # @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")