Coder Social home page Coder Social logo

okx_resender's Introduction

OKX_resender

1. OKX_resender有什么用?

你可能遇到的问题:

  1. 请求被Ban,国内服务器无法直接访问OKX API接口;
  2. 使用HTTP Proxy代理存在网络不稳定性与秘钥安全问题;
  3. 运行实盘算法需要高配置服务器,同配置的境外服务器价格比境内服务器价格贵数倍以上;
  4. 本地测试每次都需要将代码同步给境外服务器,测试不方便;
  5. 实盘服务的请求权重过多,经常被官方限制,如何通过多IP减缓权重压力;

OKX_resender是用于转发OKX请求的Web服务,帮助用户搭建私有转发服务器,保证请求的稳定、低延时与秘钥安全,OKX(库)实盘交易框架全面支持OKX_resender功能。

2. 系统说明

  1. 系统:Centos7.6
  2. 地区:香港
  3. 转发服务器性能最低要求:(2C2G10Mbps)建议:(2C4G30Mbps)
  4. 以下文档采用腾讯云的轻量应用服务器(2C4G30Mbps)

7. PyTED对于OKX_resender的使用建议

  1. 注意服务器的带宽,最佳应>=30Mpbs,因为有些单次请求的数据量较大,转发速度的瓶颈在于带宽(例如:获取全部产品信息);
  2. 不建议打开日志记录功能,极简配置更利于转发速率;
  3. 推荐使用服务器的内网调用,减少通信延迟;
  4. 对于时间粒度为1s的高频交易,实时价格信息同步不建议使用OKX_resender;
    • 以香港服务器为例。内地通过OKX_resender转发并获得响应的平均等待时间为:220ms(公网通信)
    • 香港服务器与OKX通信的平均等待时间为:80ms
    • OKX仅建议使用香港服务器

okx_resender's People

Contributors

fireme1on avatar pyted avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.