Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 2.19 KB

File metadata and controls

47 lines (30 loc) · 2.19 KB

English | 中文

API Address Description

Stock HTTP Interface API Address

/quote-stock-b-api Stock Query API

The query API uses HTTPS protocol, the complete URL is:
https://quote.tradeswitcher.com/quote-stock-b-api

Each time a query request is sent, the method name and token information need to be provided

Single product request K-line example:
https://quote.tradeswitcher.com/quote-stock-b-api/kline?token=yourToken&query=queryData

Batch product request K-line example:
https://quote.tradeswitcher.com/quote-stock-b-api/batch-kline?token=yourToken
Note: When making batch product requests for K-line, the request parameters should be placed in the body.

Request for latest transaction price example:
https://quote.tradeswitcher.com/quote-stock-b-api/trade-tick?token=yourToken&query=queryData

Request for latest market depth example:
https://quote.tradeswitcher.com/quote-stock-b-api/depth-tick?token=yourToken&query=queryData

For specific calling methods, please refer to the HTTP interface list

Forex, Cryptocurrency (Digital Currency), Commodity (Precious Metal) HTTP Interface API Address

/quote-b-api Forex, Cryptocurrency (Digital Currency), Commodity (Precious Metal) Query API

The query API uses HTTPS protocol, the complete URL is:
https://quote.tradeswitcher.com/quote-b-api

Each time a query request is sent, the method name and token information need to be provided

Single product request K-line example: https://quote.tradeswitcher.com/quote-b-api/kline?token=yourToken&query=queryData

Batch product request K-line example: https://quote.tradeswitcher.com/quote-b-api/batch-kline?token=yourToken Note: When making batch product requests for K-line, the request parameters should be placed in the body.

Request for latest transaction price example: https://quote.tradeswitcher.com/quote-b-api/trade-tick?token=yourToken&query=queryData

Request for latest market depth example: https://quote.tradeswitcher.com/quote-b-api/depth-tick?token=yourToken&query=queryData

For specific calling methods, please refer to the HTTP interface list