Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 25 additions & 22 deletions core/COMPLIANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,28 @@ This document details the feature support and compliance status for each exchang

## Functions Status

| Category | Function | Polymarket | PolymarketUS | Kalshi | Limitless | Probable | Baozi | Myriad | Opinion | Metaculus | Smarkets | Hyperliquid | GeminiTitan | SuiBets | Rain | Hunch |
| :--- | :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| **Market Data** | `fetchMarkets` | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y |
| | `fetchEvents` | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y |
| | `fetchMarket` | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y |
| | `fetchEvent` | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y |
| **Public Data** | `fetchOHLCV` | Y | - | Y | Y | Y | Y | Y | Y | - | - | Y | - | - | Y | Y |
| | `fetchOrderBook` | Y | Y | Y | Y | Y | Y | Y | Y | - | Y | Y | Y | Y | Y | Y |
| | `fetchTrades` | Y | - | Y | Y | Y | Y | Y | - | - | Y | Y | - | - | Y | Y |
| **Private Data** | `fetchBalance` | Y | Y | Y | Y | Y | Y | Y | - | - | Y | Y | - | - | Y | Y |
| | `fetchPositions` | Y | Y | Y | Y | Y | Y | Y | Y | - | Y | Y | Y | Y | Y | Y |
| | `fetchMyTrades` | Y | Y | Y | Y | Y | - | Y | Y | - | Y | Y | - | - | Y | - |
| **Trading** | `createOrder` | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | - | Y | Y |
| | `cancelOrder` | Y | Y | Y | Y | Y | Y | - | Y | Y | Y | Y | Y | - | Y | - |
| | `fetchOrder` | Y | Y | Y | Y | Y | Y | - | Y | - | Y | - | - | - | Y | - |
| | `fetchOpenOrders` | Y | Y | Y | Y | Y | Y | Y | Y | - | Y | Y | Y | - | Y | Y |
| | `fetchClosedOrders` | - | - | Y | Y | - | - | - | Y | - | Y | Y | Y | - | - | - |
| | `fetchAllOrders` | - | - | Y | Y | - | - | - | Y | - | Y | Y | Y | - | - | - |
| **Calculations** | `getExecutionPrice` | Y | Y | Y | Y | Y | Y | Y | Y | - | Y | Y | Y | Y | Y | Y |
| | `getExecutionPriceDetailed` | Y | Y | Y | Y | Y | Y | Y | Y | - | Y | Y | Y | Y | Y | Y |
| **Real-time** | `watchOrderBook` | Y | Y | Y | Y | Y | Y | Y | Y | - | - | - | Y | - | Y | Y |
| | `watchTrades` | Y | Y | Y | Y | - | - | Y | Y | - | - | - | Y | - | Y | Y |
| Category | Function | Polymarket | PolymarketUS | Kalshi | Limitless | Probable | Baozi | Myriad | Opinion | Metaculus | Smarkets | Hyperliquid | GeminiTitan | SuiBets | Rain | Hunch | GADUIN |
| :--- | :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| **Market Data** | `fetchMarkets` | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y |
| | `fetchEvents` | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | - |
| | `fetchMarket` | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y |
| | `fetchEvent` | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | - |
| **Public Data** | `fetchOHLCV` | Y | - | Y | Y | Y | Y | Y | Y | - | - | Y | - | - | Y | Y | Y |
| | `fetchOrderBook` | Y | Y | Y | Y | Y | Y | Y | Y | - | Y | Y | Y | Y | Y | Y | - |
| | `fetchTrades` | Y | - | Y | Y | Y | Y | Y | - | - | Y | Y | - | - | Y | Y | - |
| **Private Data** | `fetchBalance` | Y | Y | Y | Y | Y | Y | Y | - | - | Y | Y | - | - | Y | Y | - |
| | `fetchPositions` | Y | Y | Y | Y | Y | Y | Y | Y | - | Y | Y | Y | Y | Y | Y | - |
| | `fetchMyTrades` | Y | Y | Y | Y | Y | - | Y | Y | - | Y | Y | - | - | Y | - | - |
| **Trading** | `createOrder` | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | - | Y | Y | - |
| | `cancelOrder` | Y | Y | Y | Y | Y | Y | - | Y | Y | Y | Y | Y | - | Y | - | - |
| | `fetchOrder` | Y | Y | Y | Y | Y | Y | - | Y | - | Y | - | - | - | Y | - | - |
| | `fetchOpenOrders` | Y | Y | Y | Y | Y | Y | Y | Y | - | Y | Y | Y | - | Y | Y | - |
| | `fetchClosedOrders` | - | - | Y | Y | - | - | - | Y | - | Y | Y | Y | - | - | - | - |
| | `fetchAllOrders` | - | - | Y | Y | - | - | - | Y | - | Y | Y | Y | - | - | - | - |
| **Calculations** | `getExecutionPrice` | Y | Y | Y | Y | Y | Y | Y | Y | - | Y | Y | Y | Y | Y | Y | - |
| | `getExecutionPriceDetailed` | Y | Y | Y | Y | Y | Y | Y | Y | - | Y | Y | Y | Y | Y | Y | - |
| **Real-time** | `watchOrderBook` | Y | Y | Y | Y | Y | Y | Y | Y | - | - | - | Y | - | Y | Y | - |
| | `watchTrades` | Y | Y | Y | Y | - | - | Y | Y | - | - | - | Y | - | Y | Y | - |

## Legend
- **Y** - Supported
Expand Down Expand Up @@ -112,4 +112,7 @@ RAIN_WS_RPC_URL=...
HUNCH_PRIVATE_KEY=0x...
HUNCH_WALLET_ADDRESS=0x...
HUNCH_BASE_URL=...

# GADUIN (read-only API key, required for every REST read)
GADUIN_API_KEY=pk_live_...
```
6 changes: 6 additions & 0 deletions core/scripts/fetch-openapi-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ const SPECS = [
outFile: path.resolve(__dirname, '../src/exchanges/opinion/api.ts'),
exportName: 'opinionApiSpec',
},
{
name: 'gaduin',
localFile: path.resolve(__dirname, '../specs/gaduin/gaduin.yaml'),
outFile: path.resolve(__dirname, '../src/exchanges/gaduin/api.ts'),
exportName: 'gaduinApiSpec',
},
];

function fetch(url) {
Expand Down
5 changes: 5 additions & 0 deletions core/scripts/generate-compliance.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const PREFERRED_EXCHANGE_ORDER = [
'suibets',
'rain',
'hunch',
'gaduin',
];

// kalshi-demo is a demo wrapper around Kalshi, and mock is for local tests.
Expand All @@ -49,6 +50,7 @@ const DISPLAY_NAMES = {
polymarket_us: 'PolymarketUS',
'gemini-titan': 'GeminiTitan',
suibets: 'SuiBets',
gaduin: 'GADUIN',
};

function listProductionExchangeSlugs() {
Expand Down Expand Up @@ -298,6 +300,9 @@ RAIN_WS_RPC_URL=...
HUNCH_PRIVATE_KEY=0x...
HUNCH_WALLET_ADDRESS=0x...
HUNCH_BASE_URL=...

# GADUIN (read-only API key, required for every REST read)
GADUIN_API_KEY=pk_live_...
\`\`\`
`;

Expand Down
3 changes: 2 additions & 1 deletion core/scripts/generate-openapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,7 @@ function buildCapabilityMap() {
suibets: new pmxt.SuiBets(),
rain: new pmxt.Rain(),
hunch: new pmxt.Hunch(),
gaduin: new pmxt.Gaduin(),
router: new pmxt.Router({ apiKey: '_' }),
};

Expand Down Expand Up @@ -2707,7 +2708,7 @@ function buildSpec(methodSpecs) {
name: 'exchange',
schema: {
type: 'string',
enum: ['polymarket', 'kalshi', 'kalshi-demo', 'limitless', 'probable', 'baozi', 'myriad', 'opinion', 'metaculus', 'smarkets', 'polymarket_us', 'gemini-titan', 'hyperliquid', 'suibets', 'rain', 'hunch', 'mock', 'router'],
enum: ['polymarket', 'kalshi', 'kalshi-demo', 'limitless', 'probable', 'baozi', 'myriad', 'opinion', 'metaculus', 'smarkets', 'polymarket_us', 'gemini-titan', 'hyperliquid', 'suibets', 'rain', 'hunch', 'gaduin', 'mock', 'router'],
},
required: true,
description: 'The prediction market exchange to target.',
Expand Down
Loading