You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trade jobs changed and documented properly. Start selling trade pile job added. An endpoint for feedback is added. Readme updated to show all existing features
**[What to do on errors](#what-to-do-on-errors)**<br>
16
20
**[Disclaimer and Notes](#disclaimer-and-notes)**<br>
17
21
**[Known Bugs](#known-bugs)**<br>
22
+
18
23
**[Discord](#discord)**<br>
19
24
20
25
## Use Latest stable version
@@ -26,15 +31,20 @@ When you are done with the extension, you can start the server. Server needs .en
26
31
Now you are all set to use existing features described later in this documentation.
27
32
**Note for people outside of Europe**: You need to change 'FUTBOT_FUT_API_ENDPOINT_OVERWRITE' value in .env file. Once you load the extension, go to fut web app and click to Futbot extension. It should tell you the endpoint. Just use that value and restart your server.
28
33
29
-
## Prepare (Dev Mode)
34
+
## Dev Mode
35
+
36
+
If you have an issue starting the server from last stable version, you can execute the app directly from source code. Or if you know what you are doing, just use dev mode :)
37
+
38
+
### Prepare (Dev Mode)
30
39
31
40
`Node and yarn`
32
41
Install [node](https://nodejs.org/en/) and [yarn](https://yarnpkg.com/lang/en/docs/install/). Installing yarn via installation scripts are generally easier.
33
42
34
43
`Config`
35
-
The project needs a configuration file (.env) in order to get some user preferences and region based api endpoint (I was lazy to figure it out automatically). You can copy .env.local file as .env file if you are in europe. If you are outside of europe, there is a really small change you need to make. In order to figure out your corresponding ea server, you should open developer tools in your browser and refresh fut web application. It'll stop you from debugging by adding infinite debuggers. Just click to deactive debug points and click play. Then go to network tab and search for a url similar to 'https://utas.external.s2.fut.ea.com/ut/game/fifa20'. Only different part should be 's2'. Once you find your url, change it in .env file and you are good to go. Note: any change in .env file requires app to restart.
44
+
The project needs a configuration file (.env) in order to get some user preferences and region based api endpoint. You can copy .env.local file as .env file.
45
+
**Don't forget to read what's inside .env file.** Especially if you are outside of Europe or if you have/had more than one origin account (it goes years back) or if you switched platforms before.
36
46
37
-
## Start (Dev Mode)
47
+
###Start (Dev Mode)
38
48
39
49
Start the server
40
50
@@ -56,45 +66,48 @@ Since this server is not intented to be deployed somewhere, there is no session
56
66
57
67
## Existing features:
58
68
59
-
http://localhost:9999/club/players
60
-
This just returns your players in club, not in tradepile
69
+
http://localhost:9999/club/non-squad-players
70
+
This just returns your players in club which are not in your actice squad and not in trade pile.
71
+
The list would be used for /trade-bot/start-selling job.
61
72
62
-
http://localhost:9999/trade-bot/start-selling
63
-
This will start 2 jobs: Clearing transfer pile and selling players who are not in your active squad.
64
-
Once in a while it gets your players from club, figures a good price according to futbin/fut market data. And sells them if prices are trustable enough.
65
-
`Query Paramters:` maxRating
66
-
`Mindstet:` Probably you have 100s of unwanted players with a price range of 0-5000. Quickselling them actually means loosing money. You can start this selling feature and get rid of them for lowest futbin prices/lowest market buyNow prices.
These will control selling players who are not in your active squad.
76
+
Once in a while it gets your players from club, figures a good price according to futbin/fut market data. And sells them if prices are trustable enough.
67
77
68
-
http://localhost:9999/trade-bot/relist-expired
69
-
This will update the sell price for and re-list expired items
Relisting job is pretty similar to selling unused players. Only difference is, this job will only focus on players in your trade pile. It can relist an item or you can send players to transfer list and start this job to start selling them.
70
81
71
82
http://localhost:9999/trade-bot/clear-pile
72
-
This will clear transfer list from sold/expired items
73
-
It's best to use prior to sell
83
+
This will clear transfer list from sold/expired items. It will send everything to club. If there are duplicates, it'll sell them.
When you start investing with a budget, a job will start to buy cheap players for cheaper (<80%) futbin prices. Since players are already cheap, it will try to use buyNow feature all the time.
77
-
The job figures investment targets from most popular futbin players in 1000 - 5000 price range (can be overwritten with min max query params).
78
-
Once the job finds a player with a safe price to buy, it'll buy and resell it. Sometimes you get errors on reselling because processing player time takes more than expected (5s). If you also have trade-bot/sell job running, it'll catch these players and sell for same price.
79
-
The job will continue to spend all the budget for buying players.
80
-
Sell prices won't be added back to actual budget.
81
-
If you start this job in the night with parameters I provided, you might have ~10-20k profit in the morning.
86
+
http://localhost:9999/invest/low-players-stop
87
+
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.
88
+
You can set FUTBOT_PROFIT_MARGIN in .env file to effect this calculation.
89
+
`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.
This is similar to low players investor job. Only difference is, this job is focused on expensive players with low current bid amounts. This job searches market for auctions, which will expire soon. In these auctions, the task will try to find players for 20% profit margin and bid accordingly.
92
+
http://localhost:9999/invest/good-auctions-stop
93
+
This is similar to low players investor job. Only difference is, this job is focused on expensive players with low current bid amounts, e.g. trades with 1min remaining.
94
+
You can set FUTBOT_PROFIT_MARGIN in .env file to effect this calculation.
95
+
`Known issue`: Currently this job takes a bit long time to put an offer and it rarely buy players. You can use low-player invest job till this is fixed in future releases.
85
96
86
97
http://localhost:9999/jobs/start-favourites
87
-
You can start a set of jobs from one endpoint. You can configure this in .env file. There is an example in .env.local file. Look for FUTBOT_FAVOURITE_JOBS value in there and configure for your own needs.
98
+
You can start a set of jobs from one endpoint. You can configure this in .env file. Look for FUTBOT_FAVOURITE_JOBS value in there and configure for your own needs.
88
99
89
100
http://localhost:9999/jobs/list
90
101
http://localhost:9999/jobs/stop-all
91
102
http://localhost:9999/jobs/resume-all
92
103
These endpoints are pretty straitghforward. They show an overall look of currently running tasks/jobs. They also include their individual reports.
93
104
94
-
http://localhost:9999/stats
105
+
http://localhost:9999/stats
95
106
Shows statistics about api usage for fut & futbin.
96
107
97
-
There are more endpoints to use. But I don't think they are worth to mention in this point. You can read them in files named `*.*-app.ts`
108
+
http://localhost:9999/feedback
109
+
Feedback combines /stats, /jobs/list and .env file values to show state of your application.
110
+
It's usefull when you want to ask a question, report a bug, give a feedback or just share big profits!
0 commit comments