OKCoin为用户提供了一整套简单而又强大的开发工具,旨在帮助用户快速、高效地将OKCoin交易功能整合到自己的应用当中。
OKCoin provides users with a simple and powerful set of development tools designed to help them integrate the OKCoin transaction function into their own applications quickly and efficiently.
OKCoin接口是提供服务的基础,开发者在OKCoin网站创建账号后,可以根据自身需求建立不同权限的API,并利用API进行自动交易或者提现。
The OKCoin interface is the basis for the provision of services, and the developers, after creating accounts on the OKCoin website, can create APIs with different privileges depending on their needs and use APIs for automated transactions or cashouts.
通过API可以快速实现以下功能:
The following functions can be achieved quickly through API:
- 获取市场最新行情
- 获取买卖深度信息
- 查询可用和冻结金额
- 查询自己当前尚未成交的挂单
- 快速买进卖出
- 批量撤单
- 快速提现到您的认证地址
获取接口权限后,可以通过阅读本接口文档来帮助开发。
When you get access to the interface, you can help with the development by reading this interface document.
OKCoin为用户提供了三种调用接口的方式,开发者可根据自己的使用场景和偏好选择适合自己的方式来查询行情、进行交易或提现。
OKCoin provides the user with three modes of calling the interface, and developers can choose their own ways to query, trade or present themselves according to their own use scenes and preferences.
REST,即Representational State Transfer的缩写,是目前最流行的一种互联网软件架构。它结构清晰、符合标准、易于理解、扩展方便,正得到越来越多网站的采用。其优点如下:
REST, or Representative State Transfer, is the most popular Internet software architecture. It is well structured, standard-compliant, easy to understand, easy to expand, and is being adopted by an increasing number of websites. Its advantages are as follows:
- 在RESTful架构中,每一个URL代表一种资源;
- 客户端和服务器之间,传递这种资源的某种表现层;
- 客户端通过四个HTTP指令,对服务器端资源进行操作,实现“表现层状态转化”。
建议开发者使用REST API进行现货交易或者资产提现等操作。
It is recommended that developers use REST API for off-the-shelf transactions or assets realization operations such as .
WebSocket是HTML5一种新的协议(Protocol)。它实现了客户端与服务器全双工通信,使得数据可以快速地双向传播。通过一次简单的握手就可以建立客户端和服务器连接,服务器根据业务规则可以主动推送信息给客户端。其优点如下:
WebSocket is a new protocol (Protocol) for HTML5. It achieves full-time communication between the client and the server, allowing data to be disseminated quickly in both directions. A simple handshake allows the client to be connected to the server, which, in accordance with the rules of the business, can voluntarily forward the information to the client. The advantages are as follows:
- 客户端和服务器进行数据传输时,请求头信息比较小,大概2个字节;
- 客户端和服务器皆可以主动地发送数据给对方;
- 不需要多次创建TCP请求和销毁,节约宽带和服务器的资源。
强烈建议开发者使用WebSocket API获取市场行情和买卖深度等信息。
strongly recommends that developers use WebSocket API to access information such as
获取OKCoin最新市场现货行情数据的接口及描述 Access interfaces for the latest market spot data on OKCoin and description of Get / api/v1/ticker for OKCoin Request Response 1) OK COIN客户支持文档 1) br>2)
Get /api/v1/ticker 取OKCoin行情
参数名
参数类型
必填
描述
symbol
String
否(默认btc_usd)
btc_usd:比特币; ltc_usd :莱特币; eth_usd :以太坊; etc_usd :以太经典; bch_usd :比特现金
2) 比特币交易网-API开发文档
注册有任何问题请添加 微信:MVIP619 拉你进入群
打开微信扫一扫
添加客服
进入交流群
发表评论