- Program Options
- .INI file
1.Program Options
You can open the Options clicking this button, or from the menu [Tools] or pressing the hotkey F9.
Markets Download
This list contains the active Market Download configuration.
Ipposnif updates the prices and place bets only on the Competitions/Market Types specified in the list.
To change the download configuration use the buttons add, edit and remove.
Each row of the configuration is made by one sport, one or more countries
and one or more market types.
For international events use “International” like country.
Each Event Type has its own default market that must be included.
You can mix sports and add as many market types or countries you want,
but more markets you download slower will be the update of the
odds.
Limits
Daily Stop Loss: when the total daily loss
is greater than this value, the system stops placing bets. The actual loss is given by the sum of the settled bets plus the hedge value of the unsettled bets.
An eventual daily positive profit is added to the stop loss, so for example, if you are winning 125 and the stop loss is 100, strategies can lose a maximum of 125+100=225 till the end of the day.
If you are winning and you want to protect part of the current day winnings, you can enter here a negative value. For example, if you are winning 125 and you enter -100 as stop loss, the strategies can use only 125-100=25 till the end of the day. If you enter a negative value, remind to set again it to a positive value at the end of the day, or the day after the strategies will not able to place bets.
Daily Stop Win: when the amount of today winnings is
greater than this value, the system stops placing bets. The actual win is given by the sum of the settled bets plus the hedge value of the unsettled bets.
Max Total Liability: maximum total responsability for all the
strategies.
Default Bet Size: strategies that use the Betting Frame (like the 'Free Hand' strategy) will have this value as default bet size.
Transactions
Max Transactions Hour: when the amount of transactions (bet place or
update) in the current hour is equal or greater than this value, the system
stops placing/updating/hedging bets. Betfair will apply a fee for every
transaction beyond 5000 per hour. The system updates the transactions count every 20 seconds, so in these 20 seconds the limit could be overtaken. You can check how many transactions your strategies are producing, from Tools → System Monitor. Bet placed below the minimum size have a cost of 2 transactions instead of 1.
Leave Out Open Trades: if this option is checked, the Max Transactions Hour limit is not applied to the open trades, that can still receive new bets (and eventually being hedged). So please mind that if this option is ON and you keep updating open trades, you could overtake the limit.
Views
Distinct P&L By Strategy: when this option is on,
the P&L, the Liability, and the Hedge buttons will be related to the
strategy selected in that moment. Otherwise they show cumulative amounts. The user input is not affected by this option and
remains always distinct by strategy.
Filter Trades By Mkt-Strat.: when this option is on,
the bottom frame of the main window, shows only the trades of the selected Market-Strategy. Otherwise it shows all the trades of the event.
Invert BACK/LAY Frame: when this option is OFF a left click opens the BACK frame, a right-click the LAY frame. When this option is ON the functionality is inverted.
Balance Include Liability: when this option is ON the balance shown in the main window, will include also the current liability.
Hide Stop Loss/Win Alerts: when this option is ON the stop loss/win alerts are not shown.
Top Betting Frame Buttons: when this option is ON the hot buttons in the betting and hedging frames are moved on top of the frame. This option can speed-up manual betting.
Last Market Type Priority: when this option is ON and the user switches between different events, the same market type is select by default; when this option is OFF, the main market of the event is selected by default.
SP Persistence Priority: when this option is ON and the user switches between different event types, in the betting frame the SP priority options is selected by default.
Distinct Sport Selection: when this option is ON, the event type (sport) buttons filter only the events of the selected type.
Closed Market Focus: how many seconds the focus stays on a closed market.
Market
Expiration : races can be stored only for a certain amount of time, instead trades and bets are never canceled until
the hard reset of the strategy.
Runners
Click Silk to Select Runner can speed up the check of
a runner.
Horse weight in Kilograms switch to the metrical
system.
Update LP when In-Play: the column LP in the runner
grid will be updated also during in play.
Sounds
Winning Event a sound is played when this option is ON and an event (all its markets summed together) records a total net win greater than the amount specified.
Bet Placement a sound is played every time a bet is placed.
Market Goes In-Play a sound is played every time an event goes in play.
You can change the sounds replacing the WAV files in the program directory (C:\Program Files (x86)\Ipposnif).
API Configuration
System Clock is the heart beat of
Ipposnif system. The default is 120 every minute (500 ms). Each process
cannot be executed more times in a minute than this value.
Trigger Clock is the interval between two checks of
the active strategies conditions. Manual trigger strategies are not subjected
to this delay.
Check Mkts How many markets are processed every Trigger Clock tick.
The markets are divided in four groups, from the most important to the less important: focused market (the one selected in the main window), in-play markets, imminent markets and all the rest of the markets.
- Focus: The market (1) opened in the main
window.
- In-Play: all the markets currently in play.
- Proximity: all the markets of events that are
going to start. You can specify this time frame with the option
Market proximity.
- Full loop: all the other markets.
These categories are split in two groups:
- Best 5 Prices: prices are downloaded with a depth
of 5.
- Full prices+Volume: prices and volumes are fully
downloaded.
Every request (except focus) can retrieve the prices of more markets
at one time (Markets x Request).
In-Play Exclusive Focus: when this option is ON and the focused market is in-play, all the API calls, not related to betting, are suspended.
CheckBetMU: max checks per minute of the open bets.
Bets to check x request: max bets to check every
request.
Max CheckBet x min: How many checks for bet
cancelled, settled or voided.
getMeetings x min: How
many getMeetings API requests are processed every minute. getMeetings
search for new markets.
getMarket x min: How many
getMarket API requests are processed every minute. getMarket gets the
markets not yet downloaded and periodically updates the existing ones.
GetAccountFunds x min: Updates per
minute of the player balance.
Request timeout: Timeout
in milliseconds for the request.
Response timeout:
Timeout in milliseconds for the response.
Datatable refresh
rates: Interval between two refresh of the grids in the
windows of the program. They affect only the screen visualization and not
the update of the data itself.
Global Variables
Globals are constants that can contain a decimal number. You can retrieve them from your strategies using the variables
@global_01 → @global_08 or using the function
dbo.fn_Global
Example:
These values are the same for all the strategies, and they can be used, eventually, to define a centralized multiplier for the size of the bets.
@global_01*(@capital/10)
Tipping Service
URL is the url of the
web page providing the tips. Refresh is the refresh rate in minutes. If Refresh=-1 the tips are not downloaded.
External Service
These fields can be used to integrate Ipposnif with an external service, like for example a score service. You can find these values in 2 records ('serviceb_key', 'serviceb_refresh') in the table [tbl_SysCfg] of the Ipposnif DB.
2.INI file
The following properties can be changed editing the .ini file of the program (C:\Program Files (x86)\Ipposnif\ipposnif.ini). After edit you have to restart the program to apply changes.
- data_source: SQL Server instance name. It replaces the placeholder {data_source} in the ipposnifdb_connection_string.
- dbname: Name of the database. Every start Ipposnif checks for the presence of a DB with this name. If it is not found, Ipposnif creates a new database with the specified name. It replaces the placeholder {dbname} in the ipposnifdb_connection_string.
- dbusr: Database user name. It replaces the placeholder {dbusr} in the ipposnifdb_connection_string.
- dbpwd: Database user password. It replaces the placeholder {dbpwd} in the ipposnifdb_connection_string.
- connection_timeout: SQL connection timeout.
- command_timeout: SQL command timeout.
- masterdb_connection_string: Master database connection string.
- ipposnifdb_connection_string: Ipposnif database connection string.
- max_server_memory: Max SQL server allocated memory.
- force_service_broker_creation: 1=create a new Service Broker every start. 0=Check if the last one created, is still working.
- commonappdata_path: Common application data folder path.
- system_drawing_path: Override the path to System.Drawing.dll
- ApplicationInsights_path: Path to ApplicationInsights.dll
- wav_bet: Path to wav file sound for bet.
- wav_win: Path to wav file sound for win.
- wav_inplay: Path to wav file sound for market going in-play.
- start_stopped: 1=program starts with the service stopped (debug).
- WinHttpRequestOption_SecureProtocols: restrict security protocols accepted by the client WinHttp.WinHttpRequest.5.1 (2048=TLS1.2 only)
- WinHttpRequestOption_EnableRedirects: automatically redirect when the server specifies a new location for the resource 0=OFF 1=ON
- WinHttpRequest_Timeout: common timeout for ResolveTimeout, ConnectTimeout, SendTimeout, ReceiveTimeout
- ProxyServer: Use the proxy specified (for ex. 127.0.0.1:8888) If missing no proxy is used
- ProxyServerUsername: ProxyServer username. If not specified no authentication is performed
- ProxyServerPassword: ProxyServer password. If not specified no authentication is performed
- export_all_strategies: full path, with trailing backslash, of the folder where to save all the strategies. When present, a new command is available from the Strategies window context menu. Files already existing are skipped
- systrayicon: System Tray Icon. It can be: default|orange
- block_freehand: if 1, once the free-hand strategy has been deactivated, it cannot be activated again without a restart.
- manage_errors: 0=the program stops on every error (debug).
- log_only_errors: 1=program logs only errors.
- mousewheel: enable mouse wheel support in the strategy configuration panel
- start_configuration: Start configuration with bitwise on/off on 4 bits: 1=horse_racing 2=greyhounds 4=soccer 8=tennis
- backup_hour: shrink db once a day at the specified hour. -1 = OFF.
- alert_db_size: when db size overcomes this value an alert is shown.
- whoami: (Machine Name|Domain)/Username of the administrator that installed Ipposnif. If you have authorization issues running Ipposnif with this user, and you have another user available on your PC with different credentials, try using it with this option.