BTC Markets Node SDK. A complete 24crypto.de wrapper for the BTC Markets API. Installation. Install with npm. npm install btcmarkets-node-sdk Install with yarn. yarn add btcmarkets-node-sdk Getting started. npm install btc-markets Version 1.x This library has bee upgraded to be written in TypeScript and use promises. If you want the old version that used to callbacks, then use v Description. 24crypto.de API wrapper to BTCC (formally BTC China) bitcoin exchange. Publisher.
On average report generation takes about 20 seconds so please allow at least 10 seconds and recommended 30 seconds before attempting to get detail of the report after requesting it via the previous API. Trying too quickly to get detail a newly created report will result in http response. A successful response of this API contains a link that you can use to download the report content. The attribute contentUrl inside the response is a link to download the report content in either json or csv format.
Please note that report content files are only available for download for up to 30 minutes after creation time. Sending subscribe message allows you to start receiving events for the specified channels and marketIds. This event is published when there is any change in the order status, including placement, matching, cancellation, and triggering.
Those events are published when deposit or withdraws of funds are requested by a user or approved by the system and result in balance updates. Channel name used is fundChange. Below is an example of error handling using try catch when placing orders.
The error codes along with the message can be used to handle specific situations programmatically. Your project will be rebuilt upon changes. TSDX has a special logger for you convenience. Error messages are pretty printed and formatted for compatibility VS Code's Problems tab. Bundles the package to the dist folder.
Runs the test watcher Jest in an interactive mode. By default, runs tests related to files changed since the last commit.
BTC Markets welcomes contributions from anyone and everyone. Please see our guidelines for contributing. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. Skip to content. Go back. Launching Xcode If nothing happens, download Xcode and try again. Latest commit. Git stats 12 commits. Failed to load latest commit information. View code. About Node. Releases 3 tags. Packages 0 No packages published. Contributors 4.
You signed in with another tab or window. Reload to refresh your session. The current price shown is the last price a buyer and a seller agreed to exchange at.
We do not specifically disallow the use of VPNs; however, the use of a VPN can cause delays in our identity verification systems as well as the processing of deposits and withdrawals. We only provide a service for our users to safely trade with one another. Our blockchain assets are sourced by deposits from our users. We offer a managed service, so once you have bought blockchain assets you may send, receive and store your assets on our exchange.
We always recommend that our users manage their own funds and withdraw to a personal wallet after purchase. There are many third-party wallets to choose from and as such, we recommend you read up on how best to manage your blockchain wallets. Any users found to be using our services for such purpose will have their account terminated. Any users found to be using our services for such purposes will have their account terminated.
General What are blockchain assets? Bitcoin is an example of a blockchain asset. You can send Bitcoin over the Internet directly as easily as sending an email. Like cash, Bitcoin transactions are irreversible.