@insignia-education/api-sdk-js 0.15.126 → 0.15.127
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 +1 -1
- package/src/api/v1/Admin.js +15 -1
package/package.json
CHANGED
package/src/api/v1/Admin.js
CHANGED
|
@@ -45,7 +45,21 @@ export default class Admin {
|
|
|
45
45
|
return this.#client.get('/admin/statistics/stripe-transactions', { from_date: fromDate, to_date: toDate });
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* Our Binance holdings and recent money movement — distinct from
|
|
50
|
+
* statisticsCryptoBalances()' on-chain wallet balance. Resolves
|
|
51
|
+
* `{ available, spot, earn, transactions }`:
|
|
52
|
+
* - `spot` — non-zero Spot balances `{ asset, free, locked }`.
|
|
53
|
+
* - `earn` — Simple Earn positions `{ asset, amount, type }`. Read from the
|
|
54
|
+
* dedicated endpoints, not the `LD*` pseudo-assets in the Spot response
|
|
55
|
+
* (those lag and under-report), which are stripped from `spot`.
|
|
56
|
+
* - `transactions` — deposits, withdrawals and Binance Pay (C2C) over
|
|
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`.
|
|
60
|
+
*
|
|
61
|
+
* Resolves `{ available: false }` if the proxy isn't configured or the call fails.
|
|
62
|
+
*/
|
|
49
63
|
statisticsBinanceBalances() {
|
|
50
64
|
return this.#client.get('/admin/statistics/binance-balances');
|
|
51
65
|
}
|