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.2.0.tar.gz (5.9 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.2.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for afterquote-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0e56ad7194e76c9dee9ffbcc519fa97ba6ed0a386c99ad275736aa3931206e24
MD5 b41fb47046193d3855b81f7c0a55994a
BLAKE2b-256 7a8b552951df51c0d4883dc6625ddb634cc5853f20c12b71bc1f0303add9c29b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: afterquote-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f48101276a7a3a67b134b9cebf063713bf285ce442b1f69e68965634b10a132d
MD5 4f5da6cc11803a5adacd45211f9895f7
BLAKE2b-256 dcd82dd4ef63dd59aa892af5bdb68589bd3be9521eaddb803101f4b65734e253

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