Skip to content

About

Biquote data and live provider plugin for PyneCore

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

PyneCore Biquote Plugin

Biquote market data for PyneCore: a free live and historical feed of forex, index and commodity CFD prices, with no account and no API key.

Status

This is a data provider (LiveProviderPlugin): historical OHLCV download and live quote streaming, so pyne run --live can drive a strategy on Biquote prices.

There is no broker (order execution) side. A strategy trades in paper mode on this feed, and PyneCore's own broker emulator simulates the fills.

What the feed is

  • Mid prices. Bars, in the history and in the live stream, are built from the mid of bid and ask. Paper fills therefore do not see the spread.

  • Tick volume. The feed has no traded volume; volume of a bar is the number of quotes it was built from.

  • Short history. Biquote keeps a fixed window of bars per interval. A warm-up reaches back no further, and the plugin logs a warning when a request asked for more:

    Timeframe Bars stored About
    1 300 5 hours
    5 288 1 day
    15 192 2 days
    30 192 4 days
    60 168 1 week
    240 180 1 month
    1D 500 1.5 years

    An indicator with a long period gets too little warm-up on the intraday timeframes.

  • Timeframes. Only the intervals Biquote serves: 1, 5, 15, 30, 60, 240 and 1D.

  • No guarantee. The service is free and run without a service-level agreement; it can change, slow down or stop at any time, and its prices are indicative.

Market data by biquote.

Configuration

Nothing is required. The only setting is the optional symbol_map in workdir/config/plugins/biquote.toml, which translates the symbols a Pine script uses into Biquote's names:

[symbol_map]
"TVC:DEU40" = "DE30"
"TVC:SPX" = "US500"

A TradingView prefix on a forex or metal symbol (FX:EURUSD, OANDA:XAUUSD) is stripped automatically. Indices have no automatic match, because a CFD is not the cash index (TVC:DEU40 is not DE30): map them as above.

Symbols

Biquote names instruments without a prefix: EURUSD, XAUUSD, DE30, US500, USTEC, UK100, JP225. The provider lists the forex, index and commodity symbols of its broker feed that were quoted in the last week; pyne data can search them.

Each listed symbol has a measured entry (price grid, currency, trading hours) in biquote_symbols.json, because the service's own metadata is not reliable (it reports two digits for the DAX, which quotes one, and calls every index USD). scripts/measure_symbols.py rebuilds the table from the service.

The trading hours are measured from the service's own bars at hour resolution, in winter time, in New York time. They have not yet been checked against a summer week.

Architecture

  • History: the REST ohlc endpoint. The forming bar is not stored, so the first live update never repeats a stored timestamp.
  • Live data: a SignalR JSON connection to the tick hub, implemented without a SignalR dependency. The forming bar is built from the mid of every quote and seeded from the REST bar the stream joined in the middle of, so it carries its true open, high and low. A quote that is older than the forming bar is ignored.
  • Closed bars: the framework recovers a missed close through backfill_closed_bars, which reads the REST history. Over 144 closed one-minute bars of eight symbols, the bars built from the stream were identical to the history's, volume included. The seeded bar is the exception: the stream cannot tell which of its first quotes the REST bar already counted, so when that slot ends, the plugin reads its close from the history. When the history has no final bar of it yet, the slot stays forming and its close is left to the framework's recovery.
  • Liveness: the server pings every 15 seconds; a connection silent for 45 seconds is cut and the framework reconnects.

License

Apache-2.0. See LICENSE and NOTICE.

About

Biquote data and live provider plugin for PyneCore

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages