Skip to main content

Synthetic after-hours quote generator

Project description

afterquote

Synthetic after-hours quote generator based on an asset and its underlying security.

PyPI version CI


📦 What is this?

afterquote lets you estimate synthetic prices for a financial security based on the real-time performance of a given correlated underlying asset — useful when one market is closed and the other is still trading.


🚀 Installation

From PyPI:

pip install afterquote

Locally:

pip install -e .

🧪 Usage

from afterquote import SecurityPair

pair = SecurityPair("MAG5.L", "MAGS")
quote_df = pair.quote()
print(quote_df)

📘 Example Output

  base_security underlying_security  leverage           base_close_time  base_close_price  adj_percent_return                 quote_time   quote_price
0        MAG5.L                MAGS         5 2025-05-09 11:30:00-04:00             792.0           -1.044288  2025-05-09 19:59:00-04:00    783.729235

🤝 Contributing

Feel free to open issues or submit pull requests if you find bugs or want to improve the package - Junaid :)

📄 License

MIT License. See the LICENSE file for full details.

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

afterquote-0.1.2.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

afterquote-0.1.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: afterquote-0.1.2.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for afterquote-0.1.2.tar.gz
Algorithm Hash digest
SHA256 11b9221280ad9acbfbc6e8fb4c63e1ed700f2fd476ef76531481f2b7570a9d5d
MD5 9d2b40af1049819eb132164a898e2d8c
BLAKE2b-256 eeb649ac70b92a2363778a2d9449afab3c6faff11ccdb71c6b02c667444de0e2

See more details on using hashes here.

File details

Details for the file afterquote-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: afterquote-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for afterquote-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 684733edc54416195c7e94a068da436aada572893d10a5fb8a191e9053da524c
MD5 feb17e341b3bd95488b189829ba425e7
BLAKE2b-256 cdefe4845e11a813d35c9e11d6df62420c4557f9073b338c4e0e1946750b0ff7

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