Connect to wss://synthesis.trade/api/v1/balance/ws and send JSON messages over the socket.
Subscription behavior:
You must send a wallets array when subscribing.
On subscribe, current balances are returned and then live balance and order updates are streamed.
Polygon and Solana addresses can be mixed in the same subscribe request.
Possible order statuses: OPEN, MATCHED, FILLED, PARTIAL, TRIGGERED, CANCELED, FAILED. MATCHED indicates the order has been submitted on-chain but fill confirmation has not yet arrived.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Synthesis API","colors":{"primary":"#3B82F6","light":"#60A5FA","dark":"#2563EB"},"logo":{"light":"https://mintcdn.com/rynelabsinc/AgnE4fWHGh_vdbgE/assets/synthesis-dark.svg?fit=max\u0026auto=format\u0026n=AgnE4fWHGh_vdbgE\u0026q=85\u0026s=053ce705cbe4f3e9d95b644ab2caa50e","dark":"https://mintcdn.com/rynelabsinc/AgnE4fWHGh_vdbgE/assets/synthesis-white.svg?fit=max\u0026auto=format\u0026n=AgnE4fWHGh_vdbgE\u0026q=85\u0026s=3a9b2220b2e6e25a8aeb88894f16b4d7"},"favicon":"https://mintcdn.com/rynelabsinc/nLH2oy0CYKY2nNDv/favicon.svg?fit=max\u0026auto=format\u0026n=nLH2oy0CYKY2nNDv\u0026q=85\u0026s=b9dc1d3e3316f72bf7db7268654493a2","api":{"openapi":"openapi.json","playground":{"display":"none"}},"appearance":{"default":"dark"},"background":{"color":{"dark":"#0A0B0D"}},"navbar":{"links":[{"href":"mailto:hello@synthesis.trade","label":"Support"}],"primary":{"type":"button","label":"Login","href":"https://synthesis.trade/auth/project/google"}},"footer":{"socials":{"x":"https://x.com/synthesistrade"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"rynelabsinc","hasAudioNarration":false,"actualSubdomain":"rynelabsinc","customDomains":["api.synthesis.trade"],"gitSource":{"type":"github","owner":"ryne-labs","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6a985c23bb8cc59d3ed40551","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"API Reference","count":110},{"language":"default","tag":"Polygon","count":20},{"language":"default","tag":"Polymarket","count":12},{"language":"default","tag":"Solana","count":12},{"language":"default","tag":"Wallets","count":12},{"language":"default","tag":"Documentation","count":11},{"language":"default","tag":"Kalshi","count":11},{"language":"default","tag":"Projects","count":11},{"language":"default","tag":"Markets","count":10},{"language":"default","tag":"Accounts","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"html{overflow-y:scroll}*{scrollbar-width:thin;scrollbar-color:rgba(255, 255, 255, 0.15) transparent}*::-webkit-scrollbar{width:4px;height:4px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background:rgba(255, 255, 255, 0.15);border-radius:4px}*::-webkit-scrollbar-thumb:hover{background:rgba(255, 255, 255, 0.25)}footer{display:none!important}#content-container{padding-bottom:80px}#table-of-contents{display:none!important}#table-of-contents-layout{display:none!important}#table-of-contents-content{display:none!important}body .chat-assistant-floating-input,body #chat-assistant-textarea,body div:has(>.chat-assistant-floating-input){display:none!important}body:has(.mdx-content[data-page-href*=\"/dashboard\"]) #page-context-menu{display:none!important}body:has(.mdx-content[data-page-href*=\"/dashboard\"]) #pagination{display:none!important}.pricing-check{color:#22c55e;font-weight:600}#synthesis-auth{position:relative;display:inline-flex}#synthesis-auth-trigger{display:inline-flex;align-items:center;gap:6px;padding:6px 16px;font-size:14px;font-weight:500;color:#fff;background:#2563EB;border:none;border-radius:12px;cursor:pointer;font-family:inherit;line-height:1.4;transition:opacity 0.15s;white-space:nowrap}#synthesis-auth-trigger:hover{opacity:0.9}html:not(.dark) #synthesis-auth-menu{background:#fff;border-color:rgba(0, 0, 0, 0.1);box-shadow:0 8px 24px rgba(0, 0, 0, 0.15)}html:not(.dark) #synthesis-auth-email{color:rgba(0, 0, 0, 0.5)}html:not(.dark) .synthesis-auth-divider{background:rgba(0, 0, 0, 0.08)}html:not(.dark) .synthesis-auth-item{color:rgba(0, 0, 0, 0.7)}html:not(.dark) .synthesis-auth-item:hover{background:rgba(0, 0, 0, 0.05);color:#111}#synthesis-auth-menu{position:absolute;top:calc(100% + 8px);right:0;min-width:220px;background:#18181b;border:1px solid rgba(255, 255, 255, 0.1);border-radius:12px;padding:4px;opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity 0.15s, visibility 0.15s, transform 0.15s;z-index:9999;box-shadow:0 8px 24px rgba(0, 0, 0, 0.4)}#synthesis-auth-menu.synthesis-auth-open{opacity:1;visibility:visible;transform:translateY(0)}#synthesis-auth-email{padding:8px 12px;font-size:12px;color:rgba(255, 255, 255, 0.5);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.synthesis-auth-divider{height:1px;background:rgba(255, 255, 255, 0.08);margin:2px 0}.synthesis-auth-item{display:flex;align-items:center;gap:8px;padding:8px 12px;font-size:13px;color:rgba(255, 255, 255, 0.85);text-decoration:none;border-radius:6px;transition:background 0.12s;cursor:pointer}.synthesis-auth-item:hover{background:rgba(255, 255, 255, 0.06);color:#fff;text-decoration:none}.synthesis-auth-logout:hover{color:#f87171}.synthesis-dash-loading{display:flex;justify-content:center;padding:64px 0}.synthesis-dash-spinner{width:24px;height:24px;border:2px solid rgba(255, 255, 255, 0.1);border-top-color:#3B82F6;border-radius:50%;animation:synthesis-dash-spin 0.6s linear infinite}@keyframes synthesis-dash-spin{to{transform:rotate(360deg)}}.synthesis-dash-login-overlay{display:flex;justify-content:center;padding:48px 0}.synthesis-dash-login-card{display:flex;flex-direction:column;align-items:center;max-width:360px;padding:40px 32px;background:rgba(255, 255, 255, 0.03);border:1px solid rgba(255, 255, 255, 0.08);border-radius:12px;text-align:center}.synthesis-dash-login-icon{margin-bottom:16px}.synthesis-dash-login-title{margin:0 0 8px;font-size:18px;font-weight:600;color:#fff}.synthesis-dash-login-desc{margin:0 0 24px;font-size:14px;color:rgba(255, 255, 255, 0.5);line-height:1.5}.synthesis-dash-login-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 28px;background:#2563EB;color:#fff!important;font-size:14px;font-weight:500;border:none;border-radius:12px;text-decoration:none!important;transition:opacity 0.15s;cursor:pointer;font-family:inherit;line-height:1.4;white-space:nowrap}.synthesis-dash-login-btn:hover{opacity:0.9;text-decoration:none!important;color:#fff!important}.synthesis-dash-section{margin-top:4px}.synthesis-dash-section-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.synthesis-dash-section-title h3{margin:0 0 4px;font-size:16px;font-weight:600;color:#fff}.synthesis-dash-section-title p{margin:0;font-size:13px;color:rgba(255, 255, 255, 0.45)}.synthesis-dash-create-btn{display:inline-flex;align-items:center;gap:6px;justify-content:center;padding:6px 16px;background:#2563EB;color:#fff;font-size:14px;font-weight:500;border:none;border-radius:12px;cursor:pointer;font-family:inherit;line-height:1.4;transition:opacity 0.15s;white-space:nowrap}.synthesis-dash-create-btn:hover{opacity:0.9}.synthesis-dash-newkey{margin-bottom:20px;padding:16px;background:rgba(34, 197, 94, 0.06);border:1px solid rgba(34, 197, 94, 0.15);border-radius:10px}.synthesis-dash-newkey-header{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500;color:#22c55e;margin-bottom:8px}.synthesis-dash-newkey-warn{margin:0 0 14px;font-size:13px;color:rgba(255, 255, 255, 0.5)}.synthesis-dash-newkey-field{margin-bottom:10px}.synthesis-dash-newkey-field label{display:block;font-size:12px;font-weight:500;color:rgba(255, 255, 255, 0.4);margin-bottom:4px}.synthesis-dash-newkey-val{display:flex;align-items:center;gap:8px}.synthesis-dash-newkey-val code{flex:1;padding:8px 10px;background:rgba(0, 0, 0, 0.3);border:1px solid rgba(255, 255, 255, 0.08);border-radius:6px;font-size:12px;color:rgba(255, 255, 255, 0.8);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.synthesis-dash-copy-btn{padding:7px 12px;background:rgba(255, 255, 255, 0.08);color:rgba(255, 255, 255, 0.7);border:1px solid rgba(255, 255, 255, 0.1);border-radius:6px;font-size:12px;font-family:inherit;cursor:pointer;transition:background 0.12s, color 0.12s;white-space:nowrap}.synthesis-dash-copy-btn:hover{background:rgba(255, 255, 255, 0.12);color:#fff}.synthesis-dash-newkey-dismiss{margin-top:12px;padding:6px 14px;background:none;color:rgba(255, 255, 255, 0.5);border:1px solid rgba(255, 255, 255, 0.1);border-radius:6px;font-size:12px;font-family:inherit;cursor:pointer;transition:color 0.12s, border-color 0.12s}.synthesis-dash-newkey-dismiss:hover{color:rgba(255, 255, 255, 0.8);border-color:rgba(255, 255, 255, 0.2)}.synthesis-dash-empty{display:flex;flex-direction:column;align-items:center;padding:48px 0;text-align:center}.synthesis-dash-empty p:first-of-type{margin:12px 0 4px;font-size:14px;color:rgba(255, 255, 255, 0.5);font-weight:500}.synthesis-dash-empty p:last-of-type{margin:0;font-size:13px;color:rgba(255, 255, 255, 0.3)}.synthesis-dash-table{border:1px solid rgba(255, 255, 255, 0.08);border-radius:10px;overflow:hidden}.synthesis-dash-table-head{display:grid;grid-template-columns:1.2fr 2fr 0.8fr 1fr 0.6fr;padding:10px 16px;font-size:12px;font-weight:500;color:rgba(255, 255, 255, 0.4);background:rgba(255, 255, 255, 0.03);border-bottom:1px solid rgba(255, 255, 255, 0.06)}.synthesis-dash-table-row{display:grid;grid-template-columns:1.2fr 2fr 0.8fr 1fr 0.6fr;align-items:center;padding:12px 16px;font-size:13px;border-bottom:1px solid rgba(255, 255, 255, 0.04);transition:background 0.1s}.synthesis-dash-table-row:last-child{border-bottom:none}.synthesis-dash-table-row:hover{background:rgba(255, 255, 255, 0.02)}.synthesis-dash-key-name{color:rgba(255, 255, 255, 0.85);font-weight:500}.synthesis-dash-key-pk{display:flex;align-items:center;gap:6px}.synthesis-dash-key-pk code{font-size:12px;color:rgba(255, 255, 255, 0.5);background:none;padding:0}.synthesis-dash-copy-sm{display:inline-flex;align-items:center;padding:3px;background:none;border:none;color:rgba(255, 255, 255, 0.3);cursor:pointer;border-radius:4px;transition:color 0.12s, background 0.12s;font-family:inherit;font-size:11px}.synthesis-dash-copy-sm:hover{color:rgba(255, 255, 255, 0.7);background:rgba(255, 255, 255, 0.06)}.synthesis-dash-badge-active{display:inline-block;padding:2px 8px;font-size:11px;font-weight:500;color:#22c55e;background:rgba(34, 197, 94, 0.1);border-radius:4px}.synthesis-dash-badge-revoked{display:inline-block;padding:2px 8px;font-size:11px;font-weight:500;color:rgba(255, 255, 255, 0.35);background:rgba(255, 255, 255, 0.05);border-radius:4px}.synthesis-dash-key-date{font-size:12px;color:rgba(255, 255, 255, 0.35)}.synthesis-dash-revoke-btn{padding:4px 10px;background:none;color:rgba(255, 255, 255, 0.4);border:1px solid rgba(255, 255, 255, 0.1);border-radius:6px;font-size:12px;font-family:inherit;cursor:pointer;transition:color 0.12s, border-color 0.12s}.synthesis-dash-revoke-btn:hover{color:#f87171;border-color:rgba(248, 113, 113, 0.3)}.synthesis-dash-modal-overlay{position:fixed;inset:0;background:rgba(0, 0, 0, 0.6);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:10000;animation:synthesis-dash-fade-in 0.15s ease}@keyframes synthesis-dash-fade-in{from{opacity:0}to{opacity:1}}.synthesis-dash-modal{width:100%;max-width:400px;padding:24px;background:#18181b;border:1px solid rgba(255, 255, 255, 0.1);border-radius:12px;box-shadow:0 16px 48px rgba(0, 0, 0, 0.5);animation:synthesis-dash-slide-up 0.15s ease}@keyframes synthesis-dash-slide-up{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}.synthesis-dash-modal-title{margin:0 0 16px;font-size:16px;font-weight:600;color:#fff}.synthesis-dash-modal-desc{margin:0 0 20px;font-size:14px;color:rgba(255, 255, 255, 0.55);line-height:1.5}.synthesis-dash-modal-field{margin-bottom:20px}.synthesis-dash-modal-field label{display:block;font-size:13px;font-weight:500;color:rgba(255, 255, 255, 0.7);margin-bottom:6px}.synthesis-dash-modal-field input{width:100%;padding:9px 12px;background:rgba(0, 0, 0, 0.3);border:1px solid rgba(255, 255, 255, 0.12);border-radius:8px;color:#fff;font-size:14px;font-family:inherit;outline:none;transition:border-color 0.15s;box-sizing:border-box}.synthesis-dash-modal-field input:focus{border-color:#3B82F6}.synthesis-dash-modal-field input::placeholder{color:rgba(255, 255, 255, 0.25)}.synthesis-dash-modal-hint{display:block;margin-top:6px;font-size:12px;color:rgba(255, 255, 255, 0.3)}.synthesis-dash-modal-actions{display:flex;justify-content:flex-end;gap:8px}.synthesis-dash-modal-cancel{padding:6px 16px;background:none;color:rgba(255, 255, 255, 0.6);border:1px solid rgba(255, 255, 255, 0.1);border-radius:12px;font-size:14px;font-weight:500;font-family:inherit;cursor:pointer;transition:background 0.12s, color 0.12s}.synthesis-dash-modal-cancel:hover{background:rgba(255, 255, 255, 0.05);color:rgba(255, 255, 255, 0.8)}.synthesis-dash-modal-submit{padding:6px 16px;background:#2563EB;color:#fff;border:none;border-radius:12px;font-size:14px;font-weight:500;font-family:inherit;cursor:pointer;transition:opacity 0.15s}.synthesis-dash-modal-submit:hover{opacity:0.9}.synthesis-dash-modal-danger{padding:6px 16px;background:#dc2626;color:#fff;border:none;border-radius:12px;font-size:14px;font-weight:500;font-family:inherit;cursor:pointer;transition:opacity 0.15s}.synthesis-dash-modal-danger:hover{opacity:0.9}.synthesis-bill-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.synthesis-bill-header-text h3{margin:0 0 4px;font-size:16px;font-weight:600;color:#fff}.synthesis-bill-header-text p{margin:0;font-size:13px;color:rgba(255, 255, 255, 0.45)}.synthesis-bill-manage-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;background:rgba(255, 255, 255, 0.08);color:rgba(255, 255, 255, 0.7);font-size:14px;font-weight:500;border:1px solid rgba(255, 255, 255, 0.1);border-radius:12px;cursor:pointer;font-family:inherit;transition:background 0.15s, color 0.15s;white-space:nowrap}.synthesis-bill-manage-btn:hover{background:rgba(255, 255, 255, 0.12);color:#fff}.synthesis-bill-manage-btn:disabled{opacity:0.5;cursor:not-allowed}.synthesis-bill-current{display:flex;align-items:center;gap:12px;padding:14px 16px;background:rgba(255, 255, 255, 0.03);border:1px solid rgba(255, 255, 255, 0.08);border-radius:10px;margin-bottom:24px}.synthesis-bill-current-label{font-size:13px;color:rgba(255, 255, 255, 0.4)}.synthesis-bill-current-plan{font-size:14px;font-weight:600;color:#fff}.synthesis-bill-current-badge{display:inline-block;padding:2px 8px;font-size:11px;font-weight:500;border-radius:4px}.synthesis-bill-badge-active{color:#22c55e;background:rgba(34, 197, 94, 0.1)}.synthesis-bill-badge-free{color:rgba(255, 255, 255, 0.35);background:rgba(255, 255, 255, 0.05)}.synthesis-bill-plans{display:grid;grid-template-columns:repeat(3, 1fr);gap:12px}@media (max-width: 900px){.synthesis-bill-plans{grid-template-columns:repeat(2, 1fr)}}@media (max-width: 560px){.synthesis-bill-plans{grid-template-columns:1fr}}.synthesis-bill-plan-card{display:flex;flex-direction:column;padding:20px;background:rgba(255, 255, 255, 0.02);border:1px solid rgba(255, 255, 255, 0.08);border-radius:12px;transition:border-color 0.15s}.synthesis-bill-plan-card:hover{border-color:rgba(255, 255, 255, 0.14)}.synthesis-bill-plan-current{border-color:#2563EB;background:rgba(37, 99, 235, 0.04)}.synthesis-bill-plan-current:hover{border-color:#2563EB}.synthesis-bill-plan-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.synthesis-bill-plan-name{font-size:15px;font-weight:600;color:#fff}.synthesis-bill-plan-tag{font-size:11px;font-weight:500;color:#3B82F6;background:rgba(59, 130, 246, 0.12);padding:2px 8px;border-radius:4px}.synthesis-bill-plan-price{display:flex;align-items:baseline;gap:2px;margin-bottom:16px}.synthesis-bill-plan-amount{font-size:28px;font-weight:700;color:#fff;letter-spacing:-0.5px}.synthesis-bill-plan-period{font-size:13px;color:rgba(255, 255, 255, 0.35)}.synthesis-bill-plan-features{list-style:none!important;list-style-type:none!important;padding:0!important;padding-left:0!important;margin:0 0 20px!important;flex:1}.synthesis-bill-plan-features li{display:flex;align-items:center;gap:8px;padding:5px 0!important;padding-left:0!important;font-size:13px;color:rgba(255, 255, 255, 0.6);list-style:none!important;list-style-type:none!important}.synthesis-bill-plan-features li::before{content:none!important;display:none!important}.synthesis-bill-plan-features li::marker{content:none!important;font-size:0!important}.synthesis-bill-plan-action{margin-top:auto}.synthesis-bill-plan-btn{display:block;width:100%;padding:8px 0;font-size:14px;font-weight:500;border-radius:12px;border:none;cursor:pointer;font-family:inherit;text-align:center;text-decoration:none;transition:background 0.15s, color 0.15s}.synthesis-bill-plan-btn-current{background:rgba(255, 255, 255, 0.06);color:rgba(255, 255, 255, 0.3);cursor:default}.synthesis-bill-plan-btn-upgrade{background:#2563EB;color:#fff}.synthesis-bill-plan-btn-upgrade:hover{opacity:0.9}.synthesis-bill-plan-btn-downgrade{background:rgba(255, 255, 255, 0.06);color:rgba(255, 255, 255, 0.6);border:1px solid rgba(255, 255, 255, 0.1)}.synthesis-bill-plan-btn-downgrade:hover{background:rgba(255, 255, 255, 0.1);color:rgba(255, 255, 255, 0.8)}.synthesis-bill-plan-btn-contact{background:rgba(255, 255, 255, 0.06);color:rgba(255, 255, 255, 0.7);border:1px solid rgba(255, 255, 255, 0.1)}.synthesis-bill-plan-btn-contact:hover{background:rgba(255, 255, 255, 0.1);color:#fff;text-decoration:none}.synthesis-bill-plan-btn:disabled{opacity:0.5;cursor:not-allowed}html:not(.dark) .synthesis-dash-newkey-warn{color:rgba(0, 0, 0, 0.5)}html:not(.dark) .synthesis-dash-newkey-field label{color:rgba(0, 0, 0, 0.5)}html:not(.dark) .synthesis-dash-newkey-val code{background:rgba(0, 0, 0, 0.05);border-color:rgba(0, 0, 0, 0.1);color:rgba(0, 0, 0, 0.8)}html:not(.dark) .synthesis-dash-copy-btn{background:rgba(0, 0, 0, 0.05);color:rgba(0, 0, 0, 0.6);border-color:rgba(0, 0, 0, 0.15)}html:not(.dark) .synthesis-dash-copy-btn:hover{background:rgba(0, 0, 0, 0.08);color:rgba(0, 0, 0, 0.9)}html:not(.dark) .synthesis-dash-newkey-dismiss{color:rgba(0, 0, 0, 0.4);border-color:rgba(0, 0, 0, 0.15)}html:not(.dark) .synthesis-dash-newkey-dismiss:hover{color:rgba(0, 0, 0, 0.7);border-color:rgba(0, 0, 0, 0.25)}html:not(.dark) .synthesis-dash-empty p:first-of-type{color:rgba(0, 0, 0, 0.5)}html:not(.dark) .synthesis-dash-empty p:last-of-type{color:rgba(0, 0, 0, 0.4)}html:not(.dark) .synthesis-dash-table{border-color:rgba(0, 0, 0, 0.1)}html:not(.dark) .synthesis-dash-table-head{color:rgba(0, 0, 0, 0.5);background:rgba(0, 0, 0, 0.02);border-bottom-color:rgba(0, 0, 0, 0.08)}html:not(.dark) .synthesis-dash-table-row{border-bottom-color:rgba(0, 0, 0, 0.06)}html:not(.dark) .synthesis-dash-table-row:hover{background:rgba(0, 0, 0, 0.02)}html:not(.dark) .synthesis-dash-key-name{color:rgba(0, 0, 0, 0.85)}html:not(.dark) .synthesis-dash-key-pk code{color:rgba(0, 0, 0, 0.5)}html:not(.dark) .synthesis-dash-copy-sm{color:rgba(0, 0, 0, 0.3)}html:not(.dark) .synthesis-dash-copy-sm:hover{color:rgba(0, 0, 0, 0.7);background:rgba(0, 0, 0, 0.05)}html:not(.dark) .synthesis-dash-badge-revoked{color:rgba(0, 0, 0, 0.4);background:rgba(0, 0, 0, 0.05)}html:not(.dark) .synthesis-dash-key-date{color:rgba(0, 0, 0, 0.4)}html:not(.dark) .synthesis-dash-revoke-btn{color:rgba(0, 0, 0, 0.4);border-color:rgba(0, 0, 0, 0.15)}html:not(.dark) .synthesis-dash-revoke-btn:hover{color:#dc2626;border-color:rgba(220, 38, 38, 0.3)}html:not(.dark) .synthesis-dash-modal-overlay{background:rgba(0, 0, 0, 0.4)}html:not(.dark) .synthesis-dash-modal{background:#fff;border-color:rgba(0, 0, 0, 0.1);box-shadow:0 16px 48px rgba(0, 0, 0, 0.2)}html:not(.dark) .synthesis-dash-modal-title{color:#111}html:not(.dark) .synthesis-dash-modal-desc{color:rgba(0, 0, 0, 0.6)}html:not(.dark) .synthesis-dash-modal-field label{color:rgba(0, 0, 0, 0.7)}html:not(.dark) .synthesis-dash-modal-field input{background:#fff;border-color:rgba(0, 0, 0, 0.15);color:#111}html:not(.dark) .synthesis-dash-modal-field input::placeholder{color:rgba(0, 0, 0, 0.3)}html:not(.dark) .synthesis-dash-modal-hint{color:rgba(0, 0, 0, 0.4)}html:not(.dark) .synthesis-dash-modal-cancel{color:rgba(0, 0, 0, 0.5);border-color:rgba(0, 0, 0, 0.15)}html:not(.dark) .synthesis-dash-modal-cancel:hover{background:rgba(0, 0, 0, 0.03);color:rgba(0, 0, 0, 0.8)}html:not(.dark) .synthesis-bill-header-text h3{color:#111}html:not(.dark) .synthesis-bill-header-text p{color:rgba(0, 0, 0, 0.5)}html:not(.dark) .synthesis-bill-manage-btn{background:rgba(0, 0, 0, 0.05);color:rgba(0, 0, 0, 0.6);border-color:rgba(0, 0, 0, 0.12)}html:not(.dark) .synthesis-bill-manage-btn:hover{background:rgba(0, 0, 0, 0.08);color:#111}html:not(.dark) .synthesis-bill-current{background:rgba(0, 0, 0, 0.02);border-color:rgba(0, 0, 0, 0.08)}html:not(.dark) .synthesis-bill-current-label{color:rgba(0, 0, 0, 0.5)}html:not(.dark) .synthesis-bill-current-plan{color:#111}html:not(.dark) .synthesis-bill-badge-free{color:rgba(0, 0, 0, 0.4);background:rgba(0, 0, 0, 0.05)}html:not(.dark) .synthesis-bill-plan-card{background:#fff;border-color:rgba(0, 0, 0, 0.1)}html:not(.dark) .synthesis-bill-plan-card:hover{border-color:rgba(0, 0, 0, 0.2)}html:not(.dark) .synthesis-bill-plan-current{border-color:#2563EB;background:rgba(37, 99, 235, 0.04)}html:not(.dark) .synthesis-bill-plan-name{color:#111}html:not(.dark) .synthesis-bill-plan-tag{color:#2563EB;background:rgba(37, 99, 235, 0.1)}html:not(.dark) .synthesis-bill-plan-amount{color:#111}html:not(.dark) .synthesis-bill-plan-period{color:rgba(0, 0, 0, 0.4)}html:not(.dark) .synthesis-bill-plan-features li{color:rgba(0, 0, 0, 0.6)}html:not(.dark) .synthesis-bill-plan-btn-current{background:rgba(0, 0, 0, 0.05);color:rgba(0, 0, 0, 0.3)}html:not(.dark) .synthesis-bill-plan-btn-downgrade{background:rgba(0, 0, 0, 0.05);color:rgba(0, 0, 0, 0.5);border-color:rgba(0, 0, 0, 0.1)}html:not(.dark) .synthesis-bill-plan-btn-downgrade:hover{background:rgba(0, 0, 0, 0.08);color:rgba(0, 0, 0, 0.8)}html:not(.dark) .synthesis-bill-plan-btn-contact{background:rgba(0, 0, 0, 0.05);color:rgba(0, 0, 0, 0.6);border-color:rgba(0, 0, 0, 0.1)}html:not(.dark) .synthesis-bill-plan-btn-contact:hover{background:rgba(0, 0, 0, 0.08);color:#111}.synthesis-settings-section{margin-top:4px}.synthesis-settings-section-header{margin-bottom:24px}.synthesis-settings-section-title h3{margin:0 0 4px;font-size:16px;font-weight:600;color:#fff}.synthesis-settings-section-title p{margin:0;font-size:13px;color:rgba(255, 255, 255, 0.45)}.synthesis-settings-group{margin-bottom:28px;padding:20px;background:rgba(255, 255, 255, 0.02);border:1px solid rgba(255, 255, 255, 0.08);border-radius:12px}.synthesis-settings-group-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px;gap:12px}.synthesis-settings-group-title{margin:0 0 2px;font-size:14px;font-weight:600;color:#fff}.synthesis-settings-group-desc{margin:0;font-size:13px;color:rgba(255, 255, 255, 0.4)}.synthesis-settings-plan-badge{flex-shrink:0;padding:4px 10px;font-size:11px;font-weight:500;color:#f59e0b;background:rgba(245, 158, 11, 0.1);border:1px solid rgba(245, 158, 11, 0.2);border-radius:6px;white-space:nowrap}.synthesis-settings-fields{display:flex;flex-direction:column;gap:12px}.synthesis-settings-locked{opacity:0.45;pointer-events:none;user-select:none}.synthesis-settings-field{display:flex;flex-direction:column;gap:4px}.synthesis-settings-field label{font-size:12px;font-weight:500;color:rgba(255, 255, 255, 0.55)}.synthesis-settings-field input{width:100%;padding:9px 12px;background:rgba(0, 0, 0, 0.25);border:1px solid rgba(255, 255, 255, 0.1);border-radius:8px;color:#fff;font-size:13px;font-family:inherit;outline:none;transition:border-color 0.15s;box-sizing:border-box}.synthesis-settings-field input:focus{border-color:#3B82F6}.synthesis-settings-field input::placeholder{color:rgba(255, 255, 255, 0.2)}.synthesis-settings-field input:disabled{cursor:not-allowed;opacity:0.6}.synthesis-settings-field-sm{flex:1;min-width:0}.synthesis-settings-row{display:flex;gap:12px}@media (max-width: 640px){.synthesis-settings-row{flex-direction:column}}.synthesis-settings-hint{font-size:12px;color:rgba(255, 255, 255, 0.25);line-height:1.5}.synthesis-settings-save-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:120px;padding:6px 16px;background:#2563EB;color:#fff;font-size:14px;font-weight:500;border:none;border-radius:12px;cursor:pointer;font-family:inherit;line-height:1.4;transition:opacity 0.15s;white-space:nowrap}.synthesis-settings-saved{gap:6px}.synthesis-settings-save-btn:hover{opacity:0.9}.synthesis-settings-save-btn:disabled{opacity:0.5;cursor:not-allowed}.synthesis-settings-msg{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-radius:8px;font-size:13px;margin-bottom:16px}.synthesis-settings-msg-error{color:#f87171;background:rgba(248, 113, 113, 0.08);border:1px solid rgba(248, 113, 113, 0.15)}.synthesis-settings-msg-close{background:none;border:none;color:inherit;font-size:16px;cursor:pointer;padding:0 0 0 12px;opacity:0.6;font-family:inherit}.synthesis-settings-msg-close:hover{opacity:1}html:not(.dark) .synthesis-settings-section-title h3{color:#111}html:not(.dark) .synthesis-settings-section-title p{color:rgba(0, 0, 0, 0.5)}html:not(.dark) .synthesis-settings-group{background:#fff;border-color:rgba(0, 0, 0, 0.1)}html:not(.dark) .synthesis-settings-group-title{color:#111}html:not(.dark) .synthesis-settings-group-desc{color:rgba(0, 0, 0, 0.45)}html:not(.dark) .synthesis-settings-field label{color:rgba(0, 0, 0, 0.55)}html:not(.dark) .synthesis-settings-field input{background:#fff;border-color:rgba(0, 0, 0, 0.15);color:#111}html:not(.dark) .synthesis-settings-field input::placeholder{color:rgba(0, 0, 0, 0.25)}html:not(.dark) .synthesis-settings-hint{color:rgba(0, 0, 0, 0.35)}"}],"page":{"pagePath":"api-reference/websockets/balance-websocket","slug":"/api-reference/websockets/balance-websocket","pageMetadata":{"title":"Balance WebSocket","description":"Connect to `wss://synthesis.trade/api/v1/balance/ws` and send JSON messages over the socket.\n\nSubscription behavior:\n- You must send a `wallets` array when subscribing.\n- On subscribe, current balances are returned and then live balance and order updates are streamed.\n- Polygon and Solana addresses can be mixed in the same subscribe request.\n\nPossible order statuses: `OPEN`, `MATCHED`, `FILLED`, `PARTIAL`, `TRIGGERED`, `CANCELED`, `FAILED`. `MATCHED` indicates the order has been submitted on-chain but fill confirmation has not yet arrived.","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/balance/ws","href":"/api-reference/websockets/balance-websocket","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n p: \"p\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Connect to \", _jsx(_components.code, {\n children: \"wss://synthesis.trade/api/v1/balance/ws\"\n }), \" and send JSON messages over the socket.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Subscription behavior:\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [\"You must send a \", _jsx(_components.code, {\n children: \"wallets\"\n }), \" array when subscribing.\"]\n }), \"\\n\", _jsx(_components.li, {\n children: \"On subscribe, current balances are returned and then live balance and order updates are streamed.\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Polygon and Solana addresses can be mixed in the same subscribe request.\"\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Possible order statuses: \", _jsx(_components.code, {\n children: \"OPEN\"\n }), \", \", _jsx(_components.code, {\n children: \"MATCHED\"\n }), \", \", _jsx(_components.code, {\n children: \"FILLED\"\n }), \", \", _jsx(_components.code, {\n children: \"PARTIAL\"\n }), \", \", _jsx(_components.code, {\n children: \"TRIGGERED\"\n }), \", \", _jsx(_components.code, {\n children: \"CANCELED\"\n }), \", \", _jsx(_components.code, {\n children: \"FAILED\"\n }), \". \", _jsx(_components.code, {\n children: \"MATCHED\"\n }), \" indicates the order has been submitted on-chain but fill confirmation has not yet arrived.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Balance WebSocket","description":"Connect to `wss://synthesis.trade/api/v1/balance/ws` and send JSON messages over the socket.\n\nSubscription behavior:\n- You must send a `wallets` array when subscribing.\n- On subscribe, current balances are returned and then live balance and order updates are streamed.\n- Polygon and Solana addresses can be mixed in the same subscribe request.\n\nPossible order statuses: `OPEN`, `MATCHED`, `FILLED`, `PARTIAL`, `TRIGGERED`, `CANCELED`, `FAILED`. `MATCHED` indicates the order has been submitted on-chain but fill confirmation has not yet arrived.","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/balance/ws","href":"/api-reference/websockets/balance-websocket","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/rynelabsinc/83d86927ae679567/scripts/auth.js","/docs/_mintlify/custom/rynelabsinc/478bcf6e13d42297/scripts/billing.js","/docs/_mintlify/custom/rynelabsinc/8abb71cf7d72bf7c/scripts/dashboard.js"],"openApiReferenceData":{"operation":{"operationId":"balance-ws","summary":"Balance WebSocket","description":"Connect to `wss://synthesis.trade/api/v1/balance/ws` and send JSON messages over the socket.\n\nSubscription behavior:\n- You must send a `wallets` array when subscribing.\n- On subscribe, current balances are returned and then live balance and order updates are streamed.\n- Polygon and Solana addresses can be mixed in the same subscribe request.\n\nPossible order statuses: `OPEN`, `MATCHED`, `FILLED`, `PARTIAL`, `TRIGGERED`, `CANCELED`, `FAILED`. `MATCHED` indicates the order has been submitted on-chain but fill confirmation has not yet arrived.","tags":["WebSockets"],"security":[],"requestBody":"d58f5025-eb3b-4e22-89b3-fc1802a6e280","responses":{"101":"90df76ce-5d18-4a14-8082-36fac07c8479"},"method":"get","type":"path","servers":["d00dd145-f7d9-4a72-9c82-61d9210fb59d"],"path":"/api/v1/balance/ws","baseUrlOptions":["https://synthesis.trade"],"title":"Balance WebSocket","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["type","wallets"],"properties":{"type":{"type":"string","description":"WebSocket message type. Supported values: `subscribe` or `unsubscribe`.","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"wallets":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string","description":"Wallet address. Polygon and Solana addresses are both supported, and mixed-chain subscription lists are supported.","uniqueKey":"wallets.items.[INDEX].address","typeLabel":"string"},"assets":{"type":"array","items":{"type":"string","uniqueKey":"wallets.items.[INDEX].assets.items.[INDEX]","typeLabel":"string"},"description":"Optional asset filter for that wallet. If omitted, all known assets for the wallet are returned.","uniqueKey":"wallets.items.[INDEX].assets","typeLabel":"string[]"}},"uniqueKey":"wallets.items.[INDEX]","typeLabel":"object"},"description":"Wallet subscription list. Maximum `500` wallet entries total, and no more than `500` total requested assets across all entries.","example":[{"address":"0x742d35Cc6634C0532925a3b844Bc454e4438f44e","assets":["USDC","12345"]},{"address":"7xKXtg2CWz9P8VxP1Wm2G7x5Q8Y9LwYH6a7b8c9d1e2F"}],"isRequired":true,"uniqueKey":"wallets","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"\u003cstring>","wallets":[{"address":"0x742d35Cc6634C0532925a3b844Bc454e4438f44e","assets":["USDC","12345"]},{"address":"7xKXtg2CWz9P8VxP1Wm2G7x5Q8Y9LwYH6a7b8c9d1e2F"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"90df76ce-5d18-4a14-8082-36fac07c8479":{"description":"WebSocket connection established","content":{"application/json":{"examples":{"Initial Balances":{"title":"Initial Balances","value":{"success":true,"response":{"wallets":[{"chain_id":"POL","address":"0x742d35Cc6634C0532925a3b844Bc454e4438f44e","balances":{"USDC":"1234.567","21742633143463906290569050155826241533067272736897614950488156847949938836455":"150.000"}},{"chain_id":"SOL","address":"7xKXtg2CWz9P8VxP1Wm2G7x5Q8Y9LwYH6a7b8c9d1e2F","balances":{"USDC":"500.000"}}]}}},"Balance Update":{"title":"Balance Update","value":{"success":true,"response":{"address":"0x742d35Cc6634C0532925a3b844Bc454e4438f44e","asset":"USDC","balance":"1200.000"}}},"Order Update":{"title":"Order Update","value":{"success":true,"response":{"order_id":"0xc3d4e5f6a7b8c3d4e5f6a7b8c3d4e5f6a7b8c3d4e5f6a7b8c3d4e5f6a7b8c3d4","token_id":"21742633143463906290569050155826241533067272736897614950488156847949938836455","side":"BUY","type":"LIMIT","time_in_force":"GTC","amount":"100.000","shares":"152.300","filled":"152.300","price":"0.657","status":"FILLED"}}},"Unsubscribed":{"title":"Unsubscribed","value":{"success":true,"response":"Unsubscribed"}},"Error":{"title":"Error","value":{"success":false,"response":"Invalid wallets"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{},"servers":{"d00dd145-f7d9-4a72-9c82-61d9210fb59d":{"url":"https://synthesis.trade"}}},"originalFileLocation":"openapi.json"},"subdomain":"rynelabsinc","siteName":"Synthesis API","title":"Balance WebSocket - Synthesis API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-31T20:21:02.503Z","originalFileLocation":"api-reference/websockets/balance-websocket.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Connect to wss://synthesis.trade/api/v1/balance/ws and send JSON messages over the socket. Subscription behavior: - You must send a wallets array when subscribing. - On subscribe, current balances are returned and then live balance and order updates are streamed. - Polygon and Solana addresses can be mixed in the same subscribe request. Possible order statuses: OPEN, MATCHED, FILLED, PARTIAL, TRIGGERED, CANCELED, FAILED. MATCHED indicates the order has been submitted on-chain but fill confirmation has not yet arrived.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Synthesis API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/rynelabsinc/ek9rB4U6qKnA1Mze/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/rynelabsinc/ek9rB4U6qKnA1Mze/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/rynelabsinc/ek9rB4U6qKnA1Mze/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/rynelabsinc/ek9rB4U6qKnA1Mze/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/rynelabsinc/ek9rB4U6qKnA1Mze/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/rynelabsinc/ek9rB4U6qKnA1Mze/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/rynelabsinc/ek9rB4U6qKnA1Mze/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/rynelabsinc/ek9rB4U6qKnA1Mze/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/rynelabsinc/ek9rB4U6qKnA1Mze/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Balance WebSocket - Synthesis API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Connect to wss://synthesis.trade/api/v1/balance/ws and send JSON messages over the socket. Subscription behavior: - You must send a wallets array when subscribing. - On subscribe, current balances are returned and then live balance and order updates are streamed. - Polygon and Solana addresses can be mixed in the same subscribe request. Possible order statuses: OPEN, MATCHED, FILLED, PARTIAL, TRIGGERED, CANCELED, FAILED. MATCHED indicates the order has been submitted on-chain but fill confirmation has not yet arrived.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Synthesis API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://api.synthesis.trade/docs/api-reference/websockets/balance-websocket\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://rynelabsinc.mintlify.site/docs/_mintlify/api/og/v2?division=WebSockets\u0026amp;title=Balance+WebSocket\u0026amp;description=Connect+to+%60wss%3A%2F%2Fsynthesis.trade%2Fapi%2Fv1%2Fbalance%2Fws%60+and+send+JSON+messages+over+the+socket.%0A%0ASubscription+behavior%3A%0A-+You+must+send+a+%60wallets%60+array+when+subs\u0026amp;theme=27d58f15a33209f62de441db\u0026amp;signature=714f21e717e8fde889437ba91a466ad7a34d81375893922e49b62c14299d6400\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Balance WebSocket - Synthesis API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Connect to wss://synthesis.trade/api/v1/balance/ws and send JSON messages over the socket. Subscription behavior: - You must send a wallets array when subscribing. - On subscribe, current balances are returned and then live balance and order updates are streamed. - Polygon and Solana addresses can be mixed in the same subscribe request. Possible order statuses: OPEN, MATCHED, FILLED, PARTIAL, TRIGGERED, CANCELED, FAILED. MATCHED indicates the order has been submitted on-chain but fill confirmation has not yet arrived.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://rynelabsinc.mintlify.site/docs/_mintlify/api/og/v2?division=WebSockets\u0026amp;title=Balance+WebSocket\u0026amp;description=Connect+to+%60wss%3A%2F%2Fsynthesis.trade%2Fapi%2Fv1%2Fbalance%2Fws%60+and+send+JSON+messages+over+the+socket.%0A%0ASubscription+behavior%3A%0A-+You+must+send+a+%60wallets%60+array+when+subs\u0026amp;theme=27d58f15a33209f62de441db\u0026amp;signature=714f21e717e8fde889437ba91a466ad7a34d81375893922e49b62c14299d6400\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/rynelabsinc/ek9rB4U6qKnA1Mze/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Synthesis API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3B82F6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://api.synthesis.trade/docs/api-reference/websockets/balance-websocket\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/websockets/balance-websocket.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://api.synthesis.trade/#organization\",\"name\":\"Synthesis API\",\"url\":\"https://api.synthesis.trade\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/rynelabsinc/AgnE4fWHGh_vdbgE/assets/synthesis-dark.svg?fit=max\u0026auto=format\u0026n=AgnE4fWHGh_vdbgE\u0026q=85\u0026s=053ce705cbe4f3e9d95b644ab2caa50e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://api.synthesis.trade/docs#website\",\"name\":\"Synthesis API\",\"url\":\"https://api.synthesis.trade/docs\",\"publisher\":{\"@id\":\"https://api.synthesis.trade/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://api.synthesis.trade/docs/api-reference/websockets/balance-websocket#webpage\",\"url\":\"https://api.synthesis.trade/docs/api-reference/websockets/balance-websocket\",\"name\":\"Balance WebSocket\",\"description\":\"Connect to wss://synthesis.trade/api/v1/balance/ws and send JSON messages over the socket. Subscription behavior: - You must send a wallets array when subscribing. - On subscribe, current balances are returned and then live balance and order updates are streamed. - Polygon and Solana addresses can be mixed in the same subscribe request. Possible order statuses: OPEN, MATCHED, FILLED, PARTIAL, TRIGGERED, CANCELED, FAILED. MATCHED indicates the order has been submitted on-chain but fill confirmation has not yet arrived.\",\"dateModified\":\"2026-08-31T20:21:02.503Z\",\"isPartOf\":{\"@id\":\"https://api.synthesis.trade/docs#website\"},\"breadcrumb\":{\"@id\":\"https://api.synthesis.trade/docs/api-reference/websockets/balance-websocket#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://api.synthesis.trade/docs/api-reference/websockets/balance-websocket#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"WebSockets\",\"item\":\"https://api.synthesis.trade/docs/api-reference/websockets/orderbook-websocket\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Balance WebSocket\",\"item\":\"https://api.synthesis.trade/docs/api-reference/websockets/balance-websocket\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://api.synthesis.trade/docs/api-reference/websockets/balance-websocket#apireference\",\"headline\":\"Balance WebSocket\",\"name\":\"Balance WebSocket\",\"description\":\"Connect to wss://synthesis.trade/api/v1/balance/ws and send JSON messages over the socket. Subscription behavior: - You must send a wallets array when subscribing. - On subscribe, current balances are returned and then live balance and order updates are streamed. - Polygon and Solana addresses can be mixed in the same subscribe request. Possible order statuses: OPEN, MATCHED, FILLED, PARTIAL, TRIGGERED, CANCELED, FAILED. MATCHED indicates the order has been submitted on-chain but fill confirmation has not yet arrived.\",\"url\":\"https://api.synthesis.trade/docs/api-reference/websockets/balance-websocket\",\"mainEntityOfPage\":{\"@id\":\"https://api.synthesis.trade/docs/api-reference/websockets/balance-websocket#webpage\"},\"dateModified\":\"2026-08-31T20:21:02.503Z\",\"publisher\":{\"@id\":\"https://api.synthesis.trade/#organization\"},\"isPartOf\":{\"@id\":\"https://api.synthesis.trade/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Synthesis API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Synthesis API","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"Projects","pages":[{"title":"Get Project Accounts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/project/account","href":"/api-reference/projects/get-project-accounts"},{"title":"Create Project Account","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/project/account","href":"/api-reference/projects/create-project-account"},{"title":"Get Project Account","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/project/account/{account_id}","href":"/api-reference/projects/get-project-account"},{"title":"Update Project Account Metadata","deprecated":null,"version":null,"openapi":"/openapi.json put /api/v1/project/account/{account_id}/metadata","href":"/api-reference/projects/update-project-account-metadata"},{"title":"Create Account Session","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/project/account/{account_id}/session","href":"/api-reference/projects/create-account-session"},{"title":"Refresh Account Session","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/project/account/{account_id}/session/{session_id}/refresh","href":"/api-reference/projects/refresh-account-session"},{"title":"Expire Account Session","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/project/account/{account_id}/session/{session_id}/expire","href":"/api-reference/projects/expire-account-session"},{"title":"Expire All Account Sessions","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/project/account/{account_id}/sessions/expire-all","href":"/api-reference/projects/expire-all-account-sessions"},{"title":"Get Account API Keys","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/project/account/{account_id}/api-key","href":"/api-reference/projects/get-account-api-keys"},{"title":"Create Account API Key","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/project/account/{account_id}/api-key","href":"/api-reference/projects/create-account-api-key"},{"title":"Delete Account API Key","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/v1/project/account/{account_id}/api-key/{public_key}","href":"/api-reference/projects/delete-account-api-key"}]},{"group":"Accounts","pages":[{"title":"Get Account Session","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/account/session","href":"/api-reference/accounts/get-account-session"},{"title":"Expire Current Session","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/account/session/expire","href":"/api-reference/accounts/expire-current-session"},{"title":"Get Account API Keys","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/account/api-key","href":"/api-reference/accounts/get-account-api-keys"},{"title":"Create Account API Key","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/account/api-key","href":"/api-reference/accounts/create-account-api-key"},{"title":"Delete Account API Key","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/v1/account/api-key/{public_key}","href":"/api-reference/accounts/delete-account-api-key"},{"title":"Get Account Interests","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/account/interests","href":"/api-reference/accounts/get-account-interests"},{"title":"Update Account Interests","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/account/interests","href":"/api-reference/accounts/update-account-interests"}]},{"group":"Markets","pages":[{"title":"Get Markets","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/markets","href":"/api-reference/markets/get-markets"},{"title":"Get Market Sparklines","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/markets/sparklines","href":"/api-reference/markets/get-market-sparklines"},{"title":"Get Market Prices","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/markets/prices","href":"/api-reference/markets/get-market-prices"},{"title":"Get Orderbooks","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/markets/orderbooks","href":"/api-reference/markets/get-orderbooks"},{"title":"Get Historical Orderbooks","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/markets/orderbooks/historical","href":"/api-reference/markets/get-historical-orderbooks"},{"title":"Search Markets","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/markets/search/{query}","href":"/api-reference/markets/search-markets"},{"title":"Get Related Markets","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/markets/related/{slug}","href":"/api-reference/markets/get-related-markets"},{"title":"Get Similar Markets","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/markets/similar","href":"/api-reference/markets/get-similar-markets"},{"title":"Get Similar Market Pairs","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/markets/similar-pairs","href":"/api-reference/markets/get-similar-market-pairs"},{"title":"Get Recommendations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/recommendations","href":"/api-reference/markets/get-recommendations"}]},{"group":"Polymarket","pages":[{"title":"Get Polymarket Markets","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/polymarket/markets","href":"/api-reference/polymarket/get-polymarket-markets"},{"title":"Get Polymarket Event","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/polymarket/market/event/{event_id}","href":"/api-reference/polymarket/get-polymarket-event"},{"title":"Get Polymarket Market by Slug","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/polymarket/market/slug/{slug}","href":"/api-reference/polymarket/get-polymarket-market-by-slug"},{"title":"Get Polymarket Market by Token","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/polymarket/market/token/{token_id}","href":"/api-reference/polymarket/get-polymarket-market-by-token"},{"title":"Get Polymarket Market","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/polymarket/market/{condition_id}","href":"/api-reference/polymarket/get-polymarket-market"},{"title":"Get Polymarket Price History","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/polymarket/market/{token_id}/price-history","href":"/api-reference/polymarket/get-polymarket-price-history"},{"title":"Get Polymarket Market Trades","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/polymarket/market/{condition_id}/trades","href":"/api-reference/polymarket/get-polymarket-market-trades"},{"title":"Get Polymarket Market Statistics","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/polymarket/market/{token_id}/statistics","href":"/api-reference/polymarket/get-polymarket-market-statistics"},{"title":"Get UMA Requests","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/polymarket/uma","href":"/api-reference/polymarket/get-uma-requests"},{"title":"Get UMA Market","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/polymarket/uma/market/{condition_id}","href":"/api-reference/polymarket/get-uma-market"},{"title":"Get UMA Question","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/polymarket/uma/question/{question_id}","href":"/api-reference/polymarket/get-uma-question"},{"title":"Get UMA Thread","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/polymarket/uma/thread/{condition_id}","href":"/api-reference/polymarket/get-uma-thread"}]},{"group":"Kalshi","pages":[{"title":"Get Kalshi Markets","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/kalshi/markets","href":"/api-reference/kalshi/get-kalshi-markets"},{"title":"Get Kalshi Event","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/kalshi/market/event/{event_id}","href":"/api-reference/kalshi/get-kalshi-event"},{"title":"Get Kalshi Market by Slug","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/kalshi/market/slug/{slug}","href":"/api-reference/kalshi/get-kalshi-market-by-slug"},{"title":"Get Kalshi Market","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/kalshi/market/{market_id}","href":"/api-reference/kalshi/get-kalshi-market"},{"title":"Get Kalshi Market Trades","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/kalshi/market/{market_id}/trades","href":"/api-reference/kalshi/get-kalshi-market-trades"},{"title":"Get Kalshi Market Holders","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/kalshi/market/{market_id}/holders","href":"/api-reference/kalshi/get-kalshi-market-holders"},{"title":"Get Kalshi Market Statistics","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/kalshi/market/{market_id}/statistics","href":"/api-reference/kalshi/get-kalshi-market-statistics"},{"title":"Get Kalshi Price History","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/kalshi/market/{series_id}/{kalshi_id}/price-history","href":"/api-reference/kalshi/get-kalshi-price-history"},{"title":"Get Kalshi Candlesticks","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/kalshi/market/{series_id}/{kalshi_id}/candlesticks","href":"/api-reference/kalshi/get-kalshi-candlesticks"},{"title":"Get Kalshi Leaderboard","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/kalshi/leaderboard","href":"/api-reference/kalshi/get-kalshi-leaderboard"},{"title":"Get Kalshi User Profile","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/kalshi/user/{username}","href":"/api-reference/kalshi/get-kalshi-user-profile"}]},{"group":"Wallets","pages":[{"title":"Get Wallets","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet","href":"/api-reference/wallets/get-wallets"},{"title":"Reorder Wallets","deprecated":null,"version":null,"openapi":"/openapi.json put /api/v1/wallet","href":"/api-reference/wallets/reorder-wallets"},{"title":"Create Wallet","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/wallet","href":"/api-reference/wallets/create-wallet"},{"title":"Update Wallet","deprecated":null,"version":null,"openapi":"/openapi.json put /api/v1/wallet/{wallet_id}","href":"/api-reference/wallets/update-wallet"},{"title":"Delete Wallet","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/v1/wallet/{wallet_id}","href":"/api-reference/wallets/delete-wallet"},{"title":"Export Wallet","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/wallet/{chain_id}/{wallet_id}/export","href":"/api-reference/wallets/export-wallet"},{"title":"Get Deposit Address","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/{chain_id}/{wallet_id}/deposit/{chain}","href":"/api-reference/wallets/get-deposit-address"},{"title":"Get Wallet Balance","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/{wallet_id}/balance","href":"/api-reference/wallets/get-wallet-balance"},{"title":"Get Wallet Orders","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/{wallet_id}/orders","href":"/api-reference/wallets/get-wallet-orders"},{"title":"Get Wallet Positions","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/{wallet_id}/positions","href":"/api-reference/wallets/get-wallet-positions"},{"title":"Get Wallet Transfers","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/{wallet_id}/transfers","href":"/api-reference/wallets/get-wallet-transfers"},{"title":"Get Wallet PNL","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/{wallet_id}/pnl","href":"/api-reference/wallets/get-wallet-pnl"}]},{"group":"Polygon","pages":[{"title":"Get Wallets","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/pol","href":"/api-reference/polygon/get-wallets"},{"title":"Get Balance","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/pol/{wallet_id}/balance","href":"/api-reference/polygon/get-balance"},{"title":"Get Orders","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/pol/{wallet_id}/orders","href":"/api-reference/polygon/get-orders"},{"title":"Cancel All Orders","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/v1/wallet/pol/{wallet_id}/orders","href":"/api-reference/polygon/cancel-all-orders"},{"title":"Get Positions","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/pol/{wallet_id}/positions","href":"/api-reference/polygon/get-positions"},{"title":"Get Transfers","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/pol/{wallet_id}/transfers","href":"/api-reference/polygon/get-transfers"},{"title":"Get PNL","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/pol/{wallet_id}/pnl","href":"/api-reference/polygon/get-pnl"},{"title":"Create Order Quote","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/wallet/pol/{wallet_id}/order/quote","href":"/api-reference/polygon/create-order-quote"},{"title":"Create Order","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/wallet/pol/{wallet_id}/order","href":"/api-reference/polygon/create-order"},{"title":"Get Order","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/pol/{wallet_id}/order/{order_id}","href":"/api-reference/polygon/get-order"},{"title":"Update Order","deprecated":null,"version":null,"openapi":"/openapi.json put /api/v1/wallet/pol/{wallet_id}/order/{order_id}","href":"/api-reference/polygon/update-order"},{"title":"Cancel Order","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/v1/wallet/pol/{wallet_id}/order/{order_id}","href":"/api-reference/polygon/cancel-order"},{"title":"Get Active Orders","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/pol/{wallet_id}/orders/active","href":"/api-reference/polygon/get-active-orders"},{"title":"Get Active Market Orders","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/pol/{wallet_id}/orders/{condition_id}/active","href":"/api-reference/polygon/get-active-market-orders"},{"title":"Get Trades","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/pol/{wallet_id}/trades","href":"/api-reference/polygon/get-trades"},{"title":"Mint Shares","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/wallet/pol/{wallet_id}/mint","href":"/api-reference/polygon/mint-shares"},{"title":"Merge Shares","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/wallet/pol/{wallet_id}/merge","href":"/api-reference/polygon/merge-shares"},{"title":"Redeem Position","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/wallet/pol/{wallet_id}/redeem/{condition_id}","href":"/api-reference/polygon/redeem-position"},{"title":"Create Withdrawal","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/wallet/pol/{wallet_id}/withdraw","href":"/api-reference/polygon/create-withdrawal"},{"title":"Create Swap","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/wallet/pol/{wallet_id}/swap","href":"/api-reference/polygon/create-swap"}]},{"group":"Polygon Copytrades","pages":[{"title":"Get Copytrades","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/pol/{wallet_id}/copytrade","href":"/api-reference/polygon-copytrades/get-copytrades"},{"title":"Create Copytrade","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/wallet/pol/{wallet_id}/copytrade","href":"/api-reference/polygon-copytrades/create-copytrade"},{"title":"Update Copytrade","deprecated":null,"version":null,"openapi":"/openapi.json put /api/v1/wallet/pol/{wallet_id}/copytrade/{copytrade_id}","href":"/api-reference/polygon-copytrades/update-copytrade"},{"title":"Delete Copytrade","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/v1/wallet/pol/{wallet_id}/copytrade/{copytrade_id}","href":"/api-reference/polygon-copytrades/delete-copytrade"},{"title":"Pause Copytrade","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/wallet/pol/{wallet_id}/copytrade/{copytrade_id}/pause","href":"/api-reference/polygon-copytrades/pause-copytrade"},{"title":"Unpause Copytrade","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/wallet/pol/{wallet_id}/copytrade/{copytrade_id}/unpause","href":"/api-reference/polygon-copytrades/unpause-copytrade"},{"title":"Get Copytrade Orders","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/pol/{wallet_id}/copytrade/{copytrade_id}/orders","href":"/api-reference/polygon-copytrades/get-copytrade-orders"}]},{"group":"Solana","pages":[{"title":"Get Wallets","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/sol","href":"/api-reference/solana/get-wallets"},{"title":"Get KYC Status","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/sol/{wallet_id}/kyc","href":"/api-reference/solana/get-kyc-status"},{"title":"Create KYC Link","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/wallet/sol/{wallet_id}/kyc","href":"/api-reference/solana/create-kyc-link"},{"title":"Get Balance","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/sol/{wallet_id}/balance","href":"/api-reference/solana/get-balance"},{"title":"Get Orders","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/sol/{wallet_id}/orders","href":"/api-reference/solana/get-orders"},{"title":"Get Positions","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/sol/{wallet_id}/positions","href":"/api-reference/solana/get-positions"},{"title":"Get Transfers","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/sol/{wallet_id}/transfers","href":"/api-reference/solana/get-transfers"},{"title":"Get PNL","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/wallet/sol/{wallet_id}/pnl","href":"/api-reference/solana/get-pnl"},{"title":"Create Order Quote","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/wallet/sol/{wallet_id}/order/quote","href":"/api-reference/solana/create-order-quote"},{"title":"Create Order","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/wallet/sol/{wallet_id}/order","href":"/api-reference/solana/create-order"},{"title":"Redeem Position","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/wallet/sol/{wallet_id}/redeem/{token_id}","href":"/api-reference/solana/redeem-position"},{"title":"Create Withdrawal","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/wallet/sol/{wallet_id}/withdraw","href":"/api-reference/solana/create-withdrawal"}]},{"group":"News","pages":[{"title":"Get News","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/news","href":"/api-reference/news/get-news"},{"title":"Get Event News","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/news/event/{event_id}","href":"/api-reference/news/get-event-news"},{"title":"Get Market News","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/news/market/{market_id}","href":"/api-reference/news/get-market-news"}]},{"group":"WebSockets","pages":[{"title":"Orderbook WebSocket","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/orderbook/ws","href":"/api-reference/websockets/orderbook-websocket"},{"title":"Trades WebSocket","description":"Connect to `wss://synthesis.trade/api/v1/trades/ws` and send JSON messages over the socket.\n\nSubscription behavior:\n- Returns historical trades ordered by newest first (up to `limit`, default `100`, max `10000`).\n- If `offset` is `0` or omitted, the socket stays subscribed for live updates.\n- If `offset` is greater than `0`, only that historical page is returned.\n\nMarket rules:\n- For Polymarket, `markets` should contain condition IDs.\n- For Kalshi, `markets` should contain market IDs.","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/trades/ws","href":"/api-reference/websockets/trades-websocket"},{"title":"Balance WebSocket","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/balance/ws","href":"/api-reference/websockets/balance-websocket"},{"title":"UMA WebSocket","description":"Connect to `wss://synthesis.trade/api/v1/uma/ws` and send JSON messages over the socket.\n\nSubscription behavior:\n- On subscribe, current UMA requests matching the optional `statuses` filter are returned as a snapshot, along with participant stats and a leaderboard.\n- After the snapshot, live UMA updates are streamed as full objects with event and market data.\n- If `statuses` is provided, only updates matching those statuses are delivered.","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/uma/ws","href":"/api-reference/websockets/uma-websocket"},{"title":"Data WebSocket","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/data/ws","href":"/api-reference/websockets/data-websocket"}]}]},{"tab":"Dashboard","pages":[{"title":"Dashboard","href":"/dashboard"}]}]},"basePath":"","title":"Balance WebSocket - Synthesis API","buildId":"dpl_BSPUBxEoKhhK7HzXVDPxdPvWx4xc","deploymentId":"dpl_BSPUBxEoKhhK7HzXVDPxdPvWx4xc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Do6EtGSl.js","utils-id4tQ6My.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-Byrixac4.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-nakYa3Zl.js","snippetPresets-Bq-pUS7h.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-CujTC_9K.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-FneVUsVu.js","shallow-DY9WpUCz.js","getApiPlaygroundDisplay-Bz8WpPfA.js","CodeSnippet-DgCuJg4G.js","CodeSnippets-Dub9c4T0.js","Page-CePXnjd1.js","getPastedJson-xdI8y2XB.js","icon--yVw5vkr.js","MethodPill-C47t7MdS.js","DuplicateIcon-BzwJ2LeC.js","createIcon-BzggGy84.js","DynamicMarkdown-AlxJK8VR.js","SectionHeading-CMlwFxdK.js","axios-vUo_bRtp.js","Markdown-BNgNrPsi.js","clsx-apD-Q0Oo.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-qmLwQyWY.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Dc4qTkWx.js"]}