Skip to main content

Demo library

Project description

polygon

Data engineering HW1

Install

pip install Polygon_forex

Get started

from Polygon_forex import AUDUSD_return

#Instantiate a object

#avg price = 1

A = AUDUSD_return(tick_time="2022-06-04 10:39:06",avg_price=1)

A.last_price = 10

A.hist_return = 100

A.run_sum = 100.0

A.num = 10

#pop price = 2

#Get avg return

print("The average return of AUDUSD is:")

print(A.get_avg(pop_value=2.0))

'''

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_forex-0.1.2.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file Polygon_forex-0.1.2.tar.gz.

File metadata

  • Download URL: Polygon_forex-0.1.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for Polygon_forex-0.1.2.tar.gz
Algorithm Hash digest
SHA256 231f68bdc89b87ed3e606b79327fb9671c1eebeaff955ed48aeea607a515c7f6
MD5 56f1a346ca9197d54a9796fc9e3c7853
BLAKE2b-256 424d6760c1a486b1468e897cc28ecb86533a3785cb7d9ba0c75dba5de8f99971

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