UNPKG

@thoshpathi/utils-smartapi-order

Version:

Utility functions for placing live and dummy orders using Angel One's SmartAPI, with helper methods for streamlined trading workflows.

15 lines (12 loc) 488 B
import { Trend, Transaction } from '@thoshpathi/utils-smartapi'; import { SpreadType, OptionType } from './types.mjs'; declare function getSpreadConfig(params: { trend: Trend; spreadType: SpreadType; }): [Trend, Trend]; declare function getNakedConfig(params: { trend: Trend; transaction: Transaction; }): [Trend, OptionType]; declare function getOptionTypeOfSpread(spreadType: SpreadType): OptionType; export { getNakedConfig, getOptionTypeOfSpread, getSpreadConfig };