Node btc-marketsBTC Markets Bitcoin Exchange | Buy & Sell BTC With AUD
Batch operations are only containers for multiple requests, so each individual request is handled separately from the rest of the requests in the batch. Once all items in the batch are processed then a single response containing orders added and orders cancalled is returned along with an attribute called unprocessedRequests that is an array of any item in the batch thet can't be processed.
Note that you must provide clientOrderId when placing orders in batch. This allows items inside a batch request to be tracked and processed accurately.
When cancelling orders, you can either use orderId or clientOrderId within the request. 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. Work fast with our official CLI.
Learn more. If nothing happens, download GitHub Desktop and try again. If nothing happens, download Xcode and try again. If nothing happens, download the GitHub extension for Visual Studio and try again. This library is a node. Please contact support btcmarkets. 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 v0.
The first parameter to each API function is a callback function which is passed error and data objects. The error object is an instance of VError which is an extension of the standard Error object. The three main properties are:. Do not commit your API keys into public source code repositories. We encourage using our latest API for any new trading projects. For more information please refer to the wiki area.
Releases No releases published. Packages 0 No packages published. Contributors 9. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window.