@pythnetwork/hermes-client
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -66,3 +66,3 @@ "use strict"; | ||
async getPriceFeeds(options) { | ||
const url = new URL("/v2/price_feeds", this.baseURL); | ||
const url = new URL("v2/price_feeds", this.baseURL); | ||
if (options) { | ||
@@ -86,3 +86,3 @@ this.appendUrlSearchParams(url, options); | ||
async getLatestPriceUpdates(ids, options) { | ||
const url = new URL(`${this.baseURL}/v2/updates/price/latest`); | ||
const url = new URL(`v2/updates/price/latest`, this.baseURL); | ||
for (const id of ids) { | ||
@@ -110,3 +110,3 @@ url.searchParams.append("ids[]", id); | ||
async getPriceUpdatesAtTimestamp(publishTime, ids, options) { | ||
const url = new URL(`${this.baseURL}/v2/updates/price/${publishTime}`); | ||
const url = new URL(`v2/updates/price/${publishTime}`, this.baseURL); | ||
for (const id of ids) { | ||
@@ -136,3 +136,3 @@ url.searchParams.append("ids[]", id); | ||
async getPriceUpdatesStream(ids, options) { | ||
const url = new URL("/v2/updates/price/stream", this.baseURL); | ||
const url = new URL("v2/updates/price/stream", this.baseURL); | ||
ids.forEach((id) => { | ||
@@ -139,0 +139,0 @@ url.searchParams.append("ids[]", id); |
{ | ||
"name": "@pythnetwork/hermes-client", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Pyth Hermes Client", | ||
@@ -60,3 +60,3 @@ "author": { | ||
}, | ||
"gitHead": "adf0b3ba67b4742ddb4d3ff01059cb891c7fea89" | ||
"gitHead": "dcf7a318e23ca38793d22b2adb7d4b902097f179" | ||
} |
207985