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(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.