This commit is contained in:
Arihant Bansal
2025-01-05 00:40:27 +05:30
6 changed files with 146 additions and 147 deletions

View File

@@ -1,5 +1,5 @@
export * from "./adrena_perp_trading";
export * from "./batch_order";
// export * from "./batch_order";
export * from "./cancel_all_orders";
export * from "./create_gibwork_task";
export * from "./create_image";
@@ -20,7 +20,7 @@ export * from "./get_tps";
export * from "./get_wallet_address";
export * from "./launch_pumpfun_token";
export * from "./lend";
export * from "./limit_order";
// export * from "./limit_order";
export * from "./manifest_create_market";
export * from "./mint_nft";
export * from "./openbook_create_market";

View File

@@ -11,9 +11,9 @@ export async function fetchPythPriceFeedID(
): Promise<string> {
try {
const stableHermesServiceUrl: string = "https://hermes.pyth.network";
const response = await fetch(
`${stableHermesServiceUrl}/v2/price_feeds/?query=${tokenSymbol}&asset_type=crypto`,
`${stableHermesServiceUrl}/v2/price_feeds?query=${tokenSymbol}&asset_type=crypto`,
);
if (!response.ok) {
@@ -60,7 +60,7 @@ export async function fetchPythPrice(feedID: string): Promise<string> {
const stableHermesServiceUrl: string = "https://hermes.pyth.network";
const response = await fetch(
`${stableHermesServiceUrl}/v2/updates/price/latest/?ids[]=${feedID}`,
`${stableHermesServiceUrl}/v2/updates/price/latest?ids[]=${feedID}`,
);
const data = await response.json();