Skip to main content

Crate pine_core

Crate pine_core 

Source

Structs§

Bar
Represents a single bar/candle of market data
Data
Everything a script needs to know about the market it is running on: the bars themselves, and the symbol they belong to.
Ohlcv
One row of raw market data, before it is placed in a series.
SymInfo
Symbol information the host supplies for a script run.
Timeframe
The chart timeframe a script runs on, exposed as timeframe.*.
TimeframeError
Why an interval string could not be read as a timeframe.

Enums§

PineVersion
The language version a script targets, declared by the //@version=N annotation at the top of a script.
TimeframeUnit
The unit of a Timeframe. Pine writes each as a suffix on the multiplier ("3D", "5S", "1W"); minutes have no suffix ("60").
VersionError
A missing annotation is deliberately not represented here — that is Ok(None) from PineVersion::detect, because choosing what to assume is the caller’s policy, not a failure to resolve.

Traits§

DataProvider
A source of market data: given a symbol and a Pine timeframe, produce its bars.

Type Aliases§

ProviderError
The error a DataProvider fails with.