BotMetrics
No description
type BotMetrics implements Node {
id: ID!
deletedAt: Time
botID: ID!
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
bot: Bot!
}
Fields
BotMetrics.id ● ID! non-null scalar
BotMetrics.deletedAt ● Time scalar
Soft-delete timestamp. If set, record is considered deleted.
BotMetrics.botID ● ID! non-null scalar
Foreign key to bot (one-to-one)
BotMetrics.profitClosedCoin ● Float scalar
Total closed profit in coin
BotMetrics.profitClosedPercent ● Float scalar
Total closed profit percentage
BotMetrics.profitAllCoin ● Float scalar
Total profit (closed + open) in coin
BotMetrics.profitAllPercent ● Float scalar
Total profit (closed + open) percentage
BotMetrics.tradeCount ● Int scalar
Total number of trades
BotMetrics.closedTradeCount ● Int scalar
Number of closed trades
BotMetrics.openTradeCount ● Int scalar
Current number of open trades
BotMetrics.winningTrades ● Int scalar
Number of winning trades
BotMetrics.losingTrades ● Int scalar
Number of losing trades
BotMetrics.winrate ● Float scalar
Win rate percentage (0-100)
BotMetrics.expectancy ● Float scalar
Average profit per trade
BotMetrics.profitFactor ● Float scalar
Ratio of gross profit to gross loss
BotMetrics.maxDrawdown ● Float scalar
Maximum drawdown percentage
BotMetrics.maxDrawdownAbs ● Float scalar
Maximum drawdown absolute value
BotMetrics.bestPair ● String scalar
Best performing trading pair
BotMetrics.bestRate ● Float scalar
Best trade profit rate
BotMetrics.firstTradeTimestamp ● Time scalar
Timestamp of first trade
BotMetrics.latestTradeTimestamp ● Time scalar
Timestamp of latest trade
BotMetrics.fetchedAt ● Time! non-null scalar
When these metrics were fetched from Freqtrade API
BotMetrics.updatedAt ● Time! non-null scalar
BotMetrics.lastSyncedTradeID ● Int! non-null scalar
Last freqtrade_trade_id synced for incremental fetch
BotMetrics.lastKnownMaxTradeID ● Int! non-null scalar
Highest trade ID ever seen - used to detect bot reset (when current max < this)
BotMetrics.lastTradeSyncAt ● Time scalar
Last successful trade sync timestamp
BotMetrics.backupStatus ● BotMetricsBackupStatus! non-null enum
Current DB backup status
BotMetrics.lastBackupAt ● Time scalar
Timestamp of last successful DB backup
BotMetrics.lastBackupSize ● Int scalar
Size of last successful DB backup in bytes
BotMetrics.backupError ● String scalar
Error message from last failed backup attempt
BotMetrics.bot ● Bot! non-null object
Interfaces
Node interface
An object with an ID. Follows the Relay Global Object Identification Specification
Returned By
botMetricsSlice query
Member Of
Bot object