@@ -100,7 +100,7 @@ export class HermesClient {
100
100
query ?: string ;
101
101
filter ?: string ;
102
102
} ) : Promise < PriceFeedMetadata [ ] > {
103
- const url = new URL ( "/ v2/price_feeds" , this . baseURL ) ;
103
+ const url = new URL ( "v2/price_feeds" , this . baseURL ) ;
104
104
if ( options ) {
105
105
this . appendUrlSearchParams ( url , options ) ;
106
106
}
@@ -129,7 +129,7 @@ export class HermesClient {
129
129
parsed ?: boolean ;
130
130
}
131
131
) : Promise < PriceUpdate > {
132
- const url = new URL ( `${ this . baseURL } / v2/updates/price/latest` ) ;
132
+ const url = new URL ( `v2/updates/price/latest` , this . baseURL ) ;
133
133
for ( const id of ids ) {
134
134
url . searchParams . append ( "ids[]" , id ) ;
135
135
}
@@ -162,7 +162,7 @@ export class HermesClient {
162
162
parsed ?: boolean ;
163
163
}
164
164
) : Promise < PriceUpdate > {
165
- const url = new URL ( `${ this . baseURL } / v2/updates/price/${ publishTime } ` ) ;
165
+ const url = new URL ( `v2/updates/price/${ publishTime } ` , this . baseURL ) ;
166
166
for ( const id of ids ) {
167
167
url . searchParams . append ( "ids[]" , id ) ;
168
168
}
@@ -198,7 +198,7 @@ export class HermesClient {
198
198
benchmarksOnly ?: boolean ;
199
199
}
200
200
) : Promise < EventSource > {
201
- const url = new URL ( "/ v2/updates/price/stream" , this . baseURL ) ;
201
+ const url = new URL ( "v2/updates/price/stream" , this . baseURL ) ;
202
202
ids . forEach ( ( id ) => {
203
203
url . searchParams . append ( "ids[]" , id ) ;
204
204
} ) ;
0 commit comments