Skip to main content

Overview

ChuchoBot uses market hours configuration to determine when the market is open and to properly display connection status. The application supports different hours for the general market and the Immediate Settlement (CI) market.

Configuration File

Market hours are configured in the ChuchoBot.exe.config file under the <applicationSettings> section.

Editing Market Hours

1

Locate the config file

Find ChuchoBot.exe.config in your ChuchoBot installation directory.
2

Open in text editor

Open the file with a text editor (Notepad, VS Code, etc.).
3

Find applicationSettings section

Locate the <applicationSettings> section within <Primary.WinFormsApp.Properties.Settings>.
4

Modify time values

Edit the time values using the format HH:MM:SS (24-hour format).
5

Save and restart

Save the file and restart ChuchoBot for changes to take effect.

General Market Hours

These settings control the standard market operating hours:
<setting name="MarketOpenTime" serializeAs="String">
  <value>10:30:00</value>
</setting>
<setting name="MarketCloseTime" serializeAs="String">
  <value>17:00:00</value>
</setting>
<setting name="MarketCloseTimeWithAuction" serializeAs="String">
  <value>16:57:00</value>
</setting>
Default: 10:30:00The time when the market opens for trading.
Default: 17:00:00The time when the market closes without considering the closing auction.
Default: 16:57:00The effective market close time when the closing auction is included. The closing auction typically runs from 16:57 to 17:00.

Immediate Settlement (CI) Market Hours

The CI (Contado Inmediato) market can have different operating hours:
<setting name="CIOpenTime" serializeAs="String">
  <value>10:30:00</value>
</setting>
<setting name="CICloseTime" serializeAs="String">
  <value>17:00:00</value>
</setting>
<setting name="CICloseTimeWithAuction" serializeAs="String">
  <value>16:57:00</value>
</setting>
Default: 10:30:00The time when the CI market opens.
Default: 17:00:00The time when the CI market closes without auction.
Default: 16:57:00The CI market close time including the closing auction.

Connection Status Indicator

ChuchoBot uses these market hours to control the connection status:
  • Green WiFi icon: Connected and market is open
  • Red WiFi icon (“DISCONNECTED”): Either disconnected OR outside market hours
It’s normal to see the red WiFi icon before market open and after market close.
Disconnected Status
If you see “DISCONNECTED” during configured market hours, try restarting ChuchoBot.

Example Configuration

Complete market hours section in ChuchoBot.exe.config:
<applicationSettings>
  <Primary.WinFormsApp.Properties.Settings>
    <!-- General Market Hours -->
    <setting name="MarketOpenTime" serializeAs="String">
      <value>10:30:00</value>
    </setting>
    <setting name="MarketCloseTime" serializeAs="String">
      <value>17:00:00</value>
    </setting>
    <setting name="MarketCloseTimeWithAuction" serializeAs="String">
      <value>16:57:00</value>
    </setting>
    
    <!-- CI Market Hours -->
    <setting name="CIOpenTime" serializeAs="String">
      <value>10:30:00</value>
    </setting>
    <setting name="CICloseTime" serializeAs="String">
      <value>17:00:00</value>
    </setting>
    <setting name="CICloseTimeWithAuction" serializeAs="String">
      <value>16:57:00</value>
    </setting>
  </Primary.WinFormsApp.Properties.Settings>
</applicationSettings>

Build docs developers (and LLMs) love