rxjs-trading-signals
Version:
The user - defined operator helps users quickly output index values. base trading-signals library
11 lines (10 loc) • 490 B
TypeScript
import Big, { BigSource } from 'big.js';
import { Observable } from 'rxjs';
export declare type Direction = 'buy' | 'sell';
export declare type Offset = 'open' | 'close';
export declare const fetchSum: () => import("rxjs").UnaryFunction<Observable<BigSource>, Observable<number[]>>;
export declare type FetchProfitType = {
offset: Offset;
price: BigSource;
};
export declare const FetchProfit: (direction: Direction) => (observable: Observable<FetchProfitType>) => Observable<Big>;