Skip to content

2.0.1: matched to the live markets API

Choose a tag to compare

@netarz netarz released this 21 Oct 06:32
· 3 commits to main since this release

NetArz Currency & Gold Rates 2.0.1. Download netarz-fx-2.0.1.zip below. Same features as 2.0.0, matched to the live NetArz markets API.

Fixed

  • Reads the markets API as it is live: history/{symbol} points (OHLC, data.points), unit_amount, bid and ask.
  • Keyless mode also accepts a tab-shaped board (the box payload).
  • Without a key the board has one average rate per currency: currency shortcodes use it and tables show a single "Average" column instead of buy and sell columns with the same number.
  • The chart block describes what it charts: the gold ounce, the silver ounce and 18k gold (currency history lives in /api/fx/v1/history).

Note

  • 18k gold, the mesghal and the coins appear once NetArz publishes them on its API (their coefficients are under review); until then the gold table shows the ounce and administrators see a note naming what was not returned.
  • The keyless public board (/api/markets/v1/public/board) is not live yet; without a key, tables show "Rates unavailable" until it is. With a free key, latest and history work now.

Checks

Plugin Check 2.1.0 on WordPress 7.1.3: 0 errors (1 warning: load_plugin_textdomain(), kept for the bundled Persian translation). WordPress Coding Standards + PHPCompatibilityWP (PHP 7.4+): clean. php -l on PHP 7.4 and 8.4. Nothing is requested from netarz.ir before the administrator turns the connection on.