Generating API Key
- Visit sx.bet and register or log in to your account. You can connect your MetaMask wallet, or log in 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. Only one key can be active at a time.
Usage
x-sx-api-key header. The
example above fetches a realtime token used to authenticate WebSocket connections. See
Initialization.
Once your API key is generated, add it as an HTTP header named x-sx-api-key on every authenticated
request.