Package - btc-markets

Category: Precios BTC y ETH

btc markets two factor

2 First, 92,174 trades have a systematic data error whereby the fiat amount is the same in the primary and the secondary currency, and thus incorrect by a factor. Bowler recommended BTC Markets customers to ensure two-factor authentication is enabled to protect their account, and to change the. The Australian cryptocurrency exchange, BTC Markets, has that users' should enable two-factor authentication (2FA) to enhance the security.

Btc markets two factor - think

BTC Markets Javascript API Client

This library is a node.js wrapper for the private and public methods exposed by the BTC Markets API. You will need to have a registered account with BTC Markets and generated API keys to access the private methods.

Please contact support@btcmarkets.net if you are having trouble opening an account or generating an API key.

Install

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 v0.0.10.

Other changes are:

  • Removed the Underscore dependency
  • Added static numberConverter to convert decimal numbers to BTC Markets API integers
  • Added withdrawalHistory API (still in preview so not tested)

Design Principles

  • thin the client is just a simple wrapper to the BTC Markets API. There is no parameter validation as this is delegated to the BTC Market API server. Similarly, there is no data transformation.
  • errors all errors are returned as Error objects which can be used programmatically or for debugging
  • no retries it's up to the calling program to handle retries as it'll vary between programs. For example, error handling timeouts on mutable API calls like addTrade and cancelOrder is not as simple as retying the API call as the operation may have been successful on the exchange but the response back was not.

Error handling

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:

  • message a description of the error with all the available information so problems in production can be diagnosed. For example, the url, http request method, parameters, error codes and messages
  • name the HTTP error code or BTC Markets error message so specific errors can be programatically detected.
  • cause the underlying error object. eg the error object from a failed request or json parse. Note there will be no cause error for BTC Markets errors

Security Warning

Do not commit your API keys into public source code repositories. These can be in code, config files or IDE config files used to run tests or processes.

If you can't avoid committing API keys into your repo then use something like git-crypt.

Most cloud providers now offer solutions for securely storing API keys. For example:

And while I'm at it, make sure you enable two-factor authentication. Your account is easy to hack without 2FA enabled. You have been warned!

Donations

If you'd like to thank me for this library, you can always donate some of your crypto trading profits to:

  • BTC 13CPGPRf63nVWFkdnJgmvC4K69YGeR4zNn
  • ETH 0x775053A6125cB51e618Eb132f00E93d6033934AD

Examples

The following is from examples.js

Current Tags

  • 1.1.1                                ...           latest (2 years ago)

19 Versions

  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.0.10                                ...           3 years ago
  • 0.0.9                                ...           3 years ago
  • 0.0.8                                ...           3 years ago
  • 0.0.7                                ...           3 years ago
  • 0.0.6                                ...           5 years ago
  • 0.0.5                                ...           5 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Источник: https://developer.aliyun.com/mirror/npm/package/btc-markets

By -

2 thoughts on “Btc markets two factor”

Leave a Reply

Your email address will not be published. Required fields are marked *