First, you will need to fetch the expiry list for a particular product. The only parameter is the product hash. The product differentiates call and put using an isPut attribute.
constexpiries=awaitapis.expiry("0x...");
Then you can fetch vTokens for specific expiry under certain products.
constvTokens=awaitapis.vTokens("0x....",// Product Hash1655105845,// Expiry address,// Addresses Objectfalse,// With Statisticstrue,// With Markettrue,// With Greek Figures);
List Ask/Bid Orders
Queries the ask or bid orders in the order book.
constorders=awaitapis.orderBook("0x....",// VToken AddressSide.Ask // Enum imported from the library, Ask or Bid);
List Long Positions
Queries all long positions in a specific wallet address. Filtered with expired, redeemed.