Skip to content

Commit

Permalink
Auto buy task can automatically sell now. UI drawing logic is updated…
Browse files Browse the repository at this point in the history
… in extension. Readme updated
  • Loading branch information
dogancana committed Oct 21, 2019
1 parent b888b82 commit 56752af
Show file tree
Hide file tree
Showing 64 changed files with 333 additions and 10,789 deletions.
2 changes: 1 addition & 1 deletion .env.local
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ FUTBOT_FUT_REQUESTS_PER_SEC=.5
FUTBOT_FUTBIN_REQUESTS_PER_SEC=1.5

# Will be passed to winston. (error, warn, info, debug), Set debug if you need to send bug reports
FUTBOT_LOG_LEVEL=debug
FUTBOT_LOG_LEVEL=info

# Favourite jobs to call bunch of jobs together. Separate by comma
FUTBOT_FAVOURITE_JOBS=/trade-bot/start-selling-trade-pile,/invest/low-players?budget=50000&min=1000&max=10000&maxTargetPool=100
Expand Down
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,19 @@ This will clear transfer list from sold/expired items. It will send everything t
http://localhost:9999/invest/low-players?budget=50000&min=1000&max=5000&maxTargetPool=150
http://localhost:9999/invest/low-players-stop
This job targets most liked futbin players in your min-max range. It saves the list of players (max target pool is max limit for this), calculates their prices and searches market for auctions with lower buy now price than optimal price, e.g. buy at 59th min.
You can set FUTBOT_PROFIT_MARGIN in .env file to effect this calculation.
You can set FUTBOT_PROFIT_MARGIN in .env file to effect this calculation.

http://localhost:9999/auto-buyer/jobs
http://localhost:9999/auto-buyer/start-jobs
http://localhost:9999/auto-buyer/stop-jobs
Endpoints to control auto buyer jobs.

http://localhost:9999/auto-buyer/targets
http://localhost:9999/auto-buyer/add-target?assetId=X&resourceId=X&maxPrice=X&sellPrice=X&discardValue=X
Endpoints to control your auto buyer targets. You can also access your targets by clicking extension button on chrome.
Add target endpoint is not intented to use directly. You can use it via web app. Just search the player you want, click for futbot details and click 'Add Target' button with desired 'Buy Price' and 'Sell Price values'.
If sell price value is not defined, the bot won't sell your player but try to send it to club.

`Known bug`: Very rarely futbin has wrong prices with big difference. The bot still buys them, thinking they are cheap. This will be fixed in future releases.

http://localhost:9999/invest/good-auctions?budget=50000&min=5000&max=10000
Expand All @@ -112,8 +124,9 @@ It's usefull when you want to ask a question, report a bug, give a feedback or j
## Existing UI Features

`Player prices:`
The extension will add small visual components to players. Example below:
![](doc/gifs/player-price.gif)
`Add auto buy target:`
The extension will add small visual components to players.
![](doc/gifs/add-targets.gif)

## What to do on errors

Expand Down
865 changes: 0 additions & 865 deletions doc/assets/css/main.css

This file was deleted.

7 changes: 0 additions & 7 deletions doc/assets/css/main.css.map

This file was deleted.

Binary file removed doc/assets/images/icons.png
Binary file not shown.
Binary file removed doc/assets/images/icons@2x.png
Binary file not shown.
Binary file removed doc/assets/images/widgets.png
Binary file not shown.
Binary file removed doc/assets/images/widgets@2x.png
Binary file not shown.
5 changes: 0 additions & 5 deletions doc/assets/js/main.js

This file was deleted.

3 changes: 0 additions & 3 deletions doc/assets/js/search.js

This file was deleted.

333 changes: 0 additions & 333 deletions doc/classes/_auth_session_injector_.sessioninjector.html

This file was deleted.

Binary file added doc/gifs/add-targets.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed doc/gifs/player-price.gif
Binary file not shown.
248 changes: 0 additions & 248 deletions doc/globals.html

This file was deleted.

Loading

0 comments on commit 56752af

Please sign in to comment.