Skip to main content

Synthetic after-hours quote generator

Project description

afterquote

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


📦 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 (planned):

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for afterquote-0.1.1.tar.gz
Algorithm Hash digest
SHA256 467fa8691fbcbc2e5360dff24cb390a8dfd597c04cfd585eab3f241ca853c1b1
MD5 b90c8fe8334cac56907364e23d725b6d
BLAKE2b-256 fbb7399ec00a8d212a78edbd2c29d339272b774cf95c27afc152c1017bbba098

See more details on using hashes here.

File details

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

File metadata

  • Download URL: afterquote-0.1.1-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.6

File hashes

Hashes for afterquote-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a4d7a3519c77909b74835a76e85e5565b43fde8b84a78c6c46adc2dad8dcd9b
MD5 8bc4591d5425d88d952d82c1a6d4e2e8
BLAKE2b-256 e2f11705d8e01ce7521ad716d12a8b7e9907902f1f2b7e40f8dbe6df13ff9995

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