API Playground
Test Rulebook Company API endpoints directly from your browser.
Note: The playground uses sample data for demonstration. You’ll need a valid API key for production access.
Sample API Calls
Get Exchange Fee Schedule
Retrieve current fee schedules for a specific exchange:
curl https://api.rulebook.company/v1/exchanges/NASDAQ/fees \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
Example Response:
{
"exchange": "NASDAQ",
"effective_date": "2024-01-01",
"fee_schedule": {
"maker_fee": -0.0002,
"taker_fee": 0.0003,
"tier_thresholds": {
"tier_1": {
"volume": 1000000,
"maker_rebate": -0.00025
},
"tier_2": {
"volume": 5000000,
"maker_rebate": -0.0003
}
}
},
"last_updated": "2024-01-01T00:00:00Z"
}
Get Exchange Rules
Retrieve trading rules and regulations for an exchange:
curl https://api.rulebook.company/v1/exchanges/NYSE/rules \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
Example Response:
{
"exchange": "NYSE",
"rules": {
"trading_hours": {
"pre_market": "04:00:00",
"regular": "09:30:00-16:00:00",
"after_hours": "16:00:00-20:00:00"
},
"tick_size": 0.01,
"lot_size": 100,
"circuit_breakers": {
"level_1": 0.07,
"level_2": 0.13,
"level_3": 0.20
}
},
"effective_date": "2024-01-01",
"last_updated": "2024-01-01T00:00:00Z"
}
Get Order Types
Retrieve supported order types for a specific venue:
curl https://api.rulebook.company/v1/exchanges/CME/order-types \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
Example Response:
{
"exchange": "CME",
"order_types": [
{
"type": "LIMIT",
"description": "Limit order with specified price",
"supported": true
},
{
"type": "MARKET",
"description": "Market order at best available price",
"supported": true
},
{
"type": "STOP",
"description": "Stop order triggered at specified price",
"supported": true
},
{
"type": "IOC",
"description": "Immediate or cancel order",
"supported": true
},
{
"type": "FOK",
"description": "Fill or kill order",
"supported": true
}
],
"last_updated": "2024-01-01T00:00:00Z"
}
Historical Data Query
Query historical fee schedules:
curl "https://api.rulebook.company/v1/exchanges/NASDAQ/fees/historical?start_date=2023-01-01&end_date=2023-12-31" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
Interactive Testing
Download Sample Data
Get sample datasets to test your integration locally before using the live API.
Common Testing Scenarios
Fee Optimization
Compare fee schedules across exchanges to find the most cost-effective venues for your trading strategy.
Historical Analysis
Query historical data to backtest how fee changes would have impacted past trades.
Rule Changes
Monitor when exchange rules change and test how your systems respond to updates.
Multi-Venue Routing
Test smart order routing logic across multiple venues with real microstructure data.
Rate Limits
When testing, be aware of API rate limits:
- Standard tier: 100 requests/minute
- Professional tier: 500 requests/minute
- Enterprise tier: Custom limits
Use the X-RateLimit-Remaining response header to track your remaining quota.
Next Steps