Authorization

Key to success

Nearly every request made on the lemon.markets API needs a valid access token in order to be authenticated and authorized.

Sign in on our dashboard, go to the Auth page and click on the "Create new Access Token" button. You have to link an access token to a strategy or therefore create a new strategy. Everything will be connected to a strategy once you use this access token. For instance, if you create an order, the order will be linked to the strategy connected with the access token. This is how we measure the performance of your strategy.

The access token needs to be put into the header of a request. The header parameter is named Authorization and the value consists of two parts: the static key description Token and your actual token. To sum up, the header looks like: Authorization: Token {YOUR_TOKEN_KEY}.

Never forget the Token word at the token value for the Authorization header. So you do not wonder why it is not working 😊