Trading Session
Last updated
Last updated
Session is a unique concept of a user session account that is saved on the blockchain on the market taker and market maker side. The session allows you to achieve low latency executions by storing a special key set (session account) in the browser or any other software that is responsible for trade execution. The session key also has a validity time.
After the user session account is assigned to the account holding transaction nominal on the blockchain, private key stored in the browser or in some other execution engine has the right to:
The session account on the market maker side is pushing trades to the blockchain for settlement, so it needs to hold enough tokens to cover gas costs.
This is an analogy to the regular centralised exchanges, banks, and Gmail accounts. In the case of these services, after login, we have access to certain functionality without the need of password re entrance (like executing trades on Binance or executing big FX trades on platforms like Bloomberg). User session account on the maker and taker side allows shortening the time between “market taker clicking the rate” to “market maker sending transaction to the blockchain for settlement” to milliseconds without a need to store private keys of the nominal holding accounts in the browser.
To create a session, you must first connect to your Metamask wallet and then follow the steps below.
Go to taker or maker website.
Connect to your wallet and click "Start session"
3. Choose validity time for your session or type in a custom value, then click "Start session".
4. Once you confirm the session in your metamask wallet, the page will reload, and you will be connected to your session account.
To get the details of your session, click on the underlined remaining validity time next to a blockchain name.
We recommend copying your session account details such as public and private key, and save it somewhere safe. You will be able to sign in to your session account from other devices.
When you open maker panel website and connect with your wallet on another device or browser, you will see "Session keys mismatch" alert. Your private session key is not available, so the alert appears.
To sign in to an existing session, open the session details and click "Manage session private key". Paste in your private session key, and you will be signed in to your account.
Open the session details and click the "Terminate session" button to end your session. The session will be terminated when you confirm the action in MetaMask wallet.