Hi,
I need to display the stock variation in %. I noticed that the module don't calculate it. And there is no column in the database to add it.
I think it could be a great addition.
Hi,
I need to display the stock variation in %. I noticed that the module don't calculate it. And there is no column in the database to add it.
I think it could be a great addition.
Comments
Comment #1
bluecaleb commentedYes, I would like this functionality too... Does anyone know how to add this field to stock api and display it with the stock module? I tried adding the "p2" field (I got that info here: http://ilmusaham.wordpress.com/tag/stock-yahoo-data/ )to line 83 on the stock api module, then I added this;
'change_percent' => array(
'description' => t('Percent of change'),
'type' => 'float',
'not null' => TRUE,
'default' => 0.0,
),
to line 79 in the stockapi.install file, then I referenced that field in the stock module, however its not working... I suck at php, so I was wondering what else I have to change to be able to add additional fields to be fetched from yahoo using the stock api module and display them with the stock module...
Thanks,
Caleb
Comment #2
joseph.olstadPlease upgrade to 7.x-2.x
This works in latest version