Skip to main content

API General

What is an API?

API stands for Application Programming Interface and it is a program that enables one software to interact with the other. The API is a messenger taking requests and telling a system what the user wants it to do then returns the response back to the user. APIs are used extensively in providing data services across a range of fields and contexts.

How is API used in Tealstreet?

API in trading enables you to interact with the trading system. To be more specific, it allows you to interact directly with your favorite exchange. Connecting your API with tealstreet enables you to directly connect with the exchange. You can display your get wallet balance, place trades and manage your positions.

How do I connect my API to Tealstreet?

Connecting your API to tealstreet is the same process for every exchange offered.

  1. Click the blue button labeled 'New API Key'

addingapi

  1. Choose the exchange your want to connect to from the dropdown menu.

dropdown

  1. Generate the API key on the exchange you selected and paste it on tealstreet to connect it.

For exchange specific tutorials on obtaining your API keys, follow the following links:

  1. After your create your API key you need to whitelist certain IP addresses. Head over to the Tealstreet window where you set the API keys and copy the whitelisted IP(s) and paste them on the exchange website.

IP WhiteList Tealstreet

note

You can whitelist multiple IP(s)

  1. You can give your API a nickname.
tip

Choose whatever nickname you like! This is useful for traders who use multiple accounts and want to keep track.

name

  1. After choosing a nickname for your API key its time to setup an Encryption Password. You can read more about this security feature in the API Encryption seciton.

Encryption

  1. Once you have filled in all the required information and pasted the Key and Secret from the exchange website you can click the 'Create' button. Its a good idea to double check you've copied the API and Secret correctly or else the accounts will not be linked and you cannot trade until its correct!
caution

IP Whitelisting and having an Encryption Password is mandatory to save your API.

  1. You should now see your exchange API listed as an API Key. Click trade to check the connection.

trade

  1. Choose your exchange API Key from the dropdown menu as seen below. Your trading / wallet balance should load after a few seconds if there is a proper connection. Click the Star to add the API Key to your favorites list so you can easily navigate to it.

apidropdown