You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To trade on Polymarket via the API, you need your **Polygon Private Key**.
3
+
To trade on Polymarket via the API, you need your **Polygon Private Key**. If you are using a Polymarket Smart Wallet (Proxy), you will also need your **Proxy Address**.
4
4
5
-
## How to export your Private Key (MetaMask)
5
+
## 1. Exporting your Private Key (EOA)
6
6
7
-
1.**Open the Account Menu**
7
+
This is the private key of your "Signer" wallet (the one you use to log in to Polymarket).
8
+
9
+
1.**Open the Account Menu** in MetaMask.
8
10
Click the top-left icon (or account selector) to view your accounts.
9
11

10
12
11
-
2.**Open Account Options**
12
-
Click the three dots ("...") next to the account you want to use.
13
+
2.**Open Account Options** (...) next to the account you want to use.
13
14

14
15
15
-
3.**Access Account Details**
16
-
Select "Account Details".
16
+
3.**Select Account Details**.
17
17

18
18
19
-
4.**Reveal Private Key**
20
-
Click "Show Private Key" and unlock your wallet.
19
+
4.**Reveal Private Key** and unlock your wallet.
21
20

22
21
23
-
5.**Copy the Key**
24
-
Copy the private key string.
22
+
5.**Copy the Key**.
25
23

26
24
27
-
## Configuration
25
+
## 2. Finding your Proxy Address (Optional but Recommended)
26
+
27
+
Most modern Polymarket accounts use a "Smart Wallet" or Proxy to hold funds. While `pmxt` attempts to auto-discover this address, it is more reliable to provide it manually.
28
+
29
+
1. Go to [Polymarket.com](https://polymarket.com).
30
+
2. Hover over your profile in the top right.
31
+
3. Your **Proxy Address** is the address shown. It is the address starting with `0x`.
32
+
33
+
## 3. Configuration
28
34
29
-
Add the key to your `.env` file in the project root:
35
+
Add these to your `.env` file or pass them directly to the constructor. `pmxt` supports both numeric IDs and human-readable names:
30
36
31
37
```bash
32
38
POLYMARKET_PRIVATE_KEY=0x...
39
+
POLYMARKET_PROXY_ADDRESS=0x...
40
+
41
+
# Choose your account type:
42
+
# - 'gnosis_safe' (Modern accounts, recommended)
43
+
# - 'polyproxy' (Older accounts)
44
+
# - 'eoa' (Standard wallet, no proxy)
45
+
POLYMARKET_SIGNATURE_TYPE='gnosis_safe'
33
46
```
34
47
35
-
*Note: Ensure the key starts with `0x`. If it does not, prefix 0x manually.*
0 commit comments