Skip to content

Conversation

chray-zhang
Copy link
Collaborator

@chray-zhang chray-zhang commented Aug 28, 2025

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

  • DD and mm Turn 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. See downloadFile on line 195 of transport/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

Screenshot 2025-09-02 at 2 09 27 PM Screenshot 2025-09-02 at 2 09 16 PM Screenshot 2025-09-02 at 2 09 07 PM Screenshot 2025-09-02 at 2 08 55 PM

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-k8s configuration 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-secrets configuration file or update the soak testing blacklist.
  • [ x] If a new adapter was made, or a new endpoint was added, update the test-payload.json file 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.

@chray-zhang chray-zhang changed the base branch from csv-parsing-utils to main August 28, 2025 19:22
@chray-zhang chray-zhang changed the title [OPDATA-3889] Full SFTP Transport and Endpoint [OPDATA-3889] Full SFTP EA for FTSE Sep 2, 2025
@chray-zhang chray-zhang changed the base branch from main to ftse-utils September 4, 2025 06:39
Base automatically changed from ftse-utils to main September 11, 2025 19:07
@dskloetc dskloetc changed the title [OPDATA-3889] Full SFTP EA for FTSE [OPDATA-3889] Minimal SFTP EA for FTSE Sep 17, 2025
@dskloetc dskloetc changed the title [OPDATA-3889] Minimal SFTP EA for FTSE [OPDATA-3889] Full SFTP EA for FTSE Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants