@rozoai/intent-common 0.1.25 → 0.1.26-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ApiResponse } from "./base";
|
|
2
|
-
export interface TokenPrice {
|
|
3
|
-
currency: string;
|
|
4
|
-
value: string;
|
|
5
|
-
lastUpdatedAt: string;
|
|
6
|
-
}
|
|
7
|
-
export interface TokenPriceEntry {
|
|
8
|
-
symbol: string;
|
|
9
|
-
prices: TokenPrice[];
|
|
10
|
-
source: string;
|
|
11
|
-
stale: boolean;
|
|
12
|
-
error: string | null;
|
|
13
|
-
}
|
|
14
|
-
export interface TokenPriceMeta {
|
|
15
|
-
quoteBufferBps: number;
|
|
16
|
-
priceMaxAgeMin: number;
|
|
17
|
-
}
|
|
18
|
-
export interface TokenPriceResponse {
|
|
19
|
-
data: TokenPriceEntry[];
|
|
20
|
-
meta: TokenPriceMeta;
|
|
21
|
-
}
|
|
22
|
-
export interface GetTokenPricesParams {
|
|
23
|
-
symbols?: string[];
|
|
24
|
-
}
|
|
25
|
-
export declare const getTokenPrices: (params?: GetTokenPricesParams) => Promise<ApiResponse<TokenPriceResponse>>;
|
package/dist/api/tokenPrices.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getTokenPrices = void 0;
|
|
4
|
-
const base_1 = require("./base");
|
|
5
|
-
const getTokenPrices = async (params = {}) => {
|
|
6
|
-
const { symbols } = params;
|
|
7
|
-
const query = symbols && symbols.length > 0 ? { symbols: symbols.join(",") } : undefined;
|
|
8
|
-
return base_1.apiClient.get("token-prices/tokens/by-symbol", {
|
|
9
|
-
params: query,
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
exports.getTokenPrices = getTokenPrices;
|
|
13
|
-
//# sourceMappingURL=tokenPrices.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tokenPrices.js","sourceRoot":"","sources":["../../src/api/tokenPrices.ts"],"names":[],"mappings":";;;AAAA,iCAAgD;AA8BzC,MAAM,cAAc,GAAG,KAAK,EACjC,SAA+B,EAAE,EACS,EAAE;IAC5C,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAC3B,MAAM,KAAK,GAAG,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IACzF,OAAO,gBAAS,CAAC,GAAG,CAAqB,+BAA+B,EAAE;QACxE,MAAM,EAAE,KAAK;KACd,CAAC,CAAC;AACL,CAAC,CAAC;AARW,QAAA,cAAc,kBAQzB"}
|