Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on May 15, 2023. It is now read-only.
/okcoin-apiPublic archive

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

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Basic Javascript wrapper for OKCoin & OKEx's WebSocket API.

Example

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

Use

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>

Dependency

Requirespako.

Note

Doesn't support version 3 of the API.

About

Basic Javascript wrapper for OKCoin & OKEx's WebSocket API.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp