WhaleAPI SDK
    Preparing search index...

    Class Config

    Configuration for LongPort sdk

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Create a new Config from the given environment variables

      It first gets the environment variables from the .env file in the current directory.

      Variables

      • LONGPORT_APP_KEY - App key
      • LONGPORT_APP_SECRET - App secret
      • LONGPORT_ACCESS_TOKEN - Access token
      • LONGPORT_HTTP_URL - HTTP endpoint url
      • LONGPORT_TRADE_WS_URL - Trade websocket endpoint url

      Returns Config