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 details)

Uploaded Source

File details

Details for the file polygon-api-access-nn2094-0.2.5.tar.gz.

File metadata

File hashes

Hashes for polygon-api-access-nn2094-0.2.5.tar.gz
Algorithm Hash digest
SHA256 35cc6c04f902dc8f766c27df763b6380976a9d25b952e866c495c26cfaaed8d8
MD5 47241ae309a4f2a4dc5698482616e16e
BLAKE2b-256 42b36b83de93a0a22b5e480cf7fad8fcc030c0f03e6061c1999d646193dcd4e1

See more details on using hashes here.

Supported by

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