@insignia-education/api-sdk-js 0.15.127 → 0.15.129

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insignia-education/api-sdk-js",
3
- "version": "0.15.127",
3
+ "version": "0.15.129",
4
4
  "description": "JavaScript SDK for the Insignia Education API",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -53,10 +53,18 @@ export default class Admin {
53
53
  * - `earn` — Simple Earn positions `{ asset, amount, type }`. Read from the
54
54
  * dedicated endpoints, not the `LD*` pseudo-assets in the Spot response
55
55
  * (those lag and under-report), which are stripped from `spot`.
56
- * - `transactions` — deposits, withdrawals and Binance Pay (C2C) over
56
+ * - `transactions` — deposits, withdrawals, Binance Pay and P2P trades over
57
57
  * Binance's 90-day window, newest first:
58
- * `{ type, at, asset, amount, network, counterparty, completed }` where
59
- * type is `deposit` | `withdrawal` | `pay-in` | `pay-out`.
58
+ * `{ type, at, asset, amount, network, counterparty, tx_id, fiat_amount,
59
+ * fiat_currency, unit_price, pay_method, completed }` where type is
60
+ * `deposit` | `withdrawal` | `pay-in` | `pay-out` | `p2p-buy` | `p2p-sell`.
61
+ * Only P2P trades carry a fiat leg (`fiat_amount`/`fiat_currency`/
62
+ * `unit_price`/`pay_method`); they're null for every other type.
63
+ * `counterparty` is the destination wallet on a withdrawal, the sender's
64
+ * wallet on a deposit (Binance itself only records our own receiving
65
+ * address, so this is resolved on-chain — null if the network/coin isn't
66
+ * one of the ones that lookup covers, e.g. an unmapped chain), and the
67
+ * other person on Pay/P2P. `tx_id` is set for on-chain movements only.
60
68
  *
61
69
  * Resolves `{ available: false }` if the proxy isn't configured or the call fails.
62
70
  */