Skip to content

Commit

Permalink
Update toncoin-price extension (#15622)
Browse files Browse the repository at this point in the history
* update Bybit API URL

* Update CHANGELOG.md
  • Loading branch information
uqe authored Dec 2, 2024
1 parent ae09e00 commit a7dabb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions extensions/toncoin-price/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Toncoin Price Changelog

## [Small Improvements] - 2024-12-01

- Updated Bybit API URL

## [Small Improvements] - 2024-07-29

- Added MEXC Spot link to the menu bar
Expand Down
2 changes: 1 addition & 1 deletion extensions/toncoin-price/src/sources/useBybit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BybitResponse } from "@/types";
import { useFetch } from "@raycast/utils";

export const useBybit = () => {
const url = `https://api.bybit.com/derivatives/v3/public/tickers?symbol=TONUSDT`;
const url = `https://api.bybit.com/v5/market/tickers?category=spot&symbol=TONUSDT`;
const { isLoading, data, error } = useFetch<unknown, unknown, BybitResponse>(url, { keepPreviousData: true });

if (isLoading) {
Expand Down

0 comments on commit a7dabb0

Please sign in to comment.