A discussion on the latest beta version of the Exchange extension to the Bitcoin and Altcoin Wallets free WordPress plugin.
The latest beta version of the Exchange extension to the Bitcoin and Altcoin Wallets plugin for WordPress introduces a much requested improvement, as well as a bug fix that causes some breaking changes to the trade histories views.
Market and user histories
It turns out that the DB schema of the Exchange extension was previously flawed in that it did not correctly capture the 1..n relation of orders to trades. Trades were therefore not easily accessible to display histories and market prices. This resulted in some history displays missing a few trades. This was only an issue with displaying the history, orders were still executed correctly.
This is now fixed with the introduction of a new table in the DB schema that captures individual trades. Market and user histories, as well as OHLC (candlestick) data are now derived from this table. A side-effect is that any existing trade histories will no longer be displayed. The
[wallets_exchange_user_history] shortcodes will only display trades that occurred with version
0.5.0-beta or later.
A new JSON API endpoint is introduced for getting user trade histories. This is
get_user_history. The corresponding PHP API is the filter
DB error reporting
The error reporting feature of this plugin is now greatly improved. Any DB errors are now reported in a uniform way via the JSON API.