UNPKG

@cranberry-money/shared-constants

Version:

Shared constants for Blueberry platform

103 lines 4.57 kB
export declare const TARGET_TRADE_STATUS_PENDING: "PENDING"; export declare const TARGET_TRADE_STATUS_APPROVED: "APPROVED"; export declare const TARGET_TRADE_STATUS_SUBMITTED = "SUBMITTED"; export declare const TARGET_TRADE_STATUS_CANCELLED: "CANCELLED"; export declare const TARGET_TRADE_STATUS_EXPIRED = "EXPIRED"; export declare const TARGET_TRADE_STATUS: { readonly PENDING: "PENDING"; readonly APPROVED: "APPROVED"; readonly SUBMITTED: "SUBMITTED"; readonly CANCELLED: "CANCELLED"; readonly EXPIRED: "EXPIRED"; }; export type TargetTradeStatus = (typeof TARGET_TRADE_STATUS)[keyof typeof TARGET_TRADE_STATUS]; export declare const TARGET_TRADE_STATUS_LABEL_PENDING = "Pending Submission"; export declare const TARGET_TRADE_STATUS_LABEL_APPROVED = "Approved"; export declare const TARGET_TRADE_STATUS_LABEL_SUBMITTED = "Submitted to Broker"; export declare const TARGET_TRADE_STATUS_LABEL_CANCELLED = "Cancelled"; export declare const TARGET_TRADE_STATUS_LABEL_EXPIRED = "Expired"; export declare const TARGET_TRADE_STATUS_LABELS: Record<TargetTradeStatus, string>; export declare const TARGET_TRADE_STATUS_OPTIONS: { value: string; label: string; }[]; export declare const ORDER_STATUS_PENDING: "PENDING"; export declare const ORDER_STATUS_APPROVED: "APPROVED"; export declare const ORDER_STATUS_SUBMITTED = "SUBMITTED"; export declare const ORDER_STATUS_CANCELLED: "CANCELLED"; export declare const ORDER_STATUS_EXPIRED = "EXPIRED"; export declare const ORDER_STATUS: { readonly PENDING: "PENDING"; readonly APPROVED: "APPROVED"; readonly SUBMITTED: "SUBMITTED"; readonly CANCELLED: "CANCELLED"; readonly EXPIRED: "EXPIRED"; }; export type OrderStatus = (typeof ORDER_STATUS)[keyof typeof ORDER_STATUS]; export declare const ORDER_STATUS_LABEL_PENDING = "Pending Submission"; export declare const ORDER_STATUS_LABEL_APPROVED = "Approved"; export declare const ORDER_STATUS_LABEL_SUBMITTED = "Submitted to Broker"; export declare const ORDER_STATUS_LABEL_CANCELLED = "Cancelled"; export declare const ORDER_STATUS_LABEL_EXPIRED = "Expired"; export declare const ORDER_STATUS_LABELS: Record<OrderStatus, string>; export declare const ORDER_STATUS_OPTIONS: { value: string; label: string; }[]; export declare const TRADE_STATUS_EXECUTED: "EXECUTED"; export declare const TRADE_STATUS_SETTLED = "SETTLED"; export declare const TRADE_STATUS_CANCELLED: "CANCELLED"; export declare const TRADE_STATUS_FAILED: "FAILED"; export declare const TRADE_STATUS: { readonly PENDING: "PENDING"; readonly EXECUTED: "EXECUTED"; readonly SETTLED: "SETTLED"; readonly CANCELLED: "CANCELLED"; readonly FAILED: "FAILED"; readonly EXPIRED: "EXPIRED"; readonly REJECTED: "REJECTED"; readonly PARTIALLY_EXECUTED: "PARTIALLY_EXECUTED"; readonly PENDING_CANCELLATION: "PENDING_CANCELLATION"; }; export type TradeStatus = (typeof TRADE_STATUS)[keyof typeof TRADE_STATUS]; export declare const TRADE_STATUS_LABEL_EXECUTED = "Executed"; export declare const TRADE_STATUS_LABEL_SETTLED = "Settled"; export declare const TRADE_STATUS_LABEL_CANCELLED = "Cancelled"; export declare const TRADE_STATUS_LABEL_FAILED = "Failed"; export declare const TRADE_STATUS_LABELS: Record<TradeStatus, string>; export declare const TRADE_STATUS_OPTIONS: { value: string; label: string; }[]; export declare const TRADE_ACTION_BUY = "BUY"; export declare const TRADE_ACTION_SELL = "SELL"; export type TradeAction = typeof TRADE_ACTION_BUY | typeof TRADE_ACTION_SELL; export declare const TRADE_ACTION_LABEL_BUY = "Buy"; export declare const TRADE_ACTION_LABEL_SELL = "Sell"; export declare const TRADE_ACTION_OPTIONS: { value: string; label: string; }[]; export declare const TRADE_TYPE: { readonly BUY: "BUY"; readonly SELL: "SELL"; }; export type TradeType = (typeof TRADE_TYPE)[keyof typeof TRADE_TYPE]; export declare const TRADE_TYPE_LABELS: Record<TradeType, string>; export declare const ORDER_TYPE: { readonly MARKET: "MARKET"; readonly LIMIT: "LIMIT"; readonly STOP: "STOP"; readonly STOP_LIMIT: "STOP_LIMIT"; }; export type OrderType = (typeof ORDER_TYPE)[keyof typeof ORDER_TYPE]; export declare const ORDER_TYPE_LABELS: Record<OrderType, string>; export declare const TIME_IN_FORCE: { readonly DAY: "DAY"; readonly GTC: "GTC"; readonly IOC: "IOC"; readonly FOK: "FOK"; }; export type TimeInForce = (typeof TIME_IN_FORCE)[keyof typeof TIME_IN_FORCE]; export declare const TIME_IN_FORCE_LABELS: Record<TimeInForce, string>; //# sourceMappingURL=trades.d.ts.map