Skip to content
All library documents

Calling Public and Authenticated Exchange APIs

Article FMZ forum · Author: 发明者量化-小小梦

Summary

This Chinese-language tutorial section explains two ways to request exchange API data. For endpoints that do not require authentication, such as market data unrelated to account details, it describes using an HTTP query function and gives examples for retrieving a futures estimated delivery price and contract open interest. The response is a JSON string that can be parsed into an object for access to its fields.

For exchange endpoints that require authentication, the text directs readers to an exchange I/O function and says it cannot be used for endpoints already accessible through the direct HTTP query method. It refers readers to the API documentation for usage details. The examples concern particular endpoints and do not cover authentication setup, error handling, rate limits, or order execution.

Key ideas

  • Unauthenticated exchange endpoints can be queried directly with an HTTP request function.
  • The examples retrieve an estimated futures delivery price and contract open interest.
  • The HTTP response is JSON text that can be parsed into an object.
  • Authenticated endpoints use a separate exchange I/O function, with details deferred to API documentation.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.