This package has been deprecated

Author message:

no longer maintained

sixmigration-toolset

1.0.7 • Public • Published

A E2E testing tool for the Xignite data.

Usage:
To use XigniteSymbolAgent
=> In command line
=> node RunXigniteSymbolAgent.js "instrumentClassType"[Index, MutualFunds];
=> The symbols will be stored into /Symbols/"instrumentClassType"



Modules:


Main:
1. SymbolRequester:
Fetch all the symbols of a instrumentClass from Xignite public website.
categorize and store them into differernt files with group name as the file name.

2. SymbolDataRequester:
1. User input a parameter to indicate the input template
2. inputParser parses this input template into an arry of "XigniteDataRequestDTO"s.
XigniteDataRequestDTO will contain info:
1) the raw url
2) domain and parameters for HTTP request
3) srcFile to load placeHolder
4) dstFile to store the result
4. Store result in this format.
{
"placeHolder1" : {
srcURL:
result: {}
},
"placeHolder2" : {
srcURL:
result:{}
},
...
}





Utilty:
1. /ErrorHandler:
Log4js.js: logger
Domain.js: catch error at a global level


2. /IO
HttpAgent.js: send http request using "superagent" library
FileManager:
Uniform the input relative filePath, assuming the /nodeCrawler as the root
Delete a entire folder if there is no files in it.
Can write into a file which doesn't exist before by creating its parent folder and that file first.




Readme

Keywords

none

Package Sidebar

Install

npm i sixmigration-toolset

Weekly Downloads

7

Version

1.0.7

License

none

Unpacked Size

79.4 MB

Total Files

57

Last publish

Collaborators

  • zxksqsm