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.3.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.3-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: afterquote-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 48e4317bfe5656945a1cf20f50e731db806c5fb2b7de2388c495c20421755024
MD5 84d44826a5bf20e942b722655b68a651
BLAKE2b-256 5d54be718b7dc2e3047b84c000317b6b5babf37caba8c6b616b985777e6de8da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: afterquote-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2b1952ab0eb5d46c011e658e6ada9ffa248090bc0b5d84355220c39f96f1d06b
MD5 384353d88e46260b63856a9f8c39062b
BLAKE2b-256 867014eb8f11bbe30db8cf627a71ccd532ae25fa39a05985d8d9ad94e0fa98f5

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