Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/market_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const coingecko = async (args) => {
return cached
}

const url = 'https://api.coingecko.com/api/v3/simple/price?' + new URLSearchParams(args)
const url = 'https://api.coingecko.com/api/v3/simple/price?' + new URLSearchParams({ids: args.ids, vs_currencies: "usd"} )
Copy link

Copilot AI Oct 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing closing parenthesis in URLSearchParams constructor call. The line should end with }) instead of } ).

Suggested change
const url = 'https://api.coingecko.com/api/v3/simple/price?' + new URLSearchParams({ids: args.ids, vs_currencies: "usd"} )
const url = 'https://api.coingecko.com/api/v3/simple/price?' + new URLSearchParams({ids: args.ids, vs_currencies: "usd"})

Copilot uses AI. Check for mistakes.
const response = await fetch(url, { headers: { "accept": "application/json" } })
const data = await response.json()
if (!response.ok) {
Expand Down
Loading