mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-23 11:35:14 +00:00
Update types to align with futures branch
This commit is contained in:
parent
ae90d737be
commit
6259f49e30
|
@ -41,7 +41,10 @@ export interface Trade {
|
||||||
stake_amount: number;
|
stake_amount: number;
|
||||||
strategy?: string;
|
strategy?: string;
|
||||||
exchange?: string;
|
exchange?: string;
|
||||||
|
/** @deprecated - Replaced by enter_tag with 2.x */
|
||||||
buy_tag?: string;
|
buy_tag?: string;
|
||||||
|
/** Replaces buy_tag with version 2.x */
|
||||||
|
enter_tag?: string;
|
||||||
|
|
||||||
timeframe: string;
|
timeframe: string;
|
||||||
open_rate: number;
|
open_rate: number;
|
||||||
|
|
|
@ -75,11 +75,17 @@ export interface UnfilledTimeout {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrderTypes {
|
export interface OrderTypes {
|
||||||
buy: string;
|
buy?: string;
|
||||||
sell: string;
|
sell?: string;
|
||||||
emergencysell?: string;
|
|
||||||
forcesell?: string;
|
forcesell?: string;
|
||||||
forcebuy?: string;
|
forcebuy?: string;
|
||||||
|
emergencysell?: string;
|
||||||
|
// TODO: this will need updating for futures, removal of the above, and mandatory of certain values.
|
||||||
|
entry?: string;
|
||||||
|
exit?: string;
|
||||||
|
emergencyexit?: string;
|
||||||
|
forcesexit?: string;
|
||||||
|
forceentry?: string;
|
||||||
stoploss: string;
|
stoploss: string;
|
||||||
stoploss_on_exchange: boolean;
|
stoploss_on_exchange: boolean;
|
||||||
stoploss_on_exchange_interval: number;
|
stoploss_on_exchange_interval: number;
|
||||||
|
@ -106,7 +112,8 @@ export interface BotState {
|
||||||
/** Api version - was not provided prior to 1.1 (or 2021.11) */
|
/** Api version - was not provided prior to 1.1 (or 2021.11) */
|
||||||
api_version?: number;
|
api_version?: number;
|
||||||
dry_run: boolean;
|
dry_run: boolean;
|
||||||
trading_mode?: string;
|
/** Futures, margin or spot */
|
||||||
|
trading_mode?: 'futures' | 'margin' | 'spot';
|
||||||
short_allowed?: boolean;
|
short_allowed?: boolean;
|
||||||
state: BotStates;
|
state: BotStates;
|
||||||
runmode: RunModes;
|
runmode: RunModes;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user