diff --git a/indexer/services/socks/__tests__/lib/subscriptions.test.ts b/indexer/services/socks/__tests__/lib/subscriptions.test.ts index 5a375d7cc6..95946f6e7b 100644 --- a/indexer/services/socks/__tests__/lib/subscriptions.test.ts +++ b/indexer/services/socks/__tests__/lib/subscriptions.test.ts @@ -51,7 +51,7 @@ describe('Subscriptions', () => { const initialResponseUrlPatterns: Record = { [Channel.V4_ACCOUNTS]: [ '/v4/addresses/.+/subaccountNumber/.+', - '/v4/orders?.+OPEN,UNTRIGGERED,BEST_EFFORT_OPENED', + '/v4/orders?.+subaccountNumber.+OPEN,UNTRIGGERED,BEST_EFFORT_OPENED', ], [Channel.V4_CANDLES]: ['/v4/candles/perpetualMarkets/.+?resolution=.+'], [Channel.V4_MARKETS]: ['/v4/perpetualMarkets'], @@ -59,7 +59,7 @@ describe('Subscriptions', () => { [Channel.V4_TRADES]: ['/v4/trades/perpetualMarket/.+'], [Channel.V4_PARENT_ACCOUNTS]: [ '/v4/addresses/.+/parentSubaccountNumber/.+', - '/v4/orders/parentSubaccountNumber?.+OPEN,UNTRIGGERED,BEST_EFFORT_OPENED', + '/v4/orders/parentSubaccountNumber?.+parentSubaccountNumber.+OPEN,UNTRIGGERED,BEST_EFFORT_OPENED', ], }; const initialMessage: Object = { a: 'b' }; diff --git a/indexer/services/socks/src/lib/subscription.ts b/indexer/services/socks/src/lib/subscription.ts index a89c4261d5..dd8c8ba25b 100644 --- a/indexer/services/socks/src/lib/subscription.ts +++ b/indexer/services/socks/src/lib/subscription.ts @@ -602,7 +602,7 @@ export class Subscriptions { // TODO(DEC-1462): Use the /active-orders endpoint once it's added. axiosRequest({ method: RequestMethod.GET, - url: `${COMLINK_URL}/v4/orders/parentSubaccountNumber?address=${address}&subaccountNumber=${subaccountNumber}&status=OPEN,UNTRIGGERED,BEST_EFFORT_OPENED`, + url: `${COMLINK_URL}/v4/orders/parentSubaccountNumber?address=${address}&parentSubaccountNumber=${subaccountNumber}&status=OPEN,UNTRIGGERED,BEST_EFFORT_OPENED`, timeout: config.INITIAL_GET_TIMEOUT_MS, headers: { 'cf-ipcountry': country,