❓ FAQ❓ FAQ

Frequently Asked Questions

Common questions and answers for DataAPI usage.

🔐 Authentication

Q: How to get API key?

A: Visit DataAPI Console, register an account and generate keys in the “API Management” page.

Q: Where to use the API key?

A: Use it in the token parameter in HTTP requests.

Q: What to do with 401 error?

A: Check the following:

  • Check if API key is correct
  • Check if API key is expired
  • Check if API key is disabled
  • Check if API key is restricted
  • Check if API key is rate limited

Q: Can I use API key directly in frontend?

A: Not recommended. API keys should be used in backend to avoid exposure in client-side.

Q: What is the data update frequency?

A: Depends on the plan:

  • Free plan: 15 minutes delay
  • Paid plan: Real-time data (< 1 second delay)

Q: What data types are supported?

A: Supports major global markets:

  • Stocks
  • Cryptocurrencies
  • Forex
  • Indices

Q: How far back does historical data go?

A:

  • Stocks: Up to 10 years
  • Cryptocurrencies: Up to 5 years
  • Forex: Up to 10 years
  • Indices: Up to 10 years

Q: What time periods are supported for K-line data?

A: Supports multiple periods from 1 minute to 1 month: 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 3d, 1w, 1M

🚀 API Usage

Q: How to handle rate limits?

A:

  1. Check rate limit information in response headers
  2. Implement exponential backoff retry mechanism
  3. Consider upgrading plan for higher limits
  4. Use WebSocket API for long connections to avoid frequent requests

Q: How to handle API errors?

A: All errors return structured error information:

{
  "code": 500,
  "status": "error",
  "message": "Error description"
}

Q: How to get real-time data?

A: Two ways:

  1. REST API: Polling requests with appropriate intervals
  2. WebSocket: Real-time push (recommended) for long connections

Q: Are there limits on WebSocket connections?

A: Yes, depends on the plan:

  • Free plan: 1 connection
  • Professional plan: 100 connections

Q: How to check usage?

A: Check detailed usage in the “Usage Statistics” page in the console.

Q: Do you support pay-as-you-go pricing?

A: Enterprise plans support custom pricing, please contact sales team.

🛠️ Technical Support

Q: What to do if data is inaccurate?

A:

  1. Check data timestamp
  2. Confirm market trading hours
  3. Contact technical support: [email protected]

Q: What to do if API response is slow?

A:

  1. Check network connection
  2. Reduce request data volume
  3. Use CDN for nearby access
  4. Consider using WebSocket for long connections

Q: How to report bugs?

A: Send email to [email protected] with:

  • Request URL and parameters
  • Response content
  • Expected result
  • Reproduction steps

📈 Data Quality

Q: What are the data sources?

A: We aggregate data from multiple authoritative sources:

  • Official exchange data
  • Reputable financial data providers

Q: How do you ensure data accuracy?

A:

  • Cross-validation with multiple data sources
  • Real-time anomaly detection

📞 Contact Us

If the above answers don’t solve your problem:


We are committed to providing you with the best service experience!