biquote
Free real-time market data for Python - forex, crypto, gold, index CFDs and a 54-country economic calendar, streamed from a MetaTrader 5 feed.
No API key. No signup. 15,000 requests/min.
pip install biquote
from biquote import Biquote
bq = Biquote()
# One quote - use "mid" as the price
tick = bq.tick("EURUSD")
print(tick["mid"], tick["dayDiffPercent"])
# Up to 100 symbols in one request
ticks = bq.latest(["EURUSD", "XAUUSD", "BTCUSD", "USDTRY"])
# OHLC candles into pandas (oldest first)
import pandas as pd
df = pd.DataFrame(bq.ohlc("XAUUSD", interval="1h", limit=500))
# Only the ~280 instruments that are live right now
live = bq.symbols(live_only=True)
# This week's high-impact macro events
events = bq.calendar(importance="high", countries="US,EU,GB")
Demo trading
Virtual margin accounts marked to the same live prices. No signup, no real money.
acct = bq.create_demo_account(balance=10_000, leverage=100, stop_out_level=50)
print(acct.key) # shown once: store it, it is the account
opened = acct.buy("XAUUSD", 0.1, stop_loss=3500, take_profit=3800)
acct.sell("EURUSD", 0.5, type="limit", price=1.12) # pending order
print(acct.summary()) # balance, equity, margin, marginLevel
acct.close(opened["position"]["id"], volume=0.05) # partial close
print(acct.history())
# later, from the stored key
same = bq.demo_account(os.environ["BIQUOTE_DEMO_KEY"])
A refused request raises BiquoteError with a code (insufficient_margin, market_closed, invalid_volume ...). Lot sizes come from the broker where known: check acct.instrument("UKOIL") before sizing a trade. Full rules: docs.
Good to know
lastandvolumeare always0on FX/CFD feeds -midis the price.- The catalogue lists ~1,700 instruments but only ~280 quote at any moment; filter with
symbols(live_only=True). - For push updates use the SignalR hub at
https://biquote.io/hubs/tick(no rate limit) - see the API docs. - Docs: https://biquote.io/docs/ - Widgets: https://widgets.biquote.io
MIT (c) biquote.io
Metadata
Release files for biquote 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| biquote-0.4.0.tar.gz | 7.0 kB | Without provenance | Details for biquote-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| biquote-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for biquote-0.4.0-py3-none-any.whl |
Total release size: 14.8 kB
Release files / biquote-0.4.0.tar.gz
| Download URL | biquote-0.4.0.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df245ebb46f73c81a175763efe932c8a86faac9145a692e1a27e4b7d15e273d8
|
|
BLAKE2b-256 checksum How to use checksums |
8ba63186a5b64c16d8988246cb5b548346b86888b9970a3cf52f571b4fdb071d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.8
|
Release files / biquote-0.4.0-py3-none-any.whl
| Download URL | biquote-0.4.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
731b91dfefa0030fddee7ba1e7179db612702734c69a12b07b177c9bb1e15721
|
|
BLAKE2b-256 checksum How to use checksums |
4981a0ca38a536de9e31977875331ba743414498dd440fad33b5bfd263aa3cc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.8
|
Security for biquote 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.