Skip to main content

A higher level of abstraction around API Endpoints.

Project description

Forecast Flows API

This package is designed as a high level of abstraction around the API endpoints associated with Samson Rock Capital's APIs.

The package provides a lightweight, clean method for interacting with the Microservices.

User Endpoints

  • create user - create_user endpoint enables user creation.
    create_user("username", "password")
    
  • login user - login_user endpoint enables user login.
    access_token = login_user("username", "password")
    
  • get user identification - get_user_identification endpoint enables authenticated users to see who else is registered.
    metadata = get_user_identification(12, access_token)
    

Forecast Flows Endpoints

  • post flows to database - post_flows_to_database endpoint enables addition of data to database.

  • get all index data from database - get_all_index_data_from_db endpoint enables extraction of all index data.

    get_all_index_data_from_db("index_name", "access_token")
    
  • get all index review data from database - get_index_review_data_from_db endpoint enables extraction of all index data for a given review.

    get_index_review_data_from_db("index_name", 2022, 3, "review_type", "access_token")
    
  • get all index review data for a single day - get_index_review_data_single_day endpoint enables extraction of all index data for a given review, on a single day.

    get_index_review_data_single_day("index_name", 2022, 3, "review_type", "2022-02-02", "access_token")
    
  • get all index review data for a date range - get_index_review_data_daterange endpoint enables extraction of all index data for a given review, in a date range.

    get_index_review_data_daterange("index_name", 2022, 3, "review_type", "2022-02-02", "2022-02-03" "access_token")
    

Announcement Endpoints

  • post announcement to database - post_announcements_to_database endpoint enables addition of data to announcement database.
  • get all announcements from database - get_all_index_announcements_from_db endpoint enables collection of all announcement data.
    get_all_index_announcements("index", "access_token")
    
  • get multiple announcements from database - get_multiple_index_announcement_data_from_db endpoint collects multiple announcements from database.
    get_multiple_index_announcement_data_from_db("index", "review_type", "access_token")
    
  • get a singular index announcement from database - get_index_announcement_data_from_db endpoint collects a singular announcement from the database.
    get_index_announcement_data_from_db("index", 2022, 3, "review_type", "access_token")
    

Date Handling Endpoints

  • post dates to database - post_dates_to_database endpoint enables addition of date data to the database.

  • get index dates from database - get_index_dates_data_from_db endpoint enables extraction of index dates.

    get_index_dates_data_from_db("index", 2022, 3, "review_type", "access_token")
    
  • get all index dates from database - get_all_index_dates_from_db endpoint enables extraction of dates for a singular index.

    get_all_index_dates_from_db("index", "access_token")
    

Name Mapping Endpoints

  • post index name - database acronym pairs to db - post_index_name_acronyms_to_database endpoint enables the posting of index name, index acronym and benchmark indices to the DB.
  • get index name - database acronym pairs from db - get_index_name_acronyms_from_database endpoint enables the retrieval of index name, DB acronym and benchmark index values.
get_index_name_acronyms_from_database("access_token")

Tracking Assumption Endpoints

  • post tracking assumptions to db - post_tracking_assumptions_to_database endpoint enables the posting of tracking assumptions to the DB.
  • get all tracking assumptions - get_all_tracking_assumptions endpoint enables retrieval of all tracking assumptions held in the db.
get_all_tracking_assumptions("access_token")
  • get tracking assumption history - get_index_tracking_assumption_history endpoint enables retrieval of historical profile of tracking assumptions for a given index.
get_index_tracking_assumption_history("index_acronym", "access_token")
  • get most recent tracking assumptions - get_most_recent_index_tracking_assumption endpoint enables the retrieval of the most recent tracking for a given index.
get_most_recent_index_tracking_assumption("index_acronym", "access_token")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SRC_Endpoints-0.0.0.1.8.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

SRC_Endpoints-0.0.0.1.8-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file SRC_Endpoints-0.0.0.1.8.tar.gz.

File metadata

  • Download URL: SRC_Endpoints-0.0.0.1.8.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for SRC_Endpoints-0.0.0.1.8.tar.gz
Algorithm Hash digest
SHA256 8405735db7ca99ce1c8a977e71a0c5e2cd29cce5d406fdd472ea8b12260d8f2d
MD5 d1d8ef518a9c4b2b75d20c2db310041f
BLAKE2b-256 3674fe71f0510ff8d78a2a29b0dffd6d8977b04ca2df36a3c4a578b3ea6af95b

See more details on using hashes here.

File details

Details for the file SRC_Endpoints-0.0.0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for SRC_Endpoints-0.0.0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a2e8ab8f8b17fd56316e08dc3cc9afa6081cb399e8f6f95615ca4a082979b593
MD5 efe04ec32793ca095c82652a845c48d8
BLAKE2b-256 d1fab5caa933fea48b7d21818de8616935489f01e0e8355ed684543c061d5545

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page