Skip to content

API Service that pulls forex data and returns CSV file based on the parameters

Notifications You must be signed in to change notification settings

awhipp/forex-api-export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forex API Export

API Service that pulls forex data and returns CSV file or JSON based on the parameters

Setup

  • npm install
  • Update .env with OANDA Access Key
  • npm start

API Parameters

  • instrument (required)
  • granularity (required)
  • format (optional)
    • Returns a CSV file if csv is provided
    • Returns a JSON object if json is provided
  • count (optional)
    • Number of candlesticks back that you want to be provided. Maximum of 2000.
    • Default (if not provided): 2000
  • from (optional)
    • Candlesticks returned will be from the specified time.
    • 10 digit epochtime, or number of seconds since 1970.
    • If provided with the to parameter then it ignores the count parameter
    • Number of candlesticks returned is limited to 2000.
  • to (optional)
    • Candlesticks returned will be to the specified time.
    • 10 digit epochtime, or number of seconds since 1970.
    • If provided with the from parameter then it ignores the count parameter
    • Number of candlesticks returned is limited to 2000.

Examples

About

API Service that pulls forex data and returns CSV file based on the parameters

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published