CreateBotMetricsInput
CreateBotMetricsInput is used for create BotMetrics object. Input was generated by ent.
input CreateBotMetricsInput {
deletedAt: Time
profitClosedCoin: Float
profitClosedPercent: Float
profitAllCoin: Float
profitAllPercent: Float
tradeCount: Int
closedTradeCount: Int
openTradeCount: Int
winningTrades: Int
losingTrades: Int
winrate: Float
expectancy: Float
profitFactor: Float
maxDrawdown: Float
maxDrawdownAbs: Float
bestPair: String
bestRate: Float
firstTradeTimestamp: Time
latestTradeTimestamp: Time
fetchedAt: Time
updatedAt: Time
lastSyncedTradeID: Int
lastKnownMaxTradeID: Int
lastTradeSyncAt: Time
backupStatus: BotMetricsBackupStatus
lastBackupAt: Time
lastBackupSize: Int
backupError: String
botID: ID!
}
Fields
CreateBotMetricsInput.deletedAt ● Time scalar
Soft-delete timestamp. If set, record is considered deleted.
CreateBotMetricsInput.profitClosedCoin ● Float scalar
Total closed profit in coin
CreateBotMetricsInput.profitClosedPercent ● Float scalar
Total closed profit percentage
CreateBotMetricsInput.profitAllCoin ● Float scalar
Total profit (closed + open) in coin
CreateBotMetricsInput.profitAllPercent ● Float scalar
Total profit (closed + open) percentage
CreateBotMetricsInput.tradeCount ● Int scalar
Total number of trades
CreateBotMetricsInput.closedTradeCount ● Int scalar
Number of closed trades
CreateBotMetricsInput.openTradeCount ● Int scalar
Current number of open trades
CreateBotMetricsInput.winningTrades ● Int scalar
Number of winning trades
CreateBotMetricsInput.losingTrades ● Int scalar
Number of losing trades
CreateBotMetricsInput.winrate ● Float scalar
Win rate percentage (0-100)
CreateBotMetricsInput.expectancy ● Float scalar
Average profit per trade
CreateBotMetricsInput.profitFactor ● Float scalar
Ratio of gross profit to gross loss
CreateBotMetricsInput.maxDrawdown ● Float scalar
Maximum drawdown percentage
CreateBotMetricsInput.maxDrawdownAbs ● Float scalar
Maximum drawdown absolute value
CreateBotMetricsInput.bestPair ● String scalar
Best performing trading pair
CreateBotMetricsInput.bestRate ● Float scalar
Best trade profit rate
CreateBotMetricsInput.firstTradeTimestamp ● Time scalar
Timestamp of first trade
CreateBotMetricsInput.latestTradeTimestamp ● Time scalar
Timestamp of latest trade
CreateBotMetricsInput.fetchedAt ● Time scalar
When these metrics were fetched from Freqtrade API
CreateBotMetricsInput.updatedAt ● Time scalar
CreateBotMetricsInput.lastSyncedTradeID ● Int scalar
Last freqtrade_trade_id synced for incremental fetch
CreateBotMetricsInput.lastKnownMaxTradeID ● Int scalar
Highest trade ID ever seen - used to detect bot reset (when current max < this)
CreateBotMetricsInput.lastTradeSyncAt ● Time scalar
Last successful trade sync timestamp
CreateBotMetricsInput.backupStatus ● BotMetricsBackupStatus enum
Current DB backup status
CreateBotMetricsInput.lastBackupAt ● Time scalar
Timestamp of last successful DB backup
CreateBotMetricsInput.lastBackupSize ● Int scalar
Size of last successful DB backup in bytes
CreateBotMetricsInput.backupError ● String scalar
Error message from last failed backup attempt