Metadata-Version: 2.1
Name: polygon-api-access-nn2094
Version: 0.1.8
Summary: Library for Homework
Home-page: https://polygon-api-access-nn2094.readthedocs.io/
Author: Nilansh Netan
Author-email: nn2094@nyu.edu
License: MIT
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown

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

```python
# 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

```python

# 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

```python
print(op.acquire_data_and_write(currency_pairs))

```
