API Sample Code

OKCoin currently provides sample code for C#, C++, JAVA, PHP and Python. Other languages will follow soon. Feel free to contribute to our github repository if you have more sample code to share. It will be much appreciated! SNI must be supported in order to use the API, otherwise, connection may fail. All demo support SNI.

SNI support

SNI(Server Name Indication) is designed to improve the SSL/TLS networking protocol and is applied in SSLv3/TLSv1. SNI enables a client to indicate which hostname it is attempting to connect to at the start of the SSL handshaking (specifically when a client sends ClientHello msg). This allows the server to switch to the right domain and return the corresponding certificate.

Rest Example
提示

请先登录

客服+852 5808 5768
在线咨询 在线咨询
在线留言 发起提问
聊天室
OKCoin聊天室
请遵守聊天室规则!详情>>
客服+852 5808 5768
聊天室规则 X