1.0.7 • Published 6 years ago

sixmigration-toolset v1.0.7

Weekly downloads
33
License
-
Repository
-
Last release
6 years ago

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.

  1. SymbolDataRequester:
  2. User input a parameter to indicate the input template
  3. 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

  1. /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.