The attached patch allows one to pass additional fields to be fetched to stockapi_fetch().
It's pretty simple and does not interact with stockapi_insert() or the db schema.
| Comment | File | Size | Author |
|---|---|---|---|
| stockapi.module.extra_fields.patch | 958 bytes | fp |
The attached patch allows one to pass additional fields to be fetched to stockapi_fetch().
It's pretty simple and does not interact with stockapi_insert() or the db schema.
| Comment | File | Size | Author |
|---|---|---|---|
| stockapi.module.extra_fields.patch | 958 bytes | fp |
Comments
Comment #1
izmeez commentedIs there a way to view these extra fields?
Comment #2
fp commentedIt depends how you use it.
If you call stockapi_fetch() from a custom function, you should obviously be able to see them in the data that is returned by this function.
If it's being used within an existing module, if the module doesn't make use of the extra fields, then you simply won't have access to them because they are just not available.
Comment #3
izmeez commented@fp Thanks. As you say this would need to be used further in some way.
To start with it would need to be saved in the database as part of stockapi or some other module.
Comment #4
joseph.olstadNew design in 7.x-2.x
Previous versions no longer work because yahoo shut it's service down
7.x-2.x has a new data source.
Major changes were required