@web-core/web-sdk
    Preparing search index...

    Interface IIndicatorRepo

    interface IIndicatorRepo {
        getAlpha(
            codes: string[],
            period: number,
            last: number,
            desireSU: string,
        ): Promise<AlphaResponse[]>;
        getBeta(
            codes: string[],
            period: number,
            last: number,
            desireSU: string,
        ): Promise<AlphaResponse[]>;
        getIndicatorFromTo(
            code: string,
            period: number,
            from: string,
            to: string,
            indicators?: Record<Indicators, string>[],
            cur?: string,
        ): Promise<IndicatorResponse[]>;
        getIndicatorLast(
            code: string,
            period: number,
            last: number,
            indicators?: Record<Indicators, string>[],
            cur?: string,
        ): Promise<IndicatorResponse[]>;
    }
    Index

    Methods

    • Parameters

      • codes: string[]

        definition code definition legacy code Max code size: 10

      • period: number

        Supported values are integers that divide 1440. Ex 1,2,3,5,10,60 etc

      • last: number

        Max value: 1400

      • desireSU: string

        desired symbol underlying

      Returns Promise<AlphaResponse[]>

      This service provides alpha value between given symbols with calculating beta constant. You can obtain beta constants by providing code,underlying, time period and desired last count.

    • Parameters

      • codes: string[]

        definition code definition legacy code Max code size: 10

      • period: number

        Supported values are integers that divide 1440. Ex 1,2,3,5,10,60 etc

      • last: number

        Max value: 1400

      • desireSU: string

        desired symbol underlying

      Returns Promise<AlphaResponse[]>

      This service provides beta value between given symbols with calculating beta constant. You can obtain beta constants by providing code,underlying, time period and desired last count.

    • Parameters

      • code: string

        definition code definition legacy code ex: GARAN.E.BIST

      • period: number

        1, 5, 60, 1440, w, m, y w : for week, m : for month, y: for year if period is bigger than 60, period must be divisible by 60.

      • from: string

        from date Format : "yyyyMMddhhmmss"

      • to: string

        to date Format : "yyyyMMddhhmmss"

      • Optionalindicators: Record<Indicators, string>[]

        indicators ex ADX=per:1, APO=fast:1-slow:2, PPO=fast:1-slow:2

      • Optionalcur: string

        currency Currency type for stock value, can be another stock (GARAN.E.BIST) or currency value (USD/TRL)

      Returns Promise<IndicatorResponse[]>

      get indicator data from to

    • Parameters

      • code: string

        definition code definition legacy code ex: GARAN.E.BIST

      • period: number

        1, 5, 60, 1440, w, m, y w : for week, m : for month, y: for year if period is bigger than 60, period must be divisible by 60.

      • last: number

        last data count

      • Optionalindicators: Record<Indicators, string>[]

        indicators ex ADX=per:1, APO=fast:1-slow:2, PPO=fast:1-slow:2

      • Optionalcur: string

        currency Currency type for stock value, can be another stock (GARAN.E.BIST) or currency value (USD/TRL)

      Returns Promise<IndicatorResponse[]>

      get indicator data from to