Skip to main content

Lighter


lighter-logolighter-logo

Connecting Lighter to Tealstreet

  • Log into your Tealstreet account.

  • Click the 'Settings' button near the top right corner of the terminal.

Adding API
  • Click the 'Add new key' button at the bottom of the settings page.
TS Dropdown
  • Choose Lighter from the exchange selection menu.
Exchange Selection

Okay lets go back to our Lighter account and create the API Key.


Creating the key

  • Now we are ready to generate the API Key. Head on over to Lighter and:

    • Login or connect your wallet when the window pops up
      • If a window did not automatically pop up click the connect button at the top right of the page
note

Lighter's main website may be unavailable in restricted jurisdictions. If you cannot access it, review Lighter's Terms and regional availability requirements before continuing.

Wallet Connect
Wallet Connect 2
  • For this guide we will be using the Rabby wallet.
Wallet Connect 3
  • Once you are connected to your wallet, navigate to the API Key page by clicking the Tools button at the top and choosing API Keys from the dropdown menu.
API Dropdown
  • Click the Generate API Key button to begin the process.
Authorize Wallet 2
  • At the time of this writing there is no IP Whitelist option.
  • Input an API Key Index and click the Generate button.
    • Keys 0 through 3 are usually used by Lighter. So you should start with index 4 and up.
Authorize Wallet
  • Securely store the API Key information.
  • When done close the window and return to Tealstreet.

Connecting the key to Tealstreet

Now let us proceed back to where we left the Tealstreet API page:

Api Creation2
  • Proceed to fill out the form with the information from your Lighter API key setup:
    • Name: Enter any label you want (for example, lighter-01).
    • Color: Choose the color you want this account to use in the terminal.
    • Use Tealstreet WebSocket Route: Keep this enabled for Tealstreet's optimized WebSocket routing unless you have excellent internet and are not in a restricted jurisdiction.
    • Account Index: Enter your Lighter account index (the L1 wallet address you made the API Keys with).
    • API Key Index: Enter the numeric index of the API key you created.
    • Public Key: Paste the public key exactly as shown in Lighter.
    • Private Key: Paste the private key exactly as shown in Lighter.
    • Click Done.
caution

Never share your API Keys with anyone. Tealstreet team members will never ask you what your API key is.

info

Double check Account Index, API Key Index, Public Key, and Private Key before saving. Any mismatch in these values will prevent your Lighter account from connecting to Tealstreet.

If all the details are correct, you will have successfully linked your Lighter account to Tealstreet.

  • Close options and navigate to the Main Trading page of the Tealstreet terminal and select the Lighter account you just linked to enable it.
    • If properly linked, you will see your balance appear in the Margin window of Tealstreet. Happy trading!!!