Skip to content

Commit 1876656

Browse files
authored
Merge pull request freqtrade#12488 from stash86/main-stash
update docs regarding forceenter endpoint
2 parents 2d4b02f + 889ab7e commit 1876656

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/rest-api.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ forceenter
207207
:param pair: Pair to buy (ETH/BTC)
208208
:param side: 'long' or 'short'
209209
:param price: Optional - price to buy
210+
:param order_type: Optional keyword argument - 'limit' or 'market'
211+
:param stake_amount: Optional keyword argument - stake amount (as float)
212+
:param leverage: Optional keyword argument - leverage (as float)
213+
:param enter_tag: Optional keyword argument - entry tag (as string, default: 'force_enter')
210214
211215
forceexit
212216
Force-exit a trade.
@@ -359,7 +363,7 @@ All endpoints in the below table need to be prefixed with the base URL of the AP
359363
| `/locks/<lockid>` | DELETE | Deletes (disables) the lock by id.<br/>*Params:*<br/>- `lockid` (`int`)
360364
| `/profit` | GET | Display a summary of your profit/loss from close trades and some stats about your performance.
361365
| `/forceexit` | POST | Instantly exits the given trade (ignoring `minimum_roi`), using the given order type ("market" or "limit", uses your config setting if not specified), and the chosen amount (full sell if not specified). If `all` is supplied as the `tradeid`, then all currently open trades will be forced to exit.<br/>*Params:*<br/>- `<tradeid>` (`int` or `str`)<br/>- `<ordertype>` (`str`)<br/>- `[amount]` (`float`)
362-
| `/forceenter` | POST | Instantly enters the given pair. Side is optional and is either `long` or `short` (default is `long`). Rate is optional. (`force_entry_enable` must be set to True)<br/>*Params:*<br/>- `<pair>` (`str`)<br/>- `<side>` (`str`)<br/>- `[rate]` (`float`)
366+
| `/forceenter` | POST | Instantly enters the given pair. Side is optional and is either `long` or `short` (default is `long`). Price, stake amount, entry tag and leverage are optional. Order type is optional and is either `market` or `long` (default using the value set in config). (`force_entry_enable` must be set to True)<br/>*Params:*<br/>- `<pair>` (`str`)<br/>- `<side>` (`str`)<br/>- `[price]` (`float`)<br/>- `[ordertype]` (`str`)<br/>- `[stakeamount]` (`float`)<br/>- `[entry_tag]` (`str`)<br/>- `[leverage]` (`float`)
363367
| `/performance` | GET | Show performance of each finished trade grouped by pair.
364368
| `/balance` | GET | Show account balance per currency.
365369
| `/daily` | GET | Shows profit or loss per day, over the last n days (n defaults to 7).<br/>*Params:*<br/>- `timescale` (`int`)

0 commit comments

Comments
 (0)