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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for polygon-api-access-nn2094-0.1.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62ce55712fcffaa28f8c7fc37618827eff9fff19d6452837cec766c54d1b9927 |
|
MD5 | 5a3527d962009f4bbcc4bfdc39b699b6 |
|
BLAKE2b-256 | 9baf2eaa04943151810dd8dd9a9298c83966911c5aee996ba6af3767d5c2fa53 |