Skip to content
Merged
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
46 changes: 24 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 | Kalshi | Limitless | Probable | Baozi | Myriad | Opinion |
| :--- | :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| **Market Data** | `fetchMarkets` | Y | Y | Y | Y | Y | Y | Y |
| | `fetchEvents` | Y | Y | Y | Y | Y | Y | Y |
| | `fetchMarket` | Y | Y | Y | Y | Y | Y | Y |
| | `fetchEvent` | Y | Y | Y | Y | Y | Y | Y |
| **Public Data** | `fetchOHLCV` | Y | Y | Y | Y | Y | Y | Y |
| | `fetchOrderBook` | Y | Y | Y | Y | Y | Y | Y |
| | `fetchTrades` | Y | Y | Y | Y | Y | Y | - |
| **Private Data** | `fetchBalance` | Y | Y | Y | Y | Y | Y | - |
| | `fetchPositions` | Y | Y | Y | Y | Y | Y | Y |
| | `fetchMyTrades` | Y | Y | Y | Y | - | Y | Y |
| **Trading** | `createOrder` | Y | Y | Y | Y | Y | Y | Y |
| | `cancelOrder` | Y | Y | Y | Y | Y | - | Y |
| | `fetchOrder` | Y | Y | Y | Y | Y | - | Y |
| | `fetchOpenOrders` | Y | Y | Y | Y | Y | Y | Y |
| | `fetchClosedOrders` | - | Y | Y | - | - | - | Y |
| | `fetchAllOrders` | - | Y | Y | - | - | - | Y |
| **Calculations** | `getExecutionPrice` | Y | Y | Y | Y | Y | Y | Y |
| | `getExecutionPriceDetailed` | Y | Y | Y | Y | Y | Y | Y |
| **Real-time** | `watchOrderBook` | Y | Y | Y | Y | Y | Y | Y |
| | `watchTrades` | Y | Y | Y | - | - | Y | Y |
| Category | Function | Polymarket | Kalshi | Limitless | Probable | Baozi | Myriad | Opinion | Metaculus |
| :--- | :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| **Market Data** | `fetchMarkets` | Y | Y | Y | Y | Y | Y | Y | Y |
| | `fetchEvents` | Y | Y | Y | Y | Y | Y | Y | Y |
| | `fetchMarket` | Y | Y | Y | Y | Y | Y | Y | Y |
| | `fetchEvent` | Y | Y | Y | Y | Y | Y | Y | Y |
| **Public Data** | `fetchOHLCV` | Y | Y | Y | Y | Y | Y | Y | - |
| | `fetchOrderBook` | Y | Y | Y | Y | Y | Y | Y | - |
| | `fetchTrades` | Y | Y | Y | Y | Y | Y | - | - |
| **Private Data** | `fetchBalance` | Y | Y | Y | Y | Y | Y | - | - |
| | `fetchPositions` | Y | Y | Y | Y | Y | Y | Y | - |
| | `fetchMyTrades` | Y | Y | Y | Y | - | Y | Y | - |
| **Trading** | `createOrder` | Y | Y | Y | Y | Y | Y | Y | - |
| | `cancelOrder` | Y | Y | Y | Y | Y | - | Y | - |
| | `fetchOrder` | Y | Y | Y | Y | Y | - | Y | - |
| | `fetchOpenOrders` | Y | Y | Y | Y | Y | Y | Y | - |
| | `fetchClosedOrders` | - | Y | Y | - | - | - | Y | - |
| | `fetchAllOrders` | - | Y | Y | - | - | - | Y | - |
| **Calculations** | `getExecutionPrice` | Y | Y | Y | Y | Y | Y | Y | - |
| | `getExecutionPriceDetailed` | Y | Y | Y | Y | Y | Y | Y | - |
| **Real-time** | `watchOrderBook` | Y | Y | Y | Y | Y | Y | Y | - |
| | `watchTrades` | Y | Y | Y | - | - | Y | Y | - |

## Legend
- **Y** - Supported
Expand All @@ -50,4 +50,6 @@ LIMITLESS_PRIVATE_KEY=0x...
# Myriad
MYRIAD_API_KEY=...
MYRIAD_WALLET_ADDRESS=0x...
# Metaculus (required for API access — unauthenticated requests return 403)
METACULUS_API_TOKEN=...
```
4 changes: 3 additions & 1 deletion core/scripts/generate-compliance.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const METHOD_CATEGORIES = [
];

// Exchange display order (skip kalshi-demo since it inherits Kalshi fully)
const EXCHANGE_ORDER = ['polymarket', 'kalshi', 'limitless', 'probable', 'baozi', 'myriad', 'opinion'];
const EXCHANGE_ORDER = ['polymarket', 'kalshi', 'limitless', 'probable', 'baozi', 'myriad', 'opinion', 'metaculus'];

function toDisplayName(slug) {
return slug.split('-').map(p => p.charAt(0).toUpperCase() + p.slice(1)).join('');
Expand Down Expand Up @@ -187,6 +187,8 @@ LIMITLESS_PRIVATE_KEY=0x...
# Myriad
MYRIAD_API_KEY=...
MYRIAD_WALLET_ADDRESS=0x...
# Metaculus (required for API access — unauthenticated requests return 403)
METACULUS_API_TOKEN=...
\`\`\`
`;

Expand Down
6 changes: 6 additions & 0 deletions core/scripts/generate-python-exchanges.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ function build(name, block) {
name,
creds: {
apiKey: /credentials\?\.apiKey/.test(block),
apiToken: /credentials\?\.apiToken/.test(block),
apiSecret: /credentials\?\.apiSecret/.test(block),
passphrase: /credentials\?\.passphrase/.test(block),
privateKey: /credentials\?\.privateKey/.test(block),
Expand All @@ -110,6 +111,10 @@ function generateClass(exchange) {
constructorParams.push('api_key: Optional[str] = None');
superArgs.push('api_key=api_key');
}
if (creds.apiToken) {
constructorParams.push('api_token: Optional[str] = None');
superArgs.push('api_token=api_token');
}
if (creds.apiSecret) {
constructorParams.push('api_secret: Optional[str] = None');
extraAttrs.push('self.api_secret = api_secret');
Expand Down Expand Up @@ -142,6 +147,7 @@ function generateClass(exchange) {

const docLines = [];
if (creds.apiKey) docLines.push(' api_key: API key for authentication (optional)');
if (creds.apiToken) docLines.push(' api_token: API token for authentication (optional; required for Metaculus API access)');
if (creds.apiSecret) docLines.push(' api_secret: API secret for authentication (optional)');
if (creds.passphrase) docLines.push(' passphrase: Passphrase for authentication (optional)');
if (creds.privateKey) {
Expand Down
Loading
Loading