Skip to content

Commit da5cc46

Browse files
committed
cmc endpoint
1 parent 0e49184 commit da5cc46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

assets_js_bitrequest_payments.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,7 @@ function get_cc_exchangerates(api_list, selected_api) {
10651065
const payment_currency = request.payment,
10661066
token_contract = request.token_contract,
10671067
is_erc20 = request.erc20 === true,
1068-
api_search_path = selected_api === "coinmarketcap" ? "v1/cryptocurrency/quotes/latest?id=" + request.cmcid :
1068+
api_search_path = selected_api === "coinmarketcap" ? "v2/cryptocurrency/quotes/latest?id=" + request.cmcid :
10691069
selected_api === "coinpaprika" ? request.currencysymbol + "-" + payment_currency :
10701070
selected_api === "coingecko" ? (is_erc20 ? "simple/token_price/ethereum?contract_addresses=" + token_contract + "&vs_currencies=usd" : "simple/price?ids=" + payment_currency + "&vs_currencies=usd") :
10711071
false;

0 commit comments

Comments
 (0)