pmxtjs 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -60,7 +60,7 @@ function mapMarketToUnified(event, market) {
60
60
  return {
61
61
  id: market.ticker,
62
62
  title: event.title,
63
- description: event.sub_title || market.subtitle || "",
63
+ description: market.rules_primary || market.rules_secondary || "",
64
64
  outcomes: outcomes,
65
65
  resolutionDate: new Date(market.expiration_time),
66
66
  volume24h: Number(market.volume_24h || market.volume || 0),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmxtjs",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "pmxt is a unified prediction market data API. The ccxt for prediction markets.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/readme.md CHANGED
@@ -30,7 +30,9 @@
30
30
  <a href="https://github.com/qoery-com/pmxt/stargazers"><img src="https://img.shields.io/github/stars/qoery-com/pmxt?refresh=1" alt="GitHub stars"></a>
31
31
  </td>
32
32
  <td>
33
- <!-- Space for future badge -->
33
+ <a href="https://www.npmjs.com/package/pmxtjs">
34
+ <img src="https://img.shields.io/npm/v/pmxtjs.svg" alt="npm version">
35
+ </a>
34
36
  </td>
35
37
  </tr>
36
38
  </table>