Generating API Key
- Visit sx.bet and register/login to your account. You can connect your MetaMask wallet, or login using your Fortmatic email address.
- If using MetaMask,
signthe Signature Request. - Click the
Accounttab on the top navigation bar. - Click the
Overviewtab on the account navigation bar. - You will see an
API Credentialscard. ClickGENERATE API KEY NOW. An API Key will be displayed. - The API Key generated will not be displayed again, so please copy and save this key for future use.
If you lose your key, you can generate a new one by following the same steps. Any previous keys used will be unauthorized if you generate a new key.
Usage
X-Api-Key header. The above fetches a realtime token used to authenticate WebSocket connections.
Once your API Key is generated (see above), you must add it as a HTTP Header with the name: X-Api-Key.