Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@terryx/oanda-rest

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

@terryx/oanda-rest

Oanda Rest is a api wrapper for [oanda rest-v20](http://developer.oanda.com/rest-live-v20/introduction/) with [got](https://github.com/sindresorhus/got) serving as underlying HTTP requests library ### Getting started Requires NodeJS >= v4

  • 1.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Overview

Oanda Rest is a api wrapper for oanda rest-v20 with got serving as underlying HTTP requests library

Getting started

Requires NodeJS >= v4

$ npm install @terryx/oanda-rest

Usage

const OandaRest = require('@terryx/oanda-rest')
const api = OandaRest({
  accountID: 'OANDA_ACCOUNT_ID',
  endpoint: 'https://api-fxpractice.oanda.com',
  apiKey: 'API_KEY'
})

api.accounts().then(res => {
  // account details
  console.log(res.account)
})

API

api.accounts()

api.accountsSummary()

api.accountsInstruments()

api.createOrder(OrderRequest)

api.cancelOrder(OrderID)

api.instrumentsCandles = (InstrumentName, additionalParams = {})

api.instrumentsPrice = (additionalParams = {})

Keywords

FAQs

Package last updated on 18 Feb 2019

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc