external-adapters-js
external-adapters-js copied to clipboard
[OPDATA-3889] Full SFTP EA for FTSE
Closes https://smartcontract-it.atlassian.net/browse/OPDATA-3889
Description
-
Added sftp endpoint and sftp transport
-
Input will be the Index name from a list of possible supported indicies
-
Have screenshots of the return values and responses underneath
-
Only supports FTSE100, RUSSELL1000, RUSSELL2000, and RUSSELL3000 as of right now
-
CSV Parsing has a strict structure that it follows or expects
-
DDandmmTurn over happens at 4 PM GMT and has a 3 day fallback if file not found. We add this because the file population is varied and there is no concrete schedule that we can follow. SeedownloadFileon line195oftransport/sftp.ts
Steps to Test
Example curl commands:
curl -s \
--header "Content-Type: application/json" \
--request POST \
--data '{
"data": {
"endpoint": "sftp",
"instrument": "Russell3000INDEX"
}
}' \
http://localhost:8080/ | jq
Screenshots
Quality Assurance
- [ x] If a new adapter was made, or an existing one was modified so that its environment variables have changed, update the relevant
infra-k8sconfiguration file. - [ x] If a new adapter was made, or an existing one was modified so that its environment variables have changed, update the relevant
adapter-secretsconfiguration file or update the soak testing blacklist. - [ x] If a new adapter was made, or a new endpoint was added, update the
test-payload.jsonfile with relevant requests. - [ ] The branch naming follows git flow (
feature/x,chore/x,release/x,hotfix/x,fix/x) or is created from Jira. - [ x] This is related to a maximum of one Jira story or GitHub issue.
- [ x] Types are safe (avoid TypeScript/TSLint features like any and disable, instead use more specific types).
- [ x] All code changes have 100% unit and integration test coverage. If testing is not applicable or too difficult to justify doing, the reasoning should be documented explicitly in the PR.