4. Go live
In short. You connect your Polymarket account to the app, test it with real orders of the minimum size, and then turn on trading. Do the steps once, in order. Until the last step, the app cannot place a real order outside the test.Until now the app ran with
LIVE_TRADING=false and no account. This page adds a Session Key:
a key that can trade for your account but is not the account’s main (owner) key. Every
setting named here is explained in configuration.md.
Before you start
You need:- Pages 1, 2 and 3 done, with a passed restore test.
- Your owner machine: the computer that holds the owner key of your Polymarket account. It is never the server.
- To be in a location where Polymarket permits you to trade.
sesame.env. A person who gets the owner
key controls all the money in the account.
Step 1. Run the security checklist
Do the security checklist on the server.- Do checks S1 to S9. Record the date, the release tag and the output of each check.
- Do check S10.
Step 2. Create the Session Key
Follow Session Key setup, sections 1 and 2.- Create the key pair on the server, so the private key never leaves it.
- Authorise it from your owner machine.
- To use Combos, give the key the combos scope too (section 8).
Step 3. Add the account settings
CAUTION: Cancel every open order on polymarket.com before you do this step. At its first start with the key, the app takes every open order as its own (live verification, PF3).-
On the server, open the settings file:
-
Add these three lines, with your values:
-
Add the eight
RISK_CEILING_*lines with the test values from live verification, section 1.1. The app reads the ceilings only when it starts. -
Make sure that the file still has
LIVE_TRADING=false. - Save and close the file.
-
On your computer, in the repository folder, restart the app:
Enter the security key’s PIN and touch it, or type the passphrase. The command ends with a list of the two containers,
sesame-sesame-1andsesame-caddy-1.
Step 4. Check the credential state
- Log in to the app and open Settings.
- In Account, find Credentials. It shows Connected.
- Make sure that Signer address (Session Key) is the address of the key you created in Step 2. It must not be the owner address.
- Make sure that Wallet address (Deposit Wallet) is your Deposit Wallet address.
-
On your computer, read the app’s log:
Find the line with
baseline orders adopted. It shows"orders":0.
Step 5. Run the live verification
The live verification places real orders of the minimum size and checks each result. It needsLIVE_TRADING=true, with the low test ceilings
from Step 3.
-
On the server, open the settings file:
-
Change the
LIVE_TRADINGline to: -
On your computer, restart the app:
- Do the live verification from its section 1 to its section 6. Use minimum sizes only.
If a step fails, stop and do
section 3 of the runbook. It turns
trading off again.
Step 6. Turn on live trading
Do this step only when every step of the live verification passed.- In the app, press Cancel all. Make sure that polymarket.com shows no open order from the test.
- Set the switch to Safe.
-
On the server, open the settings file:
-
Change the eight
RISK_CEILING_*lines to the values you want for normal trading. To use the defaults, delete the lines. -
Make sure that the file has
LIVE_TRADING=true. -
On your computer, restart the app:
- In the app, raise your risk limits one at a time (Change a risk limit). Each raise asks for your login password. A limit cannot go above its ceiling.
- Set your stake presets last (Change your stake presets). A preset cannot be above the maximum order notional.
Is it working?
If trading stays off, see
The app runs but trading stays off.
The Session Key expires 180 days after you authorise it. Write down the date. From 14 days
before it, Settings, then Account shows Session Key expiry. Replace the key before
it expires (Rotation).
Previous: 3. Backups · Next: Day to day