gastzars / bitkub-js Goto Github PK
View Code? Open in Web Editor NEWA javascript library for Bitkub API
License: MIT License
A javascript library for Bitkub API
License: MIT License
var Bitkub = require('bitkub')
var client = new Bitkub({
api_key: my_api_key,
api_secret: my_api_secret,
})
data = {
'sym': 'THB_BTC',
'amt': 10,
'rat': 260000,
'typ': 'limit'
}
client.market_place_bid()xxxxxxxxxxxxxxxxxxxxxxx
Map a response from API to a class or interface. And, also error code listed below.
Refer to the following descriptions:
Code | Description |
---|---|
0 | No error |
1 | Invalid JSON payload |
2 | Missing X-BTK-APIKEY |
3 | Invalid API key |
4 | API pending for activation |
5 | IP not allowed |
6 | Missing / invalid signature |
7 | Missing timestamp |
8 | Invalid timestamp |
9 | Invalid user |
10 | Invalid parameter |
11 | Invalid symbol |
12 | Invalid amount |
13 | Invalid rate |
14 | Improper rate |
15 | Amount too low |
16 | Failed to get balance |
17 | Wallet is empty |
18 | Insufficient balance |
19 | Failed to insert order into db |
20 | Failed to deduct balance |
21 | Invalid order for cancellation |
22 | Invalid side |
23 | Failed to update order status |
24 | Invalid order for lookup |
30 | Limit exceeds |
40 | Pending withdrawal exists |
41 | Invalid currency for withdrawal |
42 | Address is not in whitelist |
43 | Failed to deduct crypto |
44 | Failed to create withdrawal record |
streaming data from websocket
An automated test for Bitkub and API class
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.