Skip to content

Where Tradepit keeps your API key and how to revoke a key on the exchange

Where Tradepit keeps your exchange API key, whether the key leaves your browser, when it is erased, and how to delete it in Tradepit and revoke it on the exchange.

Updated

Where the key is kept

Keys stay only in your browser. The API key and the secret are kept in the browser’s built-in storage on this computer and never reach the Tradepit server.

A key is added after you log in. Open “Account”, section “API keys”. The key is kept in this browser under your account, and another account in the same browser does not see it.

In another browser, browser profile or device the key is added again.

If the browser does not let the key be stored, for example in a private window, the key works until the tab is closed. The “API keys” section says so.

The way from signing up to the first order is in the “Getting started” guide.

The secret and the passphrase

The secret becomes a signing key that cannot be read back. The text of the secret is not in the browser’s storage. Every request to the exchange is signed here, in the browser.

The signing key cannot be read, but it can sign a request. That is how Tradepit sends orders to the exchange. So what the key can do on the exchange is set by its rights, see “Which permissions to give the key”.

Tradepit keeps the passphrase encrypted. The encryption key cannot be read back either, but Tradepit decrypts the passphrase itself for requests to the exchange, because the exchange checks it in the request. The “Passphrase” field appears in the key form only for exchanges that ask for one.

The API key itself is kept as it is, the exchange sees it in every request. In the list of keys Tradepit shows only its last 4 characters.

Where the key goes

Tradepit works with the exchange directly, through your API key. An order from Tradepit goes straight to the exchange.

Some exchanges need the Exchange Bridge extension for Chrome. It runs on your computer, calls only the API addresses of exchanges and stores nothing.

The key, the secret and the passphrase do not go to the Tradepit server.

When the key is erased from the browser

When you sign out, the keys are erased from this browser.

Keys are also erased when another person signs in on this browser and when the site has not been opened for 7 days. Clearing the site’s data in the browser deletes the keys too.

Changing the password ends the sessions in other browsers. The keys there are erased as soon as that browser gets in touch with Tradepit again.

When a session simply expires, the key stays, just log in again. Until you log in, the key signs nothing.

In every one of these cases positions and orders stay on the exchange.

Which permissions to give the key

Give a key for Tradepit only the rights to read and to trade, with withdrawals and transfers turned off.

If the exchange says the key can withdraw, Tradepit does not keep it and says “This key allows withdrawals, so it was not kept.” If the withdrawal right is turned on later, Tradepit erases the key from the browser at the next check.

Binance does not tell a browser the rights of the key itself, so for a Binance key Tradepit does not see the withdrawal right. The same happens on other exchanges when the exchange did not answer which rights the key has. So turn withdrawals off on the exchange yourself.

How to delete a key in Tradepit

  1. Open “Account”, section “API keys”.
  2. In the key’s row press “Delete”. Tradepit shows which trading windows the key will be taken off.
  3. Press “Remove” to confirm.

The key is removed from this browser and taken off every trading window. Nothing changes on the exchange, positions and orders stay there.

On the exchange itself the key stays active, it can only be revoked on the exchange.

A key added in several browsers is deleted in each of them separately. Revoking it on the exchange turns it off everywhere.

How to revoke a key on the exchange

A key deleted on the exchange no longer works anywhere, in Tradepit or in any other app. Revoke a key when you stop using it, when the key or the secret may have reached someone else, or when you lose a device it was added on.

ExchangeWhere to delete the key
BinanceKeys are in the API Management section, by the path Profile → Account → API Management. Find the key by its name and delete it.
BybitOn the website only, the app does not delete keys. Click your username in the top right corner, then Account & Security and the API Management tab. In the Action column click Delete and confirm with Confirm.
OKXOpen Profile → API, click the key and choose Delete.
BitgetOpen Personal Center → API Management. There a key can be viewed, edited and deleted.
KuCoinOn the website, from a computer, click your avatar and choose API Management, then delete the key there.

The menu names come from the exchanges’ help in English and may differ in other languages of the interface.

Then delete the key in Tradepit too, as above. Never send your key or secret to anyone, us included.