Socket
Book a DemoInstallSign in
Socket

bitcoin-de-api

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitcoin-de-api

A (very) simple javascript wrapper for the (very) simple bitcoin.de api

0.0.5
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

bitcoin-de-api

A (very) simple javascript wrapper for the (very) simple bitcoin.de api.

NPM

Install

npm install --save bitcoin-de-api

Run tests

npm run test

Test runs will have different outputs depending on whether or not an API_KEY was set in .env (see 'Usage' below).

Usage

Create a .env file at the root of your project and add your API_KEY:

API_KEY=your_api_key_goes_here_without_quotes

Add .env to your .gitignore file! It's a secret, right?! See dotenv if you are not sure what I am talking about.

const api = require('bitcoin-de-api')
const dotenv = require('dotenv')

dotenv.config() // parses .env and sets environnment variables
const apiKey = process.env.API_KEY

api.getTrades(apiKey, since) // since parameter is optional
  .then(data => {
    // do stuff with the data here
    console.log(data)
  })
  .catch( err => {
    console.error(err)
  })

API

methodreturns
getTrades()promise
getOrderBook()promise
getRate()promise

Copyright 2016 Matthias Munder.
Licensed under the MIT license.

js-standard-style

Keywords

bitcoin.de

FAQs

Package last updated on 26 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.