Flat Files - Billing and Usage
The Flat Files uses a consumption-based billing model. Charges are calculated based on two dimensions: API requests made and data downloaded.
Billing Dimensions
- API Requests: This includes GET and LIST operations.
- Data Downloaded: The volume of data retrieved, varying by data type.
Pricing
API Requests
Request type | Price per 1,000 requests |
---|---|
GET | $10.00 |
LIST | $10.00 |
HEAD | $10.00 |
Data Downloaded
Data Type | Price per GB |
---|---|
Limit Book Data | $1.00 |
Quotes | $1.00 |
Trades | $3.00 |
Detailed Data Volumes
The following table shows the breakdown of data volumes for 2024-06-20 across major exchanges. Please note that these volumes are representative of a single day and may vary for different dates.
Data Type | Exchange | Size (MB) | Files |
---|---|---|---|
Limit Book Data | KRAKEN | 9,651 | 694 |
Limit Book Data | BINANCE | 8,627 | 1,282 |
Limit Book Data | COINBASE | 4,978 | 401 |
Limit Book Data | BITSTAMP | 1,893 | 203 |
Limit Book Data | GEMINI | 671 | 110 |
Limit Book Data | LMAXDIGITAL | 63 | 16 |
Quotes | KRAKEN | 2,506 | 702 |
Quotes | BINANCE | 1,833 | 1,282 |
Quotes | COINBASE | 1,100 | 401 |
Quotes | BITSTAMP | 525 | 205 |
Quotes | GEMINI | 192 | 110 |
Quotes | LMAXDIGITAL | 50 | 16 |
Trades | BINANCE | 1,823 | 1,281 |
Trades | COINBASE | 225 | 391 |
Trades | KRAKEN | 21 | 697 |
Trades | BITSTAMP | 4 | 178 |
Trades | GEMINI | 3 | 109 |
Trades | LMAXDIGITAL | 1 | 16 |
Realistic Usage Scenarios
Let's explore some realistic usage scenarios based on the data volumes from 2024-06-20, assuming users typically access a subset of available data, focusing on specific symbols or a portion of an exchange's data.
Scenario 1: Daily Download of Top Cryptocurrencies from Multiple Exchanges
A user downloads data for the top 10 cryptocurrencies (approximately 25% of the data) from BINANCE, COINBASE, and KRAKEN each day:
-
API Requests:
- LIST requests: 9 (one for each data type per exchange)
- GET requests: 670 (estimated 25% of files for these exchanges)
- Total requests: 679
- Cost for requests: (679 / 1,000) * $10.00 = $6.79
-
Data Downloaded (25% of total volume):
- Limit Book: (8,627 + 4,978 + 9,651) * 0.25 MB * $1.00/GB = $5.78
- Quotes: (1,833 + 1,100 + 2,506) * 0.25 MB * $1.00/GB = $1.36
- Trades: (1,823 + 225 + 21) * 0.25 MB * $3.00/GB = $1.55
- Total cost for data: $8.69
Total cost for this scenario (per day): $6.79 + $8.69 = $15.48 Estimated monthly cost (30 days): $15.48 * 30 = $464.40
Scenario 2: Weekly Analysis of Specific Trading Pairs
A user downloads data for 5 specific trading pairs (approximately 10% of the data) from BINANCE and COINBASE once a week:
-
API Requests (per week):
- LIST requests: 6 (one for each data type per exchange)
- GET requests: 168 (estimated 10% of files for these exchanges)
- Total requests: 174
- Cost for requests: (174 / 1,000) * $10.00 = $1.74
-
Data Downloaded (10% of total volume, for 7 days):
- Limit Book: (8,627 + 4,978) * 0.10 MB * $1.00/GB * 7 = $9.52
- Quotes: (1,833 + 1,100) * 0.10 MB * $1.00/GB * 7 = $2.05
- Trades: (1,823 + 225) * 0.10 MB * $3.00/GB * 7 = $4.31
- Total cost for data: $15.88
Total cost for this scenario (per week): $1.74 + $15.88 = $17.62 Estimated monthly cost (4 weeks): $17.62 * 4 = $70.48
Scenario 3: Monthly Deep Dive on a Single Exchange
A user performs a comprehensive analysis of KRAKEN data (100% of KRAKEN data) for the past month:
-
API Requests (per month):
- LIST requests: 3 (one for each data type)
- GET requests: 2,093 (all KRAKEN files)
- Total requests: 2,096
- Cost for requests: (2,096 / 1,000) * $10.00 = $20.96
-
Data Downloaded (100% of KRAKEN volume, for 30 days):
- Limit Book: 9,651 MB * $1.00/GB * 30 = $289.53
- Quotes: 2,506 MB * $1.00/GB * 30 = $75.18
- Trades: 21 MB * $3.00/GB * 30 = $1.89
- Total cost for data: $366.60
Total cost for this scenario (per month): $20.96 + $366.60 = $387.56
Scenario 4: Daily Monitoring of Emerging Cryptocurrencies
A user tracks 20 emerging cryptocurrencies (approximately 5% of the data) across all exchanges daily:
-
API Requests (per day):
- LIST requests: 18 (one for each data type per exchange)
- GET requests: 355 (estimated 5% of total files)
- Total requests: 373
- Cost for requests: (373 / 1,000) * $10.00 = $3.73
-
Data Downloaded (5% of total volume):
- Limit Book: (9,651 + 8,627 + 4,978 + 1,893 + 671 + 63) * 0.05 MB * $1.00/GB = $1.27
- Quotes: (2,506 + 1,833 + 1,100 + 525 + 192 + 50) * 0.05 MB * $1.00/GB = $0.30
- Trades: (1,823 + 225 + 21 + 4 + 3 + 1) * 0.05 MB * $3.00/GB = $0.31
- Total cost for data: $1.88
Total cost for this scenario (per day): $3.73 + $1.88 = $5.61 Estimated monthly cost (30 days): $5.61 * 30 = $168.30
Best Practices for Cost Optimization
- Focus on specific symbols or trading pairs relevant to your analysis to reduce data volume and costs.
- Use efficient querying to minimize unnecessary API calls, especially when checking for new data.
- Implement delta downloads to retrieve only new or updated data since your last download.
- Consider the frequency of data downloads based on your analysis needs. Daily downloads may not always be necessary.
- Cache downloaded data locally to avoid re-downloading unchanged historical data.
- Regularly review your data usage patterns and adjust your download strategy to optimize costs.
- Use LIST operations judiciously to minimize API requests when you know the exact files you need.
Remember, data volumes and file counts may vary from day to day based on market activity and other factors. The scenarios presented here are based on the data from 2024-06-20 and should be considered as examples. Your actual usage and costs may differ.
For more information on optimizing your usage and understanding your bill, please contact our support team.