cryptocompare 0.15.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8343ea1a62ef844e2301dee0c200984d73480863aae94abe937a902bf6236a6c
4
- data.tar.gz: 81e74060ce613c4ef405925ac54d58dee38d6f50e34b7b566812545d27a5f78d
3
+ metadata.gz: 166dd1bd0cc845936ec9c3384a819baf73fc3af511aa78c667d769a8952db08f
4
+ data.tar.gz: c124ae57e1b17cd6021c9c10a994b0ad43945e0dff86b22f4a848b112bcf060d
5
5
  SHA512:
6
- metadata.gz: 05f5da231667c7a777d1070a5dd549103742212bedb6a25161a9c3b8b10d8eee030b306f67518979f462e195259adda2d6cdde72680c522387accfbb010d909e
7
- data.tar.gz: 14890afb1de24ddc601ca7d3bcc915f12e2baae3ff6f83b6866dbbad11cc3e0a2b4c3a0251c596736c62632e2bd16e4449ab678432e0cf4b90de346e5ecb5062
6
+ metadata.gz: 94f5b790558eeddc79ab4d16c1d36faddab1002401be5896a35ee9a9c268580d6bd8ec0358d45ce2f003e781033ee29fdc325c66845bbbca2004ccef93fd8700
7
+ data.tar.gz: 7a3ba4957c8dcefc66bfa6192f2d8f24af0ae67d40d7f7626ca92518084ce72f51348ddfa48fff05fca3044495293d8d74fa53eefaaba3317c3bcfe057e879a7
@@ -0,0 +1,33 @@
1
+ # Use the latest 2.1 version of CircleCI pipeline process engine.
2
+ # See: https://circleci.com/docs/2.0/configuration-reference
3
+ version: 2.1
4
+
5
+ # Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects.
6
+ # See: https://circleci.com/docs/2.0/orb-intro/
7
+ orbs:
8
+ ruby: circleci/ruby@1.2.0
9
+
10
+ # Define a job to be invoked later in a workflow.
11
+ # See: https://circleci.com/docs/2.0/configuration-reference/#jobs
12
+ jobs:
13
+ build:
14
+ docker:
15
+ - image: 'cimg/base:stable'
16
+ steps:
17
+ - checkout
18
+ - ruby/install:
19
+ version: '2.7'
20
+ - run: echo "Ruby 2.7 has been installed"
21
+ - ruby/install-deps:
22
+ bundler-version: '2.2.31'
23
+ with-cache: false
24
+ - run:
25
+ command: 'bundle exec rake test'
26
+ name: Run Tests
27
+ # Invoke jobs via workflows
28
+ # See: https://circleci.com/docs/2.0/configuration-reference/#workflows
29
+ workflows:
30
+ sample: # This is the name of the workflow, feel free to change it to better match your workflow.
31
+ # Inside the workflow, you define the jobs you want to run.
32
+ jobs:
33
+ - build
data/.gitignore CHANGED
@@ -1,6 +1,5 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
data/Gemfile.lock ADDED
@@ -0,0 +1,71 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cryptocompare (0.16.0)
5
+ faraday
6
+ json
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ addressable (2.8.0)
12
+ public_suffix (>= 2.0.2, < 5.0)
13
+ codeclimate-test-reporter (1.0.9)
14
+ simplecov (<= 0.13)
15
+ crack (0.4.5)
16
+ rexml
17
+ docile (1.1.5)
18
+ faraday (1.8.0)
19
+ faraday-em_http (~> 1.0)
20
+ faraday-em_synchrony (~> 1.0)
21
+ faraday-excon (~> 1.1)
22
+ faraday-httpclient (~> 1.0.1)
23
+ faraday-net_http (~> 1.0)
24
+ faraday-net_http_persistent (~> 1.1)
25
+ faraday-patron (~> 1.0)
26
+ faraday-rack (~> 1.0)
27
+ multipart-post (>= 1.2, < 3)
28
+ ruby2_keywords (>= 0.0.4)
29
+ faraday-em_http (1.0.0)
30
+ faraday-em_synchrony (1.0.0)
31
+ faraday-excon (1.1.0)
32
+ faraday-httpclient (1.0.1)
33
+ faraday-net_http (1.0.1)
34
+ faraday-net_http_persistent (1.2.0)
35
+ faraday-patron (1.0.0)
36
+ faraday-rack (1.0.0)
37
+ hashdiff (1.0.1)
38
+ json (2.6.1)
39
+ minitest (5.14.4)
40
+ multipart-post (2.1.1)
41
+ public_suffix (4.0.6)
42
+ rake (13.0.6)
43
+ rexml (3.2.5)
44
+ ruby2_keywords (0.0.5)
45
+ simplecov (0.13.0)
46
+ docile (~> 1.1.0)
47
+ json (>= 1.8, < 3)
48
+ simplecov-html (~> 0.10.0)
49
+ simplecov-html (0.10.2)
50
+ vcr (6.0.0)
51
+ webmock (3.14.0)
52
+ addressable (>= 2.8.0)
53
+ crack (>= 0.3.2)
54
+ hashdiff (>= 0.4.0, < 2.0.0)
55
+
56
+ PLATFORMS
57
+ x86_64-darwin-19
58
+ x86_64-linux
59
+
60
+ DEPENDENCIES
61
+ bundler (~> 2.2.0)
62
+ codeclimate-test-reporter (~> 1.0.0)
63
+ cryptocompare!
64
+ minitest (~> 5.0)
65
+ rake (>= 12.3.3)
66
+ simplecov
67
+ vcr
68
+ webmock
69
+
70
+ BUNDLED WITH
71
+ 2.2.31
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # cryptocompare
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/cryptocompare.svg)](http://badge.fury.io/rb/cryptocompare) [![Build Status](https://travis-ci.org/alexanderdavidpan/cryptocompare.svg)](https://travis-ci.org/alexanderdavidpan/cryptocompare)
3
+ [![Gem Version](https://badge.fury.io/rb/cryptocompare.svg)](http://badge.fury.io/rb/cryptocompare) [![CircleCI](https://circleci.com/gh/alexanderdavidpan/cryptocompare.svg?style=shield)](https://circleci.com/gh/alexanderdavidpan/cryptocompare)
4
4
  [![Test Coverage](https://codeclimate.com/github/alexanderdavidpan/cryptocompare/badges/coverage.svg)](https://codeclimate.com/github/alexanderdavidpan/cryptocompare/coverage)
5
5
 
6
6
  This is a Ruby gem that utilizes the CryptoCompare API to fetch data related to cryptocurrencies.
@@ -29,6 +29,15 @@ To use cryptocompare, just require it like so:
29
29
  require 'cryptocompare'
30
30
  ```
31
31
 
32
+ ### API Keys
33
+
34
+ Some requests will require an API key. In order to obtain an API key, you will need to request one from Cryptocompare. You can then pass it in as an optional parameter in the any Cryptocompare module method like so:
35
+
36
+ ```ruby
37
+ Cryptocompare::Price.find('ETH', 'USD', { api_key: 'API_KEY' })
38
+ # => {"ETH"=>{"USD"=>4714.16}}
39
+ ```
40
+
32
41
  ### Price
33
42
 
34
43
  Finds the currency price(s) of a given currency symbol. Really fast, 20-60 ms. Cached each 10 seconds.
@@ -618,89 +627,315 @@ Cryptocompare::Exchanges.all
618
627
 
619
628
  ## Supported Exchanges
620
629
 
630
+ * aax
631
+ * ABCC
621
632
  * Abucoins
622
- * ANXBTC
633
+ * ACX
634
+ * AidosMarket
635
+ * aliexchange
636
+ * alphaex
637
+ * altilly
638
+ * ataix
639
+ * bcbitcoin
640
+ * BCEX
641
+ * beldex
642
+ * bequant
643
+ * betconix
644
+ * Bgogo
645
+ * bhex
646
+ * Bibox
647
+ * BigONE
648
+ * biki
649
+ * bilaxy
623
650
  * Binance
651
+ * binancedex
652
+ * Binanceje
653
+ * binanceusa
654
+ * bingcoins
624
655
  * Bit2C
656
+ * bitasset
657
+ * BitBank
625
658
  * BitBay
626
- * BitcoinDE
659
+ * bitbuy
660
+ * bitci
661
+ * bitcoincom
662
+ * BitexBook
663
+ * bitfex
627
664
  * Bitfinex
665
+ * BitFlip
628
666
  * bitFlyer
667
+ * bitflyereu
629
668
  * bitFlyerFX
669
+ * bitflyerus
670
+ * Bitforex
671
+ * BitGrail
630
672
  * Bithumb
673
+ * bithumbglobal
674
+ * Bitinfi
675
+ * Bitkub
676
+ * Bitlish
631
677
  * BitMarket
678
+ * BitMart
679
+ * bitmax
680
+ * Bitmex
681
+ * bitpanda
682
+ * Bitpoint
683
+ * Bitsane
684
+ * Bitshares
632
685
  * Bitso
686
+ * bitspark
633
687
  * BitSquare
634
688
  * Bitstamp
635
- * Bittrex
689
+ * BitTrex
690
+ * BitZ
691
+ * bkex
692
+ * Blackturtle
636
693
  * Bleutrade
694
+ * blockchaincom
695
+ * Bluebelt
696
+ * Braziliex
637
697
  * BTC38
698
+ * BTCAlpha
699
+ * BTCBOX
638
700
  * BTCChina
639
701
  * BTCE
702
+ * BTCExchange
640
703
  * BTCMarkets
704
+ * btcmex
705
+ * BTCTurk
641
706
  * btcXchange
642
707
  * BTCXIndia
643
708
  * BTER
709
+ * btse
710
+ * Buda
711
+ * bw
644
712
  * BXinth
713
+ * bybit
714
+ * Catex
715
+ * CBX
716
+ * CCCAGG
645
717
  * CCEDK
646
718
  * CCEX
647
719
  * Cexio
720
+ * chainrift
721
+ * chainx
722
+ * chaoex
648
723
  * CHBTC
724
+ * ChileBit
725
+ * cobinhood
726
+ * Codex
727
+ * coinall
649
728
  * Coinbase
650
- * CoinCheck
651
- * CoinExchange
729
+ * CoinBene
730
+ * Coincap
731
+ * Coincheck
732
+ * CoinCorner
733
+ * CoinDeal
734
+ * coineal
735
+ * coinegg
736
+ * CoinEx
737
+ * CoinFalcon
738
+ * coinfield
652
739
  * Coinfloor
740
+ * CoinHub
741
+ * CoinJar
742
+ * Coinmate
743
+ * Coinnest
653
744
  * Coinone
745
+ * CoinPulse
654
746
  * Coinroom
747
+ * CoinsBank
748
+ * Coinsbit
655
749
  * Coinse
656
750
  * Coinsetter
751
+ * coinspro
752
+ * coinsuper
753
+ * CoinTiger
754
+ * coinzest
755
+ * compound
756
+ * coss
757
+ * crex24
758
+ * crosstower
759
+ * Cryptagio
760
+ * CryptoBulls
761
+ * CryptoCarbon
762
+ * cryptodotcom
763
+ * CryptoExchangeWS
764
+ * cryptofacilities
765
+ * cryptonex
766
+ * Cryptonit
657
767
  * Cryptopia
658
768
  * CryptoX
659
769
  * Cryptsy
770
+ * currency
771
+ * curve
772
+ * darbfinance
773
+ * dcoin
774
+ * DDEX
775
+ * decoin
776
+ * deribit
777
+ * DEx
778
+ * DigiFinex
779
+ * DSX
780
+ * e55com
781
+ * eidoo
782
+ * equos
783
+ * erisx
660
784
  * EtherDelta
785
+ * Ethermium
661
786
  * EthexIndia
787
+ * Ethfinex
788
+ * etoro
789
+ * Everbloom
790
+ * Exenium
662
791
  * Exmo
792
+ * EXRATES
793
+ * exscudo
794
+ * ExtStock
663
795
  * EXX
796
+ * fatbtc
797
+ * FCCE
798
+ * FCoin
799
+ * Foxbit
800
+ * ftx
801
+ * ftxus
664
802
  * Gatecoin
665
803
  * Gateio
666
804
  * Gemini
805
+ * Globitex
806
+ * Gneiss
807
+ * Gnosis
808
+ * gopax
809
+ * Graviex
810
+ * HADAX
811
+ * hbus
812
+ * Hikenex
667
813
  * HitBTC
668
814
  * Huobi
815
+ * huobifutures
816
+ * huobijapan
817
+ * huobikorea
669
818
  * HuobiPro
819
+ * iCoinbay
820
+ * IDAX
821
+ * idevex
822
+ * IDEX
823
+ * Incorex
824
+ * IndependentReserve
825
+ * indodax
826
+ * InstantBitex
827
+ * IQFinex
828
+ * Ironex
670
829
  * itBit
671
830
  * Jubi
672
831
  * Korbit
673
832
  * Kraken
674
833
  * Kucoin
834
+ * Kuna
675
835
  * LakeBTC
836
+ * LAToken
837
+ * LBank
838
+ * Liqnet
676
839
  * Liqui
840
+ * Liquid
677
841
  * LiveCoin
842
+ * lmax
678
843
  * LocalBitcoins
679
844
  * Luno
680
845
  * Lykke
681
846
  * MercadoBitcoin
847
+ * Minebit
682
848
  * MonetaGo
683
849
  * MtGox
850
+ * NDAX
851
+ * Nebula
852
+ * Neraex
853
+ * Nexchange
854
+ * Nlexch
855
+ * nominex
684
856
  * Novaexchange
857
+ * Nuex
858
+ * oex
685
859
  * OKCoin
686
860
  * OKEX
861
+ * onederx
862
+ * oneinch
863
+ * OpenLedger
864
+ * Ore
865
+ * P2PB2B
866
+ * pancakeswap
867
+ * paribu
687
868
  * Paymium
688
869
  * Poloniex
870
+ * primexbt
871
+ * probit
872
+ * Qryptos
689
873
  * QuadrigaCX
874
+ * quickswap
690
875
  * Quoine
876
+ * raidofinance
691
877
  * Remitano
878
+ * RightBTC
879
+ * SafeCoin
880
+ * safetrade
881
+ * seedcx
882
+ * sigenp2p
883
+ * sigenpro
884
+ * Simex
885
+ * SingularityX
886
+ * sistemkoin
887
+ * slicex
888
+ * smartrade
889
+ * StocksExchange
890
+ * StocksExchangeio
891
+ * Surbitcoin
892
+ * sushiswap
893
+ * Switcheo
894
+ * tchapp
895
+ * TDAX
692
896
  * TheRockTrading
897
+ * thore
898
+ * Threexbit
693
899
  * Tidex
900
+ * timex
901
+ * Tokenomy
902
+ * tokensnet
903
+ * TokenStore
904
+ * tokok
905
+ * TradeSatoshi
694
906
  * TrustDEX
907
+ * trxmarket
695
908
  * TuxExchange
909
+ * uniswap
910
+ * uniswapv2
911
+ * uniswapv3
912
+ * unnamed
696
913
  * Unocoin
914
+ * Upbit
915
+ * utorg
916
+ * valr
697
917
  * Vaultoro
918
+ * VBTC
919
+ * Velox
698
920
  * ViaBTC
699
921
  * WavesDEX
922
+ * wbb
923
+ * WEX
924
+ * WorldCryptoCap
925
+ * xbtpro
926
+ * xcoex
927
+ * xena
928
+ * XS2
929
+ * xtpub
700
930
  * Yacuna
701
931
  * Yobit
702
932
  * Yunbi
703
933
  * Zaif
934
+ * ZB
935
+ * ZBG
936
+ * zebitex
937
+ * Zecoex
938
+ * zloadr
704
939
 
705
940
  If no exchange option is specified, then the default 'CCCAGG' is used. This is cryptocompare's aggregated data.
706
941
 
@@ -12,3 +12,4 @@ to_syms: tsyms
12
12
  to_ts: toTs
13
13
  ts: ts
14
14
  utc_offset: UTCHourDiff
15
+ api_key: api_key
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
30
  spec.require_paths = ["lib"]
31
31
 
32
- spec.add_development_dependency "bundler", "~> 2.1.0"
32
+ spec.add_development_dependency "bundler", "~> 2.2.0"
33
33
  spec.add_development_dependency "rake", ">= 12.3.3"
34
34
  spec.add_development_dependency "minitest", "~> 5.0"
35
35
  spec.add_development_dependency "vcr"
@@ -1,3 +1,3 @@
1
1
  module Cryptocompare
2
- VERSION = "0.15.0"
2
+ VERSION = "0.16.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptocompare
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander David Pan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-22 00:00:00.000000000 Z
11
+ date: 2021-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.1.0
19
+ version: 2.2.0
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.1.0
26
+ version: 2.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -115,10 +115,11 @@ executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
+ - ".circleci/config.yml"
118
119
  - ".gitignore"
119
- - ".travis.yml"
120
120
  - CODE_OF_CONDUCT.md
121
121
  - Gemfile
122
+ - Gemfile.lock
122
123
  - LICENSE.txt
123
124
  - README.md
124
125
  - Rakefile
data/.travis.yml DELETED
@@ -1,12 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.3.0
5
- before_install: gem install bundler -v 2.1.4
6
- addons:
7
- code_climate:
8
- repo_token:
9
- secure: "NAjO10wrSWlyrTC+hj+4Mk3ORZqr7yoD4Or8HIj7YkpKX4l9neqiaOCmNi34wImpJttEsbH/ICIfqphjp1w7VEdS/HnVcJEv3mO9fJ3uLYXJY9uTlwlotdHQ5xCIpyQQJswRw1ef2kH55ACZOWcfC/Sp7sZ9L/xb/3Gb9o1hC6pH0Kd87gx4X8v/THfynR5tPoXUjWCN1RZDcshdTBqOLIyMBdlueZQ2bmiqPQEtCorixCSF2z0oxBXlNoklkPVGOqPXiER/KFaUmDTupSnWw9CGO/00CA1ErU2pk4LTSQwDTZbMQ6ciIl3JTaM9YtJhaKVw2qrSAEKBFjUVmSlqblwAr/A47MaNxD7B6gWe5aKjt1aPsWddNJDf43SSb4B4yh8FfA++c+ydB3XN1yEgg4eoKrqezIgffzbETGGIrlKkbEVqYzXeS3d8N2Zn/ads7Ie1QQsGaH858r+2Taser/saYqF/KIJwMOIiOAAriGJxIk70hHM5ocJVNVtyJpWOTZ1Tzoqtgayfk3lLLixzenh+HRoOLtXg4lCXOZJ+R78w9NCIG/y5ltJJqW9lXlajJHGlIvdkGKD9Q3MKAuH4UbUw6Ni12T8HigEcf1DdDGahNcL2vUdDeIF+mAGTl0blBiLnjmaj+KsfpwC0LcIVBHeLVPV48r2eld6LaNgFeT4="
10
- # regular test configuration
11
- after_success:
12
- - bundle exec codeclimate-test-reporter