sixmigration-toolsetdeprecated

Making request to production hotpot for SIX data and log them

Usage no npm install needed!

<script type="module">
  import sixmigrationToolset from 'https://cdn.skypack.dev/sixmigration-toolset';
</script>

README

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:

  3. User input a parameter to indicate the input template

  4. 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

  5. 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.