This repository was archived by the owner on May 15, 2023. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork1
Basic Javascript wrapper for OKCoin & OKEx's WebSocket API.
License
NotificationsYou must be signed in to change notification settings
nyg/okcoin-api
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Basic Javascript wrapper for OKCoin & OKEx's WebSocket API.
Seeindex.html for a live working example.
functionhandleIndex(message){// ...}functionhandleDepth(message){// ...}newOKCoin('wss://real.okex.com:10441/websocket').addChannelHandler('ok_sub_futureusd_btc_index',handleIndex).addChannelHandler('ok_sub_futureusd_btc_depth_quarter_60',handleDepth).start()
jsDelivr can be used to serve a specific version (seetags for version numbers):
<scriptsrc="https://cdn.jsdelivr.net/gh/nyg/okcoin-api@x.y.z/okcoin-api.js"></script>
Requirespako.
Doesn't support version 3 of the API.
About
Basic Javascript wrapper for OKCoin & OKEx's WebSocket API.
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published