In #1848966: Pluggable currency conversion it was decided that Currency.module will not store conversion rates in a database table, because conversion plugins use their own storage/cache. To support some applications, however, we may want to add a submodule that stores all rates in a special database table that is exposed to Views.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | exchange rates table.png | 19.09 KB | karimiehsan1819 |
Comments
Comment #1
xanoRequires #1888088: Currency Views filter handler.
Comment #2
xanoI present you Currency conversion database table (currency_conversion_db.module) (please, if someone can think of a better name...)
The module has a database table that it exposes to Views. The table is updated during cron. Here's an example of what you can do with it:

Two issues that need attention:
No tests (yet). There is hardly anything we can test anyway. Most of the code consists of hook implementations, with a small function that puts the rates in the database. We can test the hook implementations using Xtools' blueprint API, though.
Comment #3
xanoComment #4
xanoStale rates are now deleted, and the module name is still long, but makes more sense. The configuration option to schedule cron still needs to be added, though.
Comment #5
xanoThe module now features a setting to control how often the table should be updated.
Comment #6
xanoComment #8
xanoComment #9
karimiehsan1819 commentedhi , i want create a currency exchange rate table that it has own API ( define pravie rate to change )
i also attached a file to clear it .
Comment #10
xanoPlease do not bump closed, fixed issues with new requests. Open a new issue instead.