Skip to main content

Library for Homework

Project description

This library is submitted as part of homework-1 to hide polygon key access

Installation

pip install polygon-api-access-nn2094

Getting Started

Below library will be useful to securely access Polygon API. It abstracts the Polygon API key to secure it from getting exposed externally.

Take care of the dependencies

# dependencies
from polygon_access import Data_Aggregate

# Libraries To import
import math, os

Example:

Below is a driver code example to test out the working

# 4 currency pairs considered for forex exchange
currency_pairs = [["AUD", "USD", [], portfolio("AUD", "USD")],
                  ["EUR", "USD", [], portfolio("EUR", "USD")],
                  ["USD", "INR", [], portfolio("USD", "INR")],
                  ["USD", "PLN", [], portfolio("USD", "PLN")]]

# Driver code
op = Data_Aggregate(os.getcwd(), 'database')

# os.getcwd()
# this line gets the current working directory

To print the output after the above function call

print(op.acquire_data_and_write(currency_pairs))

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

polygon-api-access-nn2094-0.2.5.tar.gz (5.2 kB view hashes)

Uploaded Source

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