/
Updating Props

Updating Props

To update props, there are 4 tab-delimited files which drive the system:

These files are located at https://bannisterlake.com/dl/FanDuel/. We have provided an ftp account for updating the files in the above directory.

leagues.txt

This is the list of leagues. It has the format:

<league name for the reader’s League list>\t<league code>\t<sport>\t<event id>\t<competition id>

For example:

NFL NFL football 6423 12282733

The event id and competition id come from the sportsbook feed. Note that because the feed sometimes has more than one event id for a league (that has games), there might be more than one entry. But they will all be associated with the same league. Example:

NCAA Football CFB football 6423 12499358
NCAA Football More CFB football 6423 12529073

The leagues.txt file drives the leagues tab of the FanDuel Sportsbook Reader:

leagueMarkets.txt

This file is used to define the moneyline/spread/total props. Some sports don’t have all three types and the names of these props can be different depending on the sport.

The format of this file is:

<league code>\t<prop>,<prop>,…<prop>

The prop names must be quoted. For example:

NBA "MATCH_HANDICAP_(2-WAY)","MONEY_LINE","TOTAL_POINTS_(OVER/UNDER)"

The props in this file only get updated if the league is enabled (checked) in the FanDuel Sportsbook Reader.

leagueMarketsOutright.txt

The bulk of all props are defined in this file. It includes props associated with games or with the league. There is no need to distinguish between the two because for each prop, it is associated with a game using the datafeed’s event id or not. If not, the prop is associated with the league.

The format of this file is:

<league code>\t<prop>,<prop>,…<prop>

The prop names must be quoted. For example:

CFB "OUTRIGHT_BETTING","REGULAR_SEASON_WIN_TOTALS"

The props in this file only get updated if the league is enabled (checked) in the FanDuel Sportsbook Reader.

leagueMarketsSpecial.txt

Some leagues have competitions which are not associated with games but are related to the league only. For example, MLB might have several competitions

leagueMarketsSpecial.txt is a way of defining these additional competitions for the league and provide a way of adding props to the league.

The format of the file is:

<league code>\t<event id>\t<competition id>\t<prop>,<prop>,…<prop>

The prop names must be quoted. For example:

MLB 7511 12551860 "CY_YOUNG","REGULAR_SEASON_MVP","ROOKIE_OF_THE_YEAR"

The props in this file only get updated if the league is enabled (checked) in the FanDuel Sportsbook Reader.

How to Update the Files

All the above files can be hand edited. However, because leagueMarketsOutright.txt can be large, a utility app is provided to edit the file.

The FanDuel Markets Utility can be used to edit leagueMarketsOutright.txt.

New leagues and markets can be added. No need (and no harm) to use quotes for either league or market. The utility adds/removes them as needed. To add a new league or market, enter them in the boxes to the left of the Add button. If a league is selected, and a market is added, it adds it to that league. Leagues and markets can also be deleted. The list boxes support multi-selections.

Once editing the file, to upload the file to the bannisterlake ftp, click the Upload button. It takes you to a login dialog:

Userid and password persist between launches of the app but the first time uploading will require entering the userid and password.

How to Update the Props for the FanDuel Sportsbook Reader

The FanDuel Sportsbook Reader rereads the prop files each evening just after midnight. It also reads the props on launch of the app. The props can also be read by pausing the reader:

And pressing the Refresh button on the Leagues tab:

 

Related content