@@ 90-96 (lines=7) @@ | ||
87 | * @return array |
|
88 | * @throws Exception |
|
89 | */ |
|
90 | public function getMarketChartRange(string $id, string $vsCurrency, string $from, string $to): array |
|
91 | { |
|
92 | $params['vs_currency'] = $vsCurrency; |
|
93 | $params['from'] = $from; |
|
94 | $params['to'] = $to; |
|
95 | return $this->get('/coins/' . $id . '/market_chart/range', $params); |
|
96 | } |
|
97 | ||
98 | /** |
|
99 | * @param string $id |
@@ 46-57 (lines=12) @@ | ||
43 | * @return array |
|
44 | * @throws Exception |
|
45 | */ |
|
46 | public function getMarketChartRange( |
|
47 | string $id, |
|
48 | string $contractAddress, |
|
49 | string $vsCurrency, |
|
50 | string $from, |
|
51 | string $to |
|
52 | ): array { |
|
53 | $params['vs_currency'] = $vsCurrency; |
|
54 | $params['from'] = $from; |
|
55 | $params['to'] = $to; |
|
56 | return $this->get('/coins/' . $id . '/contract/' . $contractAddress . '/market_chart/range', $params); |
|
57 | } |
|
58 | } |
|
59 |