getQuote function calculates a quote for a potential trade on the Exponent order book.
Usage
Parameters
QuoteDirection
TheQuoteDirection enum specifies the trade direction:
Getting the Unix Timestamp
Use the onchain clock for accurate timing. AvoidDate.now() as it may drift from the onchain clock:
Returns
Returns an object with:outAmount- Expected output amount in lamportsmakerFees- Total maker fees charged in lamportstakerFees- Total taker fees charged in lamports