Skip to content

Latest commit

 

History

History

nodejs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

NodeJS Example

To run the following, first do:

npm install

Once completed, running the script node polygon.js should produce results similar to:

FOREX: {
    "p": "ZAR/JPY",
    "a": 8.18,
    "b": 8.156,
    "t": 1492597299475
}
FOREX: {
    "p": "XAU/USD",
    "a": 1282.99,
    "b": 1282.54,
    "t": 1492597299475
}
FOREX: {
    "p": "GBP/JPY",
    "a": 139.74,
    "b": 139.713,
    "t": 1492597299475
}
FOREX: {
    "p": "USD/JPY",
    "a": 108.873,
    "b": 108.859,
    "t": 1492597299475
}