Skip to content

Commit

Permalink
include funciton
Browse files Browse the repository at this point in the history
  • Loading branch information
racso2609 committed Apr 26, 2024
1 parent c16649b commit 8ca144d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/pyth/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import { AxiosInstance } from 'axios';
import { PythConfig } from '../interfaces/classConfigs';
import { getLatestPricesFromPyth, getPythClient, getVaaPriceUpdateData, normalizePythPriceForParifi } from './pyth';
import {
getLatestPricesFromPyth,
getLatestPricesNormalized,
getPythClient,
getVaaPriceUpdateData,
normalizePythPriceForParifi,
} from './pyth';
import { getPriceIdsForCollaterals } from '../common';

export class Pyth {
Expand Down Expand Up @@ -31,6 +37,10 @@ export class Pyth {
return await getLatestPricesFromPyth(priceIds, this.pythClient);
}

public async getLatestPricesNormalized(priceIds: string[]) {
return await getLatestPricesNormalized(priceIds, this.pythClient);
}

public getPriceIdsForCollaterals() {
return getPriceIdsForCollaterals(true);
}
Expand Down

0 comments on commit 8ca144d

Please sign in to comment.