Home >web3.0 >Ouyi okex trading api share

Ouyi okex trading api share

WBOY
WBOYOriginal
2024-07-25 18:01:021086browse

OKEx trading API adopts a per-request charging model, and the share is determined by the following factors: Request type: 0.0002 BTC per request for spot trading, 0.0003 BTC for perpetual contracts, and 0.0004 BTC for delivery contracts. Request frequency: The basic rate applies to less than 10 requests per second, the Tier 1 rate applies to 10-50 requests, the Tier 2 rate applies to 50-100 requests, and the Tier 3 rate applies to more than 100 requests. Other factors: Master API key requests are more expensive, batch requests are less expensive, and live data subscriptions cost extra.

Ouyi okex trading api share

OKEx Trading API Shares

OKEx Trading API adopts a flexible per-request charging model, and the sharing is determined by the following factors:

Request type

  • Spot transaction: per transaction Request 0.0002 BTC. permanent contract:
  • Each request 0.0003 BTC
  • fangling contract:
  • Each request 0.0004 BTC
  • request frequency

Basic rate:
    For less than 10 per second, it is less than 10 per second. requests, the base rate applies.
  • Tier 1:
  • For 10-50 requests per second, Tier 1 rates apply, above the base rate.
  • Tier 2:
  • For 50-100 requests per second, Tier 2 rates apply, higher than Tier 1 rates.
  • Tier 3:
  • For requests above 100 times per second, Tier 3 rate applies, which is the highest rate.
  • Other Factors

API Key Type:
    A higher fee will be charged for requests using the Master API key.
  • Batch Requests:
  • For batch requests, the cost per request will be lower than for individual requests.
  • Data Subscription Fee:
  • For real-time data subscription, there is an additional fee.
  • Example of rate calculation

For example, for executing 20 spot trading requests per second, the Tier 1 rate will be applied:

Base rate: 0.0002 BTC

Tier 1 rate: 0.0002 BTC + (0.00005 BTC x 10)

Tier 1 Rate: 0.0007 BTC


So the fee per request is 0.0007 BTC and the total fee for 20 requests is 0.014 BTC.

Conclusion

OKEx trading API is divided into factors such as request type, request frequency, API key type and batch request. Understanding these factors is crucial to optimizing your trading costs.

The above is the detailed content of Ouyi okex trading api share. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn