Environments
The Synthetix API currently provides a mainnet environment for production trading.
Mainnet
Live trading with real assets on Ethereum Mainnet.Endpoints
| Type | URL |
|---|---|
| REST API | https://papi.synthetix.io/v1/trade (authenticated) |
| REST Info | https://papi.synthetix.io/v1/info (public) |
| WebSocket Trade | wss://papi.synthetix.io/v1/ws/trade (authenticated) |
| WebSocket Info | wss://papi.synthetix.io/v1/ws/info (public) |
| WebSocket Subscriptions | wss://papi.synthetix.io/v1/ws/subscriptions (authenticated) |
Blockchain
| Property | Value |
|---|---|
| Network | Ethereum Mainnet |
| Chain ID | 1 |
EIP-712 Domain
const domain = {
name: "Synthetix",
version: "1",
chainId: 1,
verifyingContract: "0x0000000000000000000000000000000000000000"
};Configuration Example
const config = {
// REST
tradeUrl: 'https://papi.synthetix.io/v1/trade',
infoUrl: 'https://papi.synthetix.io/v1/info',
// WebSocket
wsTradeUrl: 'wss://papi.synthetix.io/v1/ws/trade',
wsInfoUrl: 'wss://papi.synthetix.io/v1/ws/info',
wsSubscriptionsUrl: 'wss://papi.synthetix.io/v1/ws/subscriptions',
// EIP-712
domain: {
name: "Synthetix",
version: "1",
chainId: 1,
verifyingContract: "0x0000000000000000000000000000000000000000"
}
};Testnet
Testnet environment is currently in development.
Next Steps
- Getting Started - Quick start with code examples
- Authentication - EIP-712 signing
- REST API - REST endpoint reference
- WebSocket API - Real-time data streaming