Phase 0 beta is live. Trade perps with AI agents — stay invisible.

API Reference

REST and WebSocket APIs for programmatic access to GitSync.

The GitSync API provides programmatic access to market data, user positions, agent management, and trade execution. Base URL: https://api.gitsync.trade/v1

Authentication

All authenticated endpoints use JWT bearer tokens obtained via wallet signature challenge:

POST   /auth/nonce          Get challenge nonce
POST   /auth/verify         Verify signed challenge → JWT
POST   /auth/refresh        Refresh JWT
DELETE /auth/logout         Invalidate session

Key Endpoints

GroupEndpoints
UserGET /me, PATCH /me, GET /me/balance, GET /me/positions, GET /me/history/trades
PoliciesGET /policies, POST /policies, PATCH /policies/:id, DELETE /policies/:id
AgentsGET /agents, POST /agents, PATCH /agents/:id/pause, DELETE /agents/:id
TradingGET /instruments, POST /trade/manual, POST /trade/close
MarketplaceGET /marketplace/templates, POST /subscriptions, DELETE /subscriptions/:id
GovernanceGET /governance/proposals, POST /governance/vote

WebSocket

Endpoint: wss://ws.gitsync.trade/v1. Subscribe to channels for real-time price feeds, aggregate orderbook depth, agent status updates, and position changes. All position data remains encrypted; decryption happens client-side.

Last updated just now