rain-sdk-v2 1.0.1 → 1.0.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.
- package/dist/api/priceData.js +1 -1
- package/dist/api/types.d.ts +2 -1
- package/package.json +1 -1
package/dist/api/priceData.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { buildHeaders, buildQuery, handleResponse } from './helpers.js';
|
|
2
2
|
export async function getPriceData(params, config) {
|
|
3
|
-
const qs = buildQuery({
|
|
3
|
+
const qs = buildQuery({ subPool: params.subPool, side: params.side, filter: params.filter });
|
|
4
4
|
const res = await fetch(`${config.apiUrl}/price-data/get-price-data${qs}`, {
|
|
5
5
|
method: 'GET',
|
|
6
6
|
headers: buildHeaders(config),
|
package/dist/api/types.d.ts
CHANGED
|
@@ -193,7 +193,8 @@ export interface PnlByPoolIdParams {
|
|
|
193
193
|
poolId: string;
|
|
194
194
|
}
|
|
195
195
|
export interface PriceDataParams {
|
|
196
|
-
|
|
196
|
+
subPool: string;
|
|
197
|
+
side: 1 | 2;
|
|
197
198
|
filter?: '1H' | '6H' | '1D' | '1W' | '1M' | 'ALL';
|
|
198
199
|
}
|
|
199
200
|
export interface AddReviewParams {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rain-sdk-v2",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Rain SDK V2 — TypeScript SDK for Rain prediction markets on Arbitrum. Market creation, trading, liquidity, order book, split/merge, dispute, and smart account support.",
|
|
6
6
|
"main": "dist/index.js",
|