Sign in

    vectie/moonfish/chart does not have a README file

    CandlePoint

    pub(all) struct CandlePoint {
    seq : Int
    open : Double
    high : Double
    low : Double
    close : Double
    volume : Double
    } derive(Eq, ToJson,
    Debug
    ,
    FromJson
    )

    ChartAnnotation

    pub(all) struct ChartAnnotation {
    kind : ChartAnnotationKind
    label : String
    body : String
    } derive(Eq, ToJson,
    Debug
    ,
    FromJson
    )

    ChartAnnotationKind

    pub(all) enum ChartAnnotationKind {
    SnapshotSummary
    StructureLevelSummary
    DecisionSummary
    RiskNote
    } derive(Eq, ToJson,
    Debug
    ,
    FromJson
    )

    ChartFrame

    pub(all) struct ChartFrame {
    artifact_path : String
    source_id : String
    symbol : String
    timeframe : String
    width : Int
    height : Int
    candles : Array[CandlePoint]
    price_range : PriceRange?
    annotations : Array[ChartAnnotation]
    } derive(Eq, ToJson,
    Debug
    ,
    FromJson
    )

    PriceRange

    pub(all) struct PriceRange {
    low : Double
    high : Double
    } derive(Eq, ToJson,
    Debug
    ,
    FromJson
    )

    candle_point

    chart_annotation

    fn chart_annotation(kind : ChartAnnotationKind, label : String, body : String) -> ChartAnnotation

    price_range

    fn price_range(low : Double, high : Double) -> PriceRange

    render_chart_frame

    Source Files