coingecko_ruby 0.2.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +31 -0
  3. data/.gitignore +11 -0
  4. data/.travis.yml +6 -0
  5. data/CHANGELOG.md +44 -0
  6. data/Gemfile +16 -0
  7. data/Gemfile.lock +37 -0
  8. data/README.md +7 -5
  9. data/bin/console +14 -0
  10. data/bin/setup +8 -0
  11. data/coingecko_ruby.gemspec +5 -5
  12. data/fixtures/vcr_cassettes/test_that_it_gets_a_coins_complete_current_data.yml +74 -0
  13. data/fixtures/vcr_cassettes/test_that_it_gets_a_coins_tickers.yml +99 -0
  14. data/fixtures/vcr_cassettes/test_that_it_gets_a_derivative_exchange.yml +71 -0
  15. data/fixtures/vcr_cassettes/test_that_it_gets_a_specific_exchange_ticker_from_an_exchange.yml +145 -0
  16. data/fixtures/vcr_cassettes/test_that_it_gets_btc_to_eth_exchange_rate.yml +120 -0
  17. data/fixtures/vcr_cassettes/test_that_it_gets_btc_to_usd_exchange_rate.yml +122 -0
  18. data/fixtures/vcr_cassettes/test_that_it_gets_complete_data_for_an_exchange.yml +72 -0
  19. data/fixtures/vcr_cassettes/test_that_it_gets_daily_historical_prices_for_one_coin.yml +120 -0
  20. data/fixtures/vcr_cassettes/test_that_it_gets_derivative_exchanges.yml +79 -0
  21. data/fixtures/vcr_cassettes/test_that_it_gets_derivatives.yml +1732 -0
  22. data/fixtures/vcr_cassettes/test_that_it_gets_derivatives_exchanges_ids_and_names.yml +95 -0
  23. data/fixtures/vcr_cassettes/test_that_it_gets_event_countries.yml +76 -0
  24. data/fixtures/vcr_cassettes/test_that_it_gets_event_types.yml +71 -0
  25. data/fixtures/vcr_cassettes/test_that_it_gets_exchange_ids_supported_by_coingecko.yml +159 -0
  26. data/fixtures/vcr_cassettes/test_that_it_gets_exchange_tickers_from_an_exchange.yml +78 -0
  27. data/fixtures/vcr_cassettes/test_that_it_gets_finance_platforms.yml +95 -0
  28. data/fixtures/vcr_cassettes/test_that_it_gets_finance_products.yml +100 -0
  29. data/fixtures/vcr_cassettes/test_that_it_gets_global_crypto_data.yml +71 -0
  30. data/fixtures/vcr_cassettes/test_that_it_gets_global_defi_data.yml +71 -0
  31. data/fixtures/vcr_cassettes/test_that_it_gets_historical_price_for_one_coin_at_a_previous_date.yml +173 -0
  32. data/fixtures/vcr_cassettes/test_that_it_gets_hourly_historical_prices_for_one_coin.yml +120 -0
  33. data/fixtures/vcr_cassettes/test_that_it_gets_indexes.yml +127 -0
  34. data/fixtures/vcr_cassettes/test_that_it_gets_indexes_by_market_id_and_coin_id.yml +66 -0
  35. data/fixtures/vcr_cassettes/test_that_it_gets_indexes_by_market_id_and_index_id.yml +71 -0
  36. data/fixtures/vcr_cassettes/test_that_it_gets_indexes_ids.yml +630 -0
  37. data/fixtures/vcr_cassettes/test_that_it_gets_last_7_days_exchange_volume_from_an_exchange.yml +120 -0
  38. data/fixtures/vcr_cassettes/test_that_it_gets_market_data_for_a_coin.yml +169 -0
  39. data/fixtures/vcr_cassettes/test_that_it_gets_market_data_for_a_coin_in_myr.yml +120 -0
  40. data/fixtures/vcr_cassettes/test_that_it_gets_market_data_for_multiple_coins_in_eth.yml +120 -0
  41. data/fixtures/vcr_cassettes/test_that_it_gets_minutely_historical_prices_for_one_coin.yml +188 -0
  42. data/fixtures/vcr_cassettes/test_that_it_gets_ohlc_data_for_one_coin_in_the_last_30_days_in_myr.yml +120 -0
  43. data/fixtures/vcr_cassettes/test_that_it_gets_ohlc_data_for_one_coin_in_the_last_7_days.yml +120 -0
  44. data/fixtures/vcr_cassettes/test_that_it_gets_price_for_multiple_coins.yml +71 -0
  45. data/fixtures/vcr_cassettes/test_that_it_gets_price_for_multiple_coins_in_different_currencies.yml +71 -0
  46. data/fixtures/vcr_cassettes/test_that_it_gets_price_for_one_coin.yml +122 -0
  47. data/fixtures/vcr_cassettes/test_that_it_gets_price_for_one_coin_in_a_different_currency.yml +120 -0
  48. data/fixtures/vcr_cassettes/test_that_it_gets_simple_price_for_one_coin.yml +73 -0
  49. data/fixtures/vcr_cassettes/test_that_it_gets_status_updates.yml +79 -0
  50. data/fixtures/vcr_cassettes/test_that_it_gets_status_updates_for_an_exchange.yml +76 -0
  51. data/fixtures/vcr_cassettes/test_that_it_gets_the_list_of_asset_platforms.yml +80 -0
  52. data/fixtures/vcr_cassettes/test_that_it_gets_the_list_of_categories.yml +114 -0
  53. data/fixtures/vcr_cassettes/test_that_it_gets_the_list_of_categories_with_market_data.yml +100 -0
  54. data/fixtures/vcr_cassettes/test_that_it_gets_the_list_of_supported_coins.yml +143 -0
  55. data/fixtures/vcr_cassettes/test_that_it_gets_the_list_of_supported_exchanges.yml +79 -0
  56. data/fixtures/vcr_cassettes/test_that_it_gets_the_list_supported_coins.yml +74 -0
  57. data/fixtures/vcr_cassettes/test_that_it_gets_trending_searches.yml +77 -0
  58. data/lib/coingecko_ruby/client.rb +16 -0
  59. data/lib/coingecko_ruby/client/categories.rb +42 -363
  60. data/lib/coingecko_ruby/client/coins.rb +32 -31
  61. data/lib/coingecko_ruby/client/derivatives.rb +154 -0
  62. data/lib/coingecko_ruby/client/events.rb +84 -0
  63. data/lib/coingecko_ruby/client/exchanges.rb +51 -1458
  64. data/lib/coingecko_ruby/client/finance.rb +100 -0
  65. data/lib/coingecko_ruby/client/indexes.rb +88 -0
  66. data/lib/coingecko_ruby/client/infos.rb +174 -0
  67. data/lib/coingecko_ruby/client/prices.rb +85 -269
  68. data/lib/coingecko_ruby/client/status.rb +1 -1
  69. data/lib/coingecko_ruby/connection.rb +5 -9
  70. data/lib/coingecko_ruby/version.rb +1 -1
  71. metadata +60 -2
@@ -0,0 +1,120 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.coingecko.com/api/v3/exchanges/binance/volume_chart?days=7
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ Host:
17
+ - api.coingecko.com
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Date:
24
+ - Sun, 16 May 2021 08:07:38 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Access-Control-Allow-Origin:
32
+ - "*"
33
+ Access-Control-Allow-Methods:
34
+ - POST, PUT, DELETE, GET, OPTIONS
35
+ Access-Control-Request-Method:
36
+ - "*"
37
+ Access-Control-Allow-Headers:
38
+ - Origin, X-Requested-With, Content-Type, Accept, Authorization
39
+ Access-Control-Expose-Headers:
40
+ - link, per-page, total
41
+ Vary:
42
+ - Accept-Encoding, Origin
43
+ Etag:
44
+ - W/"d95aaed97759d6a54f0191d701bfabe3"
45
+ Cache-Control:
46
+ - public, max-age=30
47
+ X-Request-Id:
48
+ - b28fb6fe-5134-49b3-87c6-6d62e028eb8f
49
+ X-Runtime:
50
+ - '0.092535'
51
+ Alternate-Protocol:
52
+ - 443:npn-spdy/2
53
+ Cf-Cache-Status:
54
+ - MISS
55
+ Expires:
56
+ - Sun, 16 May 2021 08:08:08 GMT
57
+ Cf-Request-Id:
58
+ - 0a15d079d100001a80163a3000000001
59
+ Expect-Ct:
60
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
61
+ Server:
62
+ - cloudflare
63
+ Cf-Ray:
64
+ - 65031d094a211a80-SIN
65
+ Alt-Svc:
66
+ - h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
67
+ body:
68
+ encoding: ASCII-8BIT
69
+ string: '[[1620550800000.0,"1005246.7629434031910149947068007460133627451232639674421117337946419193599827700534809705802"],[1620554400000.0,"1025127.083610281514793809860251135523047429495233423316380691038810107761708234482150565535"],[1620558000000.0,"1041215.50470570518587619481196702086257795927946614400102066031900109856090266794583512268"],[1620561600000.0,"1048456.3865304430087244933130643390945134795958673640471529030920569809655993654190978275331"],[1620565200000.0,"1095658.371931819069944558458369010036903368357787046973377097499120559741720563532517520842"],[1620568800000.0,"1107353.514896378900895612320593350973805881097792124889746319668371420846100598344775253136"],[1620572400000.0,"1098835.681499007014356941613178177164385479382740953667957149522140230101203059778289309602"],[1620576000000.0,"1086504.8359047857351791519524670038796262192076744411403149046428264131264556340619876572084"],[1620579600000.0,"1059039.134356381702794652946365947748238718550576131752642751336804276127073268255674044544"],[1620583200000.0,"1040629.0370706433104388951994625441174104276578794694784073106835099155332448964450369926928"],[1620586800000.0,"1026344.343068989170726549896142493849816512652088662619323120672355800358542727734061387634"],[1620590400000.0,"1029124.4368341966751314781390815793755108233429821878861912677877566163196820317092237648074"],[1620594000000.0,"1024931.087063957144295323708893194056502595735047506218085972633142700066908600074828471277"],[1620597600000.0,"1020149.3146723036152475768085715785264591969469071279144054789183706289809704471406685505918"],[1620601200000.0,"1010442.93096811700224276314981495930406135322663891194424315219356691064073352667596528864"],[1620604800000.0,"1012948.83681833577539326130225555261740269658913869174275788593888589578114236943907906394"],[1620608400000.0,"1018849.122074642772031600701619564048138749316861077672418111385722002258969688230160918644"],[1620612000000.0,"1020379.4727949690188012995122157462628976994615349812358331439785760807714339087448042020728"],[1620615600000.0,"1020520.80002203088741336528110735817850450512415839956583955530524167698826519341473739084"],[1620619200000.0,"1022169.09808834283723624197537776892805155045314034298920439443770010938325861337276422532"],[1620622800000.0,"799929.852569746671755258672542617300412650477856518054124749530923014610115993529310760478"],[1620626400000.0,"794750.304033667662589619169775774690330565596921583766345699088512355700855788573014144975"],[1620630000000.0,"964271.9045170414473754897006782593462675758558228137004967335429821502121965707307056591496"],[1620633600000.0,"960554.65101238255328658837518374260448179322094623130893461411377051006755198771139742235"],[1620637200000.0,"970648.1172901458705265090830323272323051758101026374999556782344436963116948387369244056588"],[1620640800000.0,"963509.633119293174019067453137707460745179542642260545005327086481773569784909473350244484"],[1620644400000.0,"947150.24979412434475205192918102051782202137914124496525509852069182173657432177729603816"],[1620648000000.0,"971421.098622954450568030617379800754909447397943937228184206626956617867875376240005386512"],[1620651600000.0,"937508.7385022534810565441486107045345607500901777165044814120777786136199219016012274452414"],[1620655200000.0,"924741.1423819623087074660283466006994711741752303320340206988827503614434150343105245086116"],[1620658800000.0,"939778.850970876515177809049785476564859263938626444513165548510954828978295117519432420092"],[1620662400000.0,"952863.2218335439332065006322934954082047204657461295273927459789859885273886417397993449825"],[1620666000000.0,"947045.6492752643608075148818335777729859516250936647046193021940920361354308934816883411072"],[1620669600000.0,"954302.887980307708047644913136983735289741886006203754461678110384246947106067379226289292"],[1620673200000.0,"973583.37562063028679303196661278687738841045003235068174377000644339184816968029877324292"],[1620676800000.0,"988691.9070471326816825988075617544403873895118586038181465030738840056991318309027663186812"],[1620680400000.0,"1124817.281586145635549504158188554273486458757410851788342834380180598153184475579156307333"],[1620684000000.0,"1150537.039009086097091259633898940200724253419647363392301841635311045324251977431314008896"],[1620687600000.0,"1164865.768482885570988479910817439675775823883883899275179796035133935074464927275995125085"],[1620691200000.0,"1173481.269156053728735578475960682120802315804355699252047424850259828221399321134778130284"],[1620694800000.0,"1174232.919380921916284514481165336099130255590778718825855249211746571434374367237107650408"],[1620698400000.0,"1199285.5599039685591799239291413686861500133433945541015680515621430772883058814390540864384"],[1620702000000.0,"1214827.337825578809392844981530517314687252856639722754838113853301335207222212027659229184"],[1620705600000.0,"1214358.724972834634773548876181716779528260777010851641591293438110473329692322532530096968"],[1620709200000.0,"1206328.670282448229815097600308238400425887334110676527349471082482151080925719509372627692"],[1620712800000.0,"1213324.1125824297306821188357787144679080119707772828676356519593257252114252416465003499068"],[1620716400000.0,"1196054.3045705116729285394746897181859817007256063059545161787397398823757904738454354338"],[1620720000000.0,"1192733.84852593264103031014381653884776641002308201976067416583714593029539766928458468328"],[1620723600000.0,"1213775.3635430677511798605744981090470099113265001544767634797115332312497989221366779342"],[1620727200000.0,"1198900.961091750215106960557872229432739880426995382238017204928697210737090892693812665008"],[1620730800000.0,"1196985.3596907311960361209219220978712675885352426916028818844813504671593908013757262111952"],[1620734400000.0,"1171739.264604385451966179479431447047145970975055156985613345307851055172923881069357385348"],[1620738000000.0,"1176316.343669142422022144793010786173877193799647392040729605366275683840414540845029144833"],[1620741600000.0,"1192288.0323958731141068519544956274230138040401829821563124213665555825685663321047278848992"],[1620745200000.0,"1172504.4863228422884560942672382446918862064529804881257161350961795344729917373980836347436"],[1620748800000.0,"1154394.75774986576624033937269534654612025814032532644390173602914550336134980605249920178"],[1620752400000.0,"1165332.6418396016200995235449210996989095929142812891100094765423002435011727962753836153"],[1620756000000.0,"1151855.5071997924011451290068181215050453817001559896522079513996223553917050459195977275176"],[1620759600000.0,"1130079.2363961364031669124674497389139603573269556829623707068455808507540955625444257618688"],[1620763200000.0,"1099942.971821357974689364355091528534585199879899712124852030583889693412397502044962985671"],[1620766800000.0,"971885.8584845585738646382746192766388441329632830114019230578978481858884638871556229413802"],[1620770400000.0,"947868.8464332424028803283228298952856833772667045946954930105224311660304657220961443065696"],[1620774000000.0,"923593.4158863529397336016543325298983375791763811532939711356739451540113128772253867164649"],[1620777600000.0,"903453.7707655933634378970632815008343582343364587074773207476637408055471587052418832954688"],[1620781200000.0,"892849.8188828149090597612138340498472633464599920313212887095132820053207999003187138974912"],[1620784800000.0,"876011.915542223534920085314460437861225459808549799785812396137948846029584868014002277216"],[1620788400000.0,"874955.4399177812748612533400147887436528649013793663158000246575586475341516862383936813216"],[1620792000000.0,"858574.107124840723983962386979049993409114148156143899200687440799657039317876259367429544"],[1620795600000.0,"861219.3403975903068742755528859873667898470539746502511949851148083332688067227113417732647"],[1620799200000.0,"860166.0445517973176344229619070361467329767004195989336465024355562640213672699738347412016"],[1620802800000.0,"871308.197439159142438702051073768775227459587363320585675964621737446316886889344249683776"],[1620806400000.0,"871895.7599388664698532381300440523970841752506489406566855010999372670255281316794544304"],[1620810000000.0,"855147.384878994205873695924119864544280300703058614382384365851544216215430487947025583704"],[1620813600000.0,"844906.599209014268303646792213799889004391222072242296195953162307452502293683111281375936"],[1620817200000.0,"851632.7928043262412704181402209276914116066035935091612181205598858200951448474572271884408"],[1620820800000.0,"846190.12588086480164270847149836890981563182484991733907277811591883977679887981166068854"],[1620824400000.0,"830613.6909580551370669819342413336254714057999209393156960280125063763388370774119143332496"],[1620828000000.0,"815107.6490893174845740254046676521750155532588034159812470192339822406444876503819120662576"],[1620831600000.0,"814104.31559234425563367122569564843900465005061583274509173444578589010966120297166789248"],[1620835200000.0,"849128.57365113338243090612323527667020947477482842651365910308962320560022318210608536034"],[1620838800000.0,"883008.7583359299185056732675592809566478104696997879002449640840635957446277147968921320712"],[1620842400000.0,"893358.06966711371568745810655368788074972608573926462117956330946181344981471532846302848"],[1620846000000.0,"940459.4066367124465427053291848391717751216403790987210640030054116114625020831161735091992"],[1620849600000.0,"968576.312187547099800411689336830344608224606984914469417310406209478594740874624975401696"],[1620853200000.0,"974773.5493233210455509057364685026575848014609688819793677620717305687404303881580686065292"],[1620856800000.0,"973072.4441104126805568869144628527224821414960656442154737645409664587519939614881384846"],[1620860400000.0,"1085089.210385321929517593547815476031199154876290473009742159707114548397387552289395131608"],[1620864000000.0,"1186798.2944455831276456932721230107697042483773711533905926666988111047404065577392138550304"],[1620867600000.0,"1362229.4377215198590613083654068822137627326454769331669361566029728603192571440710250190512"],[1620871200000.0,"1407158.1813079449003405237739410766975406625794338190023257825076974567562346726512769630192"],[1620874800000.0,"1417635.0124913555109120995302941982930909710786489125466093417344264872279952551113624515905"],[1620878400000.0,"1433542.2203716311395211300262085961267476044482569247492039029218029939931941211063749257006"],[1620882000000.0,"1420695.477676913396006802115500698731591861998695467902403722292732059877720771280943076558"],[1620885600000.0,"1427874.8776932056527128336473319831161969531246897945580579052352813499712585049108270079356"],[1620889200000.0,"1427612.692937378668321425563313212549697551569296886561243407834136088819159867828895645464"],[1620892800000.0,"1430880.718375336721247613967847983863860979319563774298704676819129350019946580289429672727"],[1620896400000.0,"1447714.8168495902009628203868720936413916892140519523399355042720468642217628541065358141856"],[1620900000000.0,"1525303.368423742965538677286616891617262317383546691819674596054288997319650116571873414625"],[1620903600000.0,"1586108.16692118708683954532281930153283438895444296999883269840583761008923875586441225088"],[1620907200000.0,"1629747.4834697102952590901151406278696633461967050239558955017492480875634662527087206032944"],[1620910800000.0,"1635249.8144418604992870278177465756376792958766665435987533494814722015019197048367210967852"],[1620914400000.0,"1631822.56521263478943086814819784830789025725367546251861012506171681454527749258925547424"],[1620918000000.0,"1624959.0105662368686201404575310257584041576899948269271861346238537563263583620201702401892"],[1620921600000.0,"1621571.5912175313130036383522188929191915670762780312085478242513080804723714982029864051723"],[1620925200000.0,"1619224.2444779409168097060863102703310019611836090643616600978103484961904351865260105872706"],[1620928800000.0,"1740963.97432123988300043994532296683007131920650498963813497900804437035803540904870584195"],[1620932400000.0,"1710318.937020276140060127290757300336215948422492819897150744846176635718456711523585532984"],[1620936000000.0,"1677264.14341191122235822796699656671605477943280721001632878886717965015299236638331332809"],[1620939600000.0,"1676116.8213245022932679638284007299506792617073611444695145019381152423425222669213421656336"],[1620943200000.0,"1669613.405778723540527626385943546782001101521501437955125141325697877548127768315116237984"],[1620946800000.0,"1614905.674777145137156462149248150023701162266611398974959179274552514283603553729966485619"],[1620950400000.0,"1574475.1247864262643413625395852115965110228843195470804985911842296743880228340296252367985"],[1620954000000.0,"1409380.0043791210313783561097766401900858618094816257779266746434807611038257200913569572248"],[1620957600000.0,"1359866.0243037837215181503138823536886220943657639473094235305873905127564276944862470345232"],[1620961200000.0,"1353603.1819329965740846754388883849739369735581164534783919676655763384246414454334373267928"],[1620964800000.0,"1340745.5812659146434317165476953666156523705636174979366858156001061613741085367339065041128"],[1620968400000.0,"1337736.63897608912190936689867748126333772639746073957493176895470762326500724518258952778"],[1620972000000.0,"1325041.87959758127620262585283885887907757599046667537197633102525317124834321435069513744"],[1620975600000.0,"1341565.13628999347995765220170910973046080366063305468533186219075100219206246500766395936"],[1620979200000.0,"1329539.33276648848415453337811858325955330648179796840013166454555516684983524"],[1620982800000.0,"1325267.244501133595857311797520711274786753607564507155911163073563325689184386408414793936"],[1620986400000.0,"1277962.034042272933405785842110464690422237790930078920194373297559185226888605720456965605"],[1620990000000.0,"1234415.619482918661772984118549951768392598210886883724169010233901772470102910611250093526"],[1620993600000.0,"1183299.312737418144420547487271052456437391076759026011081763436935153174186249087697656325"],[1620997200000.0,"1175383.882597073779899206072686093996830983869748055898741689331668465116342393931319618"],[1621000800000.0,"1162403.1425488759513317849770230196540697755432130362722872627293951280989297793136009146926"],[1621004400000.0,"1158937.4744114475891757111138460500634562821668245444280045339980811390844816745980137750768"],[1621008000000.0,"1148847.872052146523676245536671284935208721648325351436376955151157768895250455246329951716"],[1621011600000.0,"1145893.4697491266260480884588719008491453162338681221710790626410222681523170103849352495396"],[1621015200000.0,"1068005.59687162209706506798202704452188924034873905839188989692264869636476233213890928448"],[1621018800000.0,"1055437.3959724082436075346190570149736473745509822486714333034508090684201287075187039850032"],[1621022400000.0,"1043110.53369752899195883836721436087797645732898067505511001334156630849803279959071893636"],[1621026000000.0,"1058874.5144240993921804294912728068766647676249640656662634308884449767146038430423095411836"],[1621029600000.0,"1056174.3057302037714129994057387436671971972309047199850245510719108261587311602079128135696"],[1621033200000.0,"1042714.034121880417438696833132277636522109584839528540313569591669971377175979006650643552"],[1621036800000.0,"1000651.4165430456854208251806841455259624004413860776138163607067871972043562148573265666992"],[1621040400000.0,"1000385.572769723368237595886683958259908964933844618214962575059226468647776563961858883946"],[1621044000000.0,"981705.6287168420146714619199100148767073012672217118887279539662151258392223056053249240701"],[1621047600000.0,"974617.024500564804812400868075079195545268463167076670870152421832176316229768329872748792"],[1621051200000.0,"988959.08171425831843410728130879592043711051884619518292140475256723920069730706582728556"],[1621054800000.0,"988515.638567843313292052376027097473193713460188902024452811761170224420208818354641382039"],[1621058400000.0,"990320.17471060638090807574423803064921480135588930751134008932431968021306171228216281034"],[1621062000000.0,"992448.166573701686787997947231640089241211834642559739404991601746908809292128439556521128"],[1621065600000.0,"997154.32986372827643121537553341500528835330267501889220040818407296260024647764494039116"],[1621069200000.0,"988903.65178914156202662737717345335314907416039272757743446528272071882970528615513486278"],[1621072800000.0,"990043.1035810443338831351393041814491383580408112140387656611457714245086915049957460774886"],[1621076400000.0,"1010833.45121220107442986392954460385356665026615121084931391853831309357918726074257888214"],[1621080000000.0,"991012.799373197858668801046374229614856417773561384948560834133281767309639216569949705776"],[1621083600000.0,"977631.403924468735318562927648288771526729751368592017763636631105248244001922444975272786"],[1621087200000.0,"979058.2844661171730634758091543607800115099655780956888279837227696805626966526679039076352"],[1621090800000.0,"991392.6473592741522730094694224778019388334653728240662725853305156398972288426204734369271"],[1621094400000.0,"993014.4674331700700147351747348748396706466484121571144098468629990831589445938434105064"],[1621098000000.0,"1038201.3217240316810259776021180315716473770890979267463758105247727378416428855488498615616"],[1621101600000.0,"1054150.2035285201397481463265395532799673993957521933585072892663834277922095801548724610144"],[1621105200000.0,"1040329.504234944858872281051148101347447165847339019552634863857623876917420178248577545735"],[1621108800000.0,"1059438.0928478166231222018235255459541790669776707099242375378715019154629877958909504416256"],[1621112400000.0,"1035789.984245542268083197465492792318085318860099564320702646496194887389530078364023296424"],[1621116000000.0,"1020629.6364210951670341544646538239710642372492865499024698685268932553429578904252"],[1621119600000.0,"1029126.6307861451546103893444661189331223105456371744336466304077215454657918025048396309"],[1621123200000.0,"1057785.46811182527263148020956523716390148963369740752745240356429128279218090791276845164"],[1621126800000.0,"1074392.325698904171353443762023638817060214343769269440717576233497684878674327899376097032"],[1621130400000.0,"1072506.929614000947745642951101933483955788874051515808311577009681888123321601702731827679"],[1621134000000.0,"1058513.9795232474620896183855632592530170688017221504126653413126334043553851833852487129216"],[1621137600000.0,"1052325.141124680893702054352243948042723139077127200655872400288188416770276481496505052653"],[1621141200000.0,"1036007.580578248583701895311743034038861100984545371576969331232802074049866986464999913418"],[1621144800000.0,"1023284.2349132227514892619880994390369364043495553264436220033532181958878546010433517491"],[1621148400000.0,"1001089.782988012079936055005534625607686923847016215139187735260281240897032223220525277332"],[1621152000000.0,"988274.804265330105448603619005148331354205425283309675292082521111774000555469898735200416"]]'
70
+ recorded_at: Sun, 16 May 2021 08:07:38 GMT
71
+ - request:
72
+ method: get
73
+ uri: https://api.coingecko.com/api/v3/exchanges/binance/volume_chart
74
+ body:
75
+ encoding: US-ASCII
76
+ string: ''
77
+ headers:
78
+ Accept-Encoding:
79
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
80
+ Accept:
81
+ - "*/*"
82
+ User-Agent:
83
+ - Ruby
84
+ response:
85
+ status:
86
+ code: 422
87
+ message: Unprocessable Entity
88
+ headers:
89
+ Date:
90
+ - Mon, 19 Jul 2021 03:15:57 GMT
91
+ Content-Type:
92
+ - application/json; charset=utf-8
93
+ Transfer-Encoding:
94
+ - chunked
95
+ Connection:
96
+ - keep-alive
97
+ Vary:
98
+ - Accept-Encoding, Origin
99
+ Cache-Control:
100
+ - no-cache
101
+ X-Request-Id:
102
+ - 42944307-807f-4388-81ff-23382a15bde0
103
+ X-Runtime:
104
+ - '0.003547'
105
+ Cf-Cache-Status:
106
+ - MISS
107
+ Expect-Ct:
108
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
109
+ Server:
110
+ - cloudflare
111
+ Cf-Ray:
112
+ - 6710c9c82b693285-HKG
113
+ Alt-Svc:
114
+ - h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443";
115
+ ma=86400
116
+ body:
117
+ encoding: ASCII-8BIT
118
+ string: '{"error":"Missing parameter days"}'
119
+ recorded_at: Mon, 19 Jul 2021 03:15:57 GMT
120
+ recorded_with: VCR 6.0.0
@@ -0,0 +1,169 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.coingecko.com/api/v3/coins/markets?ids=bitcoin&vs_currency=usd
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ Host:
17
+ - api.coingecko.com
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Date:
24
+ - Sat, 15 May 2021 16:01:03 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Cache-Control:
32
+ - public, max-age=30
33
+ Access-Control-Allow-Origin:
34
+ - "*"
35
+ Access-Control-Allow-Methods:
36
+ - POST, PUT, DELETE, GET, OPTIONS
37
+ Access-Control-Request-Method:
38
+ - "*"
39
+ Access-Control-Allow-Headers:
40
+ - Origin, X-Requested-With, Content-Type, Accept, Authorization
41
+ Access-Control-Expose-Headers:
42
+ - link, per-page, total
43
+ Vary:
44
+ - Accept-Encoding, Origin
45
+ Etag:
46
+ - W/"017723bc3e793a9a5a5b8988756eadaa"
47
+ X-Request-Id:
48
+ - 6099d35d-33e5-40a1-ab6d-ee89e6fe9ff0
49
+ X-Runtime:
50
+ - '0.023106'
51
+ Alternate-Protocol:
52
+ - 443:npn-spdy/2
53
+ Cf-Cache-Status:
54
+ - EXPIRED
55
+ Expires:
56
+ - Sat, 15 May 2021 16:01:33 GMT
57
+ Cf-Request-Id:
58
+ - 0a125b86db0000d18f8a1ac000000001
59
+ Expect-Ct:
60
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
61
+ Server:
62
+ - cloudflare
63
+ Cf-Ray:
64
+ - 64fd951e2846d18f-HKG
65
+ Alt-Svc:
66
+ - h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
67
+ body:
68
+ encoding: ASCII-8BIT
69
+ string: '[{"id":"bitcoin","symbol":"btc","name":"Bitcoin","image":"https://assets.coingecko.com/coins/images/1/large/bitcoin.png?1547033579","current_price":49053,"market_cap":917825524991,"market_cap_rank":1,"fully_diluted_valuation":1030116515125,"total_volume":61679663434,"high_24h":51300,"low_24h":48019,"price_change_24h":-2246.57482218,"price_change_percentage_24h":-4.37931,"market_cap_change_24h":-41121427948.2572,"market_cap_change_percentage_24h":-4.28819,"circulating_supply":18710831.0,"total_supply":21000000.0,"max_supply":21000000.0,"ath":64805,"ath_change_percentage":-24.30618,"ath_date":"2021-04-14T11:54:46.763Z","atl":67.81,"atl_change_percentage":72240.20172,"atl_date":"2013-07-06T00:00:00.000Z","roi":null,"last_updated":"2021-05-15T15:59:43.867Z"}]'
70
+ recorded_at: Sat, 15 May 2021 16:01:04 GMT
71
+ - request:
72
+ method: get
73
+ uri: https://api.coingecko.com/api/v3/coins/markets
74
+ body:
75
+ encoding: US-ASCII
76
+ string: ''
77
+ headers:
78
+ Accept-Encoding:
79
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
80
+ Accept:
81
+ - "*/*"
82
+ User-Agent:
83
+ - Ruby
84
+ response:
85
+ status:
86
+ code: 422
87
+ message: Unprocessable Entity
88
+ headers:
89
+ Date:
90
+ - Mon, 19 Jul 2021 03:15:50 GMT
91
+ Content-Type:
92
+ - application/json; charset=utf-8
93
+ Transfer-Encoding:
94
+ - chunked
95
+ Connection:
96
+ - keep-alive
97
+ Vary:
98
+ - Accept-Encoding, Origin
99
+ Cache-Control:
100
+ - no-cache
101
+ X-Request-Id:
102
+ - 8f272c6f-8853-44a6-8bda-3155726909cd
103
+ X-Runtime:
104
+ - '0.003016'
105
+ Cf-Cache-Status:
106
+ - MISS
107
+ Expect-Ct:
108
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
109
+ Server:
110
+ - cloudflare
111
+ Cf-Ray:
112
+ - 6710c9a018fe3db2-HKG
113
+ Alt-Svc:
114
+ - h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443";
115
+ ma=86400
116
+ body:
117
+ encoding: ASCII-8BIT
118
+ string: '{"error":"Missing parameter vs_currency"}'
119
+ recorded_at: Mon, 19 Jul 2021 03:15:50 GMT
120
+ - request:
121
+ method: get
122
+ uri: https://api.coingecko.com/api/v3/coins/markets?ids=bitcoin
123
+ body:
124
+ encoding: US-ASCII
125
+ string: ''
126
+ headers:
127
+ Accept-Encoding:
128
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
129
+ Accept:
130
+ - "*/*"
131
+ User-Agent:
132
+ - Ruby
133
+ response:
134
+ status:
135
+ code: 422
136
+ message: Unprocessable Entity
137
+ headers:
138
+ Date:
139
+ - Mon, 19 Jul 2021 03:24:41 GMT
140
+ Content-Type:
141
+ - application/json; charset=utf-8
142
+ Transfer-Encoding:
143
+ - chunked
144
+ Connection:
145
+ - keep-alive
146
+ Vary:
147
+ - Accept-Encoding, Origin
148
+ Cache-Control:
149
+ - no-cache
150
+ X-Request-Id:
151
+ - 12bb8965-3885-4044-8895-b0c2f48f16d8
152
+ X-Runtime:
153
+ - '0.002410'
154
+ Cf-Cache-Status:
155
+ - MISS
156
+ Expect-Ct:
157
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
158
+ Server:
159
+ - cloudflare
160
+ Cf-Ray:
161
+ - 6710d6961c18d1fb-HKG
162
+ Alt-Svc:
163
+ - h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443";
164
+ ma=86400
165
+ body:
166
+ encoding: ASCII-8BIT
167
+ string: '{"error":"Missing parameter vs_currency"}'
168
+ recorded_at: Mon, 19 Jul 2021 03:24:41 GMT
169
+ recorded_with: VCR 6.0.0
@@ -0,0 +1,120 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.coingecko.com/api/v3/coins/markets?ids=bitcoin&vs_currency=myr
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ Host:
17
+ - api.coingecko.com
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Date:
24
+ - Sat, 15 May 2021 16:01:06 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Cache-Control:
32
+ - public, max-age=30
33
+ Access-Control-Allow-Origin:
34
+ - "*"
35
+ Access-Control-Allow-Methods:
36
+ - POST, PUT, DELETE, GET, OPTIONS
37
+ Access-Control-Request-Method:
38
+ - "*"
39
+ Access-Control-Allow-Headers:
40
+ - Origin, X-Requested-With, Content-Type, Accept, Authorization
41
+ Access-Control-Expose-Headers:
42
+ - link, per-page, total
43
+ Vary:
44
+ - Accept-Encoding, Origin
45
+ Etag:
46
+ - W/"397c179e13fba31d416cfba34cb9160e"
47
+ X-Request-Id:
48
+ - 0206bd10-f000-4a55-a416-a3950e9e5f03
49
+ X-Runtime:
50
+ - '0.146356'
51
+ Alternate-Protocol:
52
+ - 443:npn-spdy/2
53
+ Cf-Cache-Status:
54
+ - MISS
55
+ Expires:
56
+ - Sat, 15 May 2021 16:01:36 GMT
57
+ Cf-Request-Id:
58
+ - 0a125b98850000d1db3d3fa000000001
59
+ Expect-Ct:
60
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
61
+ Server:
62
+ - cloudflare
63
+ Cf-Ray:
64
+ - 64fd953a6afed1db-HKG
65
+ Alt-Svc:
66
+ - h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
67
+ body:
68
+ encoding: ASCII-8BIT
69
+ string: '[{"id":"bitcoin","symbol":"btc","name":"Bitcoin","image":"https://assets.coingecko.com/coins/images/1/large/bitcoin.png?1547033579","current_price":202369,"market_cap":3786489203349,"market_cap_rank":1,"fully_diluted_valuation":4249745683147,"total_volume":254459451496,"high_24h":211637,"low_24h":198102,"price_change_24h":-9268.24442892,"price_change_percentage_24h":-4.37931,"market_cap_change_24h":-169646451000.5254,"market_cap_change_percentage_24h":-4.28819,"circulating_supply":18710831.0,"total_supply":21000000.0,"max_supply":21000000.0,"ath":267546,"ath_change_percentage":-24.36119,"ath_date":"2021-04-14T11:54:46.763Z","atl":211.18,"atl_change_percentage":95729.47023,"atl_date":"2013-07-05T00:00:00.000Z","roi":null,"last_updated":"2021-05-15T15:59:43.867Z"}]'
70
+ recorded_at: Sat, 15 May 2021 16:01:06 GMT
71
+ - request:
72
+ method: get
73
+ uri: https://api.coingecko.com/api/v3/coins/markets
74
+ body:
75
+ encoding: US-ASCII
76
+ string: ''
77
+ headers:
78
+ Accept-Encoding:
79
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
80
+ Accept:
81
+ - "*/*"
82
+ User-Agent:
83
+ - Ruby
84
+ response:
85
+ status:
86
+ code: 422
87
+ message: Unprocessable Entity
88
+ headers:
89
+ Date:
90
+ - Mon, 19 Jul 2021 03:15:51 GMT
91
+ Content-Type:
92
+ - application/json; charset=utf-8
93
+ Transfer-Encoding:
94
+ - chunked
95
+ Connection:
96
+ - keep-alive
97
+ Vary:
98
+ - Accept-Encoding, Origin
99
+ Cache-Control:
100
+ - no-cache
101
+ X-Request-Id:
102
+ - dbf0f8bd-5d59-44f5-8530-44cf1f243b3a
103
+ X-Runtime:
104
+ - '0.003546'
105
+ Cf-Cache-Status:
106
+ - MISS
107
+ Expect-Ct:
108
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
109
+ Server:
110
+ - cloudflare
111
+ Cf-Ray:
112
+ - 6710c9a2bb693ca6-HKG
113
+ Alt-Svc:
114
+ - h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443";
115
+ ma=86400
116
+ body:
117
+ encoding: ASCII-8BIT
118
+ string: '{"error":"Missing parameter vs_currency"}'
119
+ recorded_at: Mon, 19 Jul 2021 03:15:51 GMT
120
+ recorded_with: VCR 6.0.0
@@ -0,0 +1,120 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.coingecko.com/api/v3/coins/markets?ids=bitcoin,%20ethereum&vs_currency=eth
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ Host:
17
+ - api.coingecko.com
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Date:
24
+ - Sat, 15 May 2021 16:01:06 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Cache-Control:
32
+ - public, max-age=30
33
+ Access-Control-Allow-Origin:
34
+ - "*"
35
+ Access-Control-Allow-Methods:
36
+ - POST, PUT, DELETE, GET, OPTIONS
37
+ Access-Control-Request-Method:
38
+ - "*"
39
+ Access-Control-Allow-Headers:
40
+ - Origin, X-Requested-With, Content-Type, Accept, Authorization
41
+ Access-Control-Expose-Headers:
42
+ - link, per-page, total
43
+ Vary:
44
+ - Accept-Encoding, Origin
45
+ Etag:
46
+ - W/"14e4fb42bcf2e7c52b5d481734de7a97"
47
+ X-Request-Id:
48
+ - 0c49b90e-7789-4804-907a-3aaf5645e52f
49
+ X-Runtime:
50
+ - '0.030207'
51
+ Alternate-Protocol:
52
+ - 443:npn-spdy/2
53
+ Cf-Cache-Status:
54
+ - MISS
55
+ Expires:
56
+ - Sat, 15 May 2021 16:01:36 GMT
57
+ Cf-Request-Id:
58
+ - 0a125b9b990000225476a9c000000001
59
+ Expect-Ct:
60
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
61
+ Server:
62
+ - cloudflare
63
+ Cf-Ray:
64
+ - 64fd953f5cdf2254-HKG
65
+ Alt-Svc:
66
+ - h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
67
+ body:
68
+ encoding: ASCII-8BIT
69
+ string: '[{"id":"bitcoin","symbol":"btc","name":"Bitcoin","image":"https://assets.coingecko.com/coins/images/1/large/bitcoin.png?1547033579","current_price":12.666344,"market_cap":236997829,"market_cap_rank":1,"fully_diluted_valuation":265993232,"total_volume":15926716,"high_24h":12.700516,"low_24h":12.149998,"price_change_24h":0.3015473,"price_change_percentage_24h":2.43876,"market_cap_change_24h":5224372,"market_cap_change_percentage_24h":2.25409,"circulating_supply":18710831.0,"total_supply":21000000.0,"max_supply":21000000.0,"ath":624.203,"ath_change_percentage":-97.9708,"ath_date":"2015-10-20T00:00:00.000Z","atl":6.779735,"atl_change_percentage":86.82655,"atl_date":"2017-06-12T00:00:00.000Z","roi":null,"last_updated":"2021-05-15T15:59:43.867Z"},{"id":"ethereum","symbol":"eth","name":"Ethereum","image":"https://assets.coingecko.com/coins/images/279/large/ethereum.png?1595348880","current_price":1.0,"market_cap":115885506,"market_cap_rank":2,"fully_diluted_valuation":null,"total_volume":15170345,"high_24h":1.0,"low_24h":1.0,"price_change_24h":0.0,"price_change_percentage_24h":0.0,"market_cap_change_24h":13415,"market_cap_change_percentage_24h":0.01158,"circulating_supply":115885505.624,"total_supply":null,"max_supply":null,"ath":1.003981,"ath_change_percentage":-0.39652,"ath_date":"2019-10-15T16:26:30.106Z","atl":0.99987722,"atl_change_percentage":0.01228,"atl_date":"2019-10-22T00:00:00.000Z","roi":{"times":104.8161668423025,"currency":"btc","percentage":10481.61668423025},"last_updated":"2021-05-15T15:59:59.730Z"}]'
70
+ recorded_at: Sat, 15 May 2021 16:01:06 GMT
71
+ - request:
72
+ method: get
73
+ uri: https://api.coingecko.com/api/v3/coins/markets
74
+ body:
75
+ encoding: US-ASCII
76
+ string: ''
77
+ headers:
78
+ Accept-Encoding:
79
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
80
+ Accept:
81
+ - "*/*"
82
+ User-Agent:
83
+ - Ruby
84
+ response:
85
+ status:
86
+ code: 422
87
+ message: Unprocessable Entity
88
+ headers:
89
+ Date:
90
+ - Mon, 19 Jul 2021 03:15:50 GMT
91
+ Content-Type:
92
+ - application/json; charset=utf-8
93
+ Transfer-Encoding:
94
+ - chunked
95
+ Connection:
96
+ - keep-alive
97
+ Vary:
98
+ - Accept-Encoding, Origin
99
+ Cache-Control:
100
+ - no-cache
101
+ X-Request-Id:
102
+ - a7cbef40-531f-48e6-b55c-e4bc770553e3
103
+ X-Runtime:
104
+ - '0.002199'
105
+ Cf-Cache-Status:
106
+ - MISS
107
+ Expect-Ct:
108
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
109
+ Server:
110
+ - cloudflare
111
+ Cf-Ray:
112
+ - 6710c99dba603dc4-HKG
113
+ Alt-Svc:
114
+ - h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443";
115
+ ma=86400
116
+ body:
117
+ encoding: ASCII-8BIT
118
+ string: '{"error":"Missing parameter vs_currency"}'
119
+ recorded_at: Mon, 19 Jul 2021 03:15:50 GMT
120
+ recorded_with: VCR 6.0.0