expose buy_tag to api

This commit is contained in:
kevinjulian 2021-07-22 13:09:05 +07:00
parent dd809f756b
commit b01daa8bbc
2 changed files with 3 additions and 0 deletions

View File

@ -151,6 +151,7 @@ class TradeSchema(BaseModel):
amount_requested: float
stake_amount: float
strategy: str
buy_tag: Optional[str]
timeframe: int
fee_open: Optional[float]
fee_open_cost: Optional[float]

View File

@ -875,6 +875,7 @@ def test_api_status(botclient, mocker, ticker, fee, markets):
'sell_reason': None,
'sell_order_status': None,
'strategy': 'DefaultStrategy',
'buy_tag': None,
'timeframe': 5,
'exchange': 'binance',
}
@ -1029,6 +1030,7 @@ def test_api_forcebuy(botclient, mocker, fee):
'sell_reason': None,
'sell_order_status': None,
'strategy': 'DefaultStrategy',
'buy_tag': None,
'timeframe': 5,
'exchange': 'binance',
}