From 60af23e83e5fefedcbbf548948ed5b3e264be7af Mon Sep 17 00:00:00 2001 From: Jeff DeLonge Date: Mon, 14 Mar 2022 10:19:57 -0500 Subject: [PATCH] Include price account key as string --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index 855a060..815e106 100644 --- a/src/index.ts +++ b/src/index.ts @@ -59,6 +59,7 @@ export interface Product { asset_type: string quote_currency: string tenor: string + price_account: string [index: string]: string } @@ -195,6 +196,7 @@ export const parseProductData = (data: Buffer): ProductData => { const priceAccountBytes = data.slice(16, 48) const priceAccountKey = new PublicKey(priceAccountBytes) const product = {} as Product + product.price_account = priceAccountKey.toBase58() let idx = 48 while (idx < size) { const keyLength = data[idx]