...
The first time you launch the app you will be prompted to create a new instance. Provide a name in the dialogue window and press the OK button. The name can be arbitrary.
Setup
...
MySQL Connection
The commodity reader requires that you setup the connection to your MySQL database used by the Chameleon instance. You can do this easily by entering the Flow URL you use when you login.
Example: localhost/chameleon/
Then press the Get DB Info from Flow URL button. Assuming it is able to connect it will fill in the server, port and database fields with the correct connection information.
Datafeed
The reader requires an API key from Barchart to be able to access the commodity data. You can type in or paste in the key. Then press the Apply key to be saved and have it take effect.The Documentation link will take you to the Barchart API documentation
onlineYou can also specify how often (in seconds) the reader will grab the latest data from the datafeed.
Commodities
...
You can manage the topics and commodities updated by the reader on the Commodities tab.
...
You will need to create topics to in the reader. Only the topics created in the reader will be updated by the reader. To create a new topic
...
To add a commodity to a topic in the reader:
Select the Content Group and then Topic.
Type the symbol name of the commodity in the text box beside the Add Symbol button.
Symbols should either be fully specified or use a wildcard notation like this: ZC*1
The *1 indicates that it uses the first contract month for the commodity
You could use *2 to specify the second available month for the commodity
If the symbol you typed in is valid it will automatically display the name of the commodity associated to the left of the text box.
Press the Add Symbol button.
The symbol will be add added to the list and the list will be refreshed.
The reader will apply the current data from barchart so values are up-to-date right away.
Manage Commodity Lists in Flow
...
Login and navigate to the Financials module.
Select the appropriate Content Group and Topic
Click on the Add New button in the header of the grid showing the current list of commodities
Provide the required information
Symbol
Symbols should either be fully specified or use a wildcard notation like this: ZC*1
The *1 indicates that it uses the first contract month for the commodity
You could use *2 to specify the second available month for the commodity
Name
Price
Press the Add button.
The symbol will be added to the list and the list will be refreshed.
The next time the reader runs it will update the new item with data from barchart.
Run the Reader
...
Once the setup is complete and there are commodities added to a topic created in the reader you can start running the reader.
...
The reader will run continuously once started.
Displaying the Data in a Chameleon Ticker
When you’re ready to display your data with Chameleon you’ll want to use the dynamic fields added to the financial records that provide custom display values based on the commodity type.
displayPrice
displayChange
displaySymbol
displayDate (Mon 'YY)
These display values can take on one of 14 different format types defined by baseCode values from the barchart data. Some format types are decimal based and some are fractional based and display values such as 12’4 and 136’6. Decimal based formats may contain 0 to 7 decimal places. The correct format is automatically applied based on the commodity type.
Check for Updates
The app can notify you in the bottom status bar if it has detected an available update to the app. This check happens automatically once a day.
You can also manually check for updates by:
Open the Help menu
Click on Check for Updates
If updates are available you will then be presented with a button to start downloading the update.
Once the update installer has been downloaded you should
close the reader
run the installer
Logging and Debugging
The app will record debug and general operation information to its logs. You can read these logs by using the Help menu and then selecting the appropriate option in the Logs submenu.
You can turn on additional Performance log messages as well. When the Performance Logs option is checked extra messages will be added to the log file as it runs.
You can turn on additional Debug log messages as well. When the Debug Logs option is checked extra messages will be added to the log file as it runs to help with troubleshooting.