zklighter-perps 1.0.101 → 1.0.103

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.
@@ -13,8 +13,7 @@ jobs:
13
13
  - run:
14
14
  name: Clone zklighter-perps repository
15
15
  command: |
16
- git clone https://${GITHUB_TOKEN}@github.com/elliottech/zklighter-perps.git
17
- git checkout << pipeline.parameters.BE_BRANCH >>
16
+ git clone -b << pipeline.parameters.BE_BRANCH >> --depth 1 https://${GITHUB_TOKEN}@github.com/elliottech/zklighter-perps.git
18
17
 
19
18
  - run:
20
19
  name: Download goctl-swagger binary
@@ -129,7 +128,9 @@ jobs:
129
128
  git commit -m "Update SDK"
130
129
  git push origin $BRANCH_NAME
131
130
 
132
- PR_URL=$(curl -X POST -H "Authorization: Bearer ${GITHUB_TOKEN}" -d '{"title": "Update SDK", "head": "'$BRANCH_NAME'", "base": "main"}' https://api.github.com/repos/elliottech/zklighter-perps-ts/pulls | jq -r '.html_url')
131
+ BE_BRANCH=<< pipeline.parameters.BE_BRANCH >>
132
+
133
+ PR_URL=$(curl -X POST -H "Authorization: Bearer ${GITHUB_TOKEN}" -d '{"title": "'$BE_BRANCH'", "head": "'$BRANCH_NAME'", "base": "main"}' https://api.github.com/repos/elliottech/zklighter-perps-ts/pulls | jq -r '.html_url')
133
134
  curl -X POST -H 'Content-type: application/json' --data '{"text":"TypeScript SDK has been updated. Check the PR here: '$PR_URL'", "type": "mrkdwn"}' ${SLACK_URL}
134
135
 
135
136
  update_npm_package:
@@ -33,6 +33,7 @@ models/ContractAddress.ts
33
33
  models/CreateIntentAddressResp.ts
34
34
  models/CurrentHeight.ts
35
35
  models/Cursor.ts
36
+ models/DailyReturn.ts
36
37
  models/Deposit.ts
37
38
  models/DepositHistory.ts
38
39
  models/DepositHistoryItem.ts
@@ -63,6 +64,7 @@ models/OrderBooks.ts
63
64
  models/Orders.ts
64
65
  models/PnLEntry.ts
65
66
  models/PositionFunding.ts
67
+ models/PositionFundings.ts
66
68
  models/PriceLevel.ts
67
69
  models/PublicPool.ts
68
70
  models/PublicPoolInfo.ts
@@ -95,6 +97,7 @@ models/ReqGetNextNonce.ts
95
97
  models/ReqGetOrderBookDetails.ts
96
98
  models/ReqGetOrderBookOrders.ts
97
99
  models/ReqGetOrderBooks.ts
100
+ models/ReqGetPositionFunding.ts
98
101
  models/ReqGetPublicPools.ts
99
102
  models/ReqGetRangeWithCursor.ts
100
103
  models/ReqGetRangeWithIndex.ts
@@ -22,6 +22,7 @@ import type {
22
22
  FeeBucket,
23
23
  IsWhitelisted,
24
24
  Leaderboard,
25
+ PositionFundings,
25
26
  PublicPools,
26
27
  ResultCode,
27
28
  SubAccounts,
@@ -41,6 +42,8 @@ import {
41
42
  IsWhitelistedToJSON,
42
43
  LeaderboardFromJSON,
43
44
  LeaderboardToJSON,
45
+ PositionFundingsFromJSON,
46
+ PositionFundingsToJSON,
44
47
  PublicPoolsFromJSON,
45
48
  PublicPoolsToJSON,
46
49
  ResultCodeFromJSON,
@@ -96,6 +99,13 @@ export interface PnlRequest {
96
99
  ignore_transfers?: boolean;
97
100
  }
98
101
 
102
+ export interface PositionFundingRequest {
103
+ account_index: number;
104
+ limit: number;
105
+ market_id?: number;
106
+ cursor?: string;
107
+ }
108
+
99
109
  export interface PublicPoolsRequest {
100
110
  index: number;
101
111
  limit: number;
@@ -545,6 +555,64 @@ export class AccountApi extends runtime.BaseAPI {
545
555
  return await response.value();
546
556
  }
547
557
 
558
+ /**
559
+ * Get accounts position fundings
560
+ * positionFunding
561
+ */
562
+ async positionFundingRaw(requestParameters: PositionFundingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PositionFundings>> {
563
+ if (requestParameters['account_index'] == null) {
564
+ throw new runtime.RequiredError(
565
+ 'account_index',
566
+ 'Required parameter "account_index" was null or undefined when calling positionFunding().'
567
+ );
568
+ }
569
+
570
+ if (requestParameters['limit'] == null) {
571
+ throw new runtime.RequiredError(
572
+ 'limit',
573
+ 'Required parameter "limit" was null or undefined when calling positionFunding().'
574
+ );
575
+ }
576
+
577
+ const queryParameters: any = {};
578
+
579
+ if (requestParameters['account_index'] != null) {
580
+ queryParameters['account_index'] = requestParameters['account_index'];
581
+ }
582
+
583
+ if (requestParameters['market_id'] != null) {
584
+ queryParameters['market_id'] = requestParameters['market_id'];
585
+ }
586
+
587
+ if (requestParameters['cursor'] != null) {
588
+ queryParameters['cursor'] = requestParameters['cursor'];
589
+ }
590
+
591
+ if (requestParameters['limit'] != null) {
592
+ queryParameters['limit'] = requestParameters['limit'];
593
+ }
594
+
595
+ const headerParameters: runtime.HTTPHeaders = {};
596
+
597
+ const response = await this.request({
598
+ path: `/api/v1/positionFunding`,
599
+ method: 'GET',
600
+ headers: headerParameters,
601
+ query: queryParameters,
602
+ }, initOverrides);
603
+
604
+ return new runtime.JSONApiResponse(response, (jsonValue) => PositionFundingsFromJSON(jsonValue));
605
+ }
606
+
607
+ /**
608
+ * Get accounts position fundings
609
+ * positionFunding
610
+ */
611
+ async positionFunding(requestParameters: PositionFundingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PositionFundings> {
612
+ const response = await this.positionFundingRaw(requestParameters, initOverrides);
613
+ return await response.value();
614
+ }
615
+
548
616
  /**
549
617
  * Get public pools
550
618
  * publicPools
@@ -0,0 +1,70 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface DailyReturn
20
+ */
21
+ export interface DailyReturn {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof DailyReturn
26
+ */
27
+ timestamp: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof DailyReturn
32
+ */
33
+ daily_return: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the DailyReturn interface.
38
+ */
39
+ export function instanceOfDailyReturn(value: object): value is DailyReturn {
40
+ if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
41
+ if (!('daily_return' in value) || value['daily_return'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function DailyReturnFromJSON(json: any): DailyReturn {
46
+ return DailyReturnFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function DailyReturnFromJSONTyped(json: any, ignoreDiscriminator: boolean): DailyReturn {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'timestamp': json['timestamp'],
56
+ 'daily_return': json['daily_return'],
57
+ };
58
+ }
59
+
60
+ export function DailyReturnToJSON(value?: DailyReturn | null): any {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+
66
+ 'timestamp': value['timestamp'],
67
+ 'daily_return': value['daily_return'],
68
+ };
69
+ }
70
+
@@ -0,0 +1,93 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { PositionFunding } from './PositionFunding';
17
+ import {
18
+ PositionFundingFromJSON,
19
+ PositionFundingFromJSONTyped,
20
+ PositionFundingToJSON,
21
+ } from './PositionFunding';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface PositionFundings
27
+ */
28
+ export interface PositionFundings {
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof PositionFundings
33
+ */
34
+ code: number;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof PositionFundings
39
+ */
40
+ message?: string;
41
+ /**
42
+ *
43
+ * @type {Array<PositionFunding>}
44
+ * @memberof PositionFundings
45
+ */
46
+ position_fundings: Array<PositionFunding>;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof PositionFundings
51
+ */
52
+ next_cursor?: string;
53
+ }
54
+
55
+ /**
56
+ * Check if a given object implements the PositionFundings interface.
57
+ */
58
+ export function instanceOfPositionFundings(value: object): value is PositionFundings {
59
+ if (!('code' in value) || value['code'] === undefined) return false;
60
+ if (!('position_fundings' in value) || value['position_fundings'] === undefined) return false;
61
+ return true;
62
+ }
63
+
64
+ export function PositionFundingsFromJSON(json: any): PositionFundings {
65
+ return PositionFundingsFromJSONTyped(json, false);
66
+ }
67
+
68
+ export function PositionFundingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PositionFundings {
69
+ if (json == null) {
70
+ return json;
71
+ }
72
+ return {
73
+
74
+ 'code': json['code'],
75
+ 'message': json['message'] == null ? undefined : json['message'],
76
+ 'position_fundings': ((json['position_fundings'] as Array<any>).map(PositionFundingFromJSON)),
77
+ 'next_cursor': json['next_cursor'] == null ? undefined : json['next_cursor'],
78
+ };
79
+ }
80
+
81
+ export function PositionFundingsToJSON(value?: PositionFundings | null): any {
82
+ if (value == null) {
83
+ return value;
84
+ }
85
+ return {
86
+
87
+ 'code': value['code'],
88
+ 'message': value['message'],
89
+ 'position_fundings': ((value['position_fundings'] as Array<any>).map(PositionFundingToJSON)),
90
+ 'next_cursor': value['next_cursor'],
91
+ };
92
+ }
93
+
@@ -13,12 +13,12 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { Float64 } from './Float64';
16
+ import type { DailyReturn } from './DailyReturn';
17
17
  import {
18
- Float64FromJSON,
19
- Float64FromJSONTyped,
20
- Float64ToJSON,
21
- } from './Float64';
18
+ DailyReturnFromJSON,
19
+ DailyReturnFromJSONTyped,
20
+ DailyReturnToJSON,
21
+ } from './DailyReturn';
22
22
 
23
23
  /**
24
24
  *
@@ -82,10 +82,10 @@ export interface PublicPoolInfo {
82
82
  annual_percentage_yield: number;
83
83
  /**
84
84
  *
85
- * @type {Array<Float64>}
85
+ * @type {Array<DailyReturn>}
86
86
  * @memberof PublicPoolInfo
87
87
  */
88
- returns: Array<Float64>;
88
+ daily_returns: Array<DailyReturn>;
89
89
  }
90
90
 
91
91
  /**
@@ -101,7 +101,7 @@ export function instanceOfPublicPoolInfo(value: object): value is PublicPoolInfo
101
101
  if (!('share_price_7d' in value) || value['share_price_7d'] === undefined) return false;
102
102
  if (!('share_price_30d' in value) || value['share_price_30d'] === undefined) return false;
103
103
  if (!('annual_percentage_yield' in value) || value['annual_percentage_yield'] === undefined) return false;
104
- if (!('returns' in value) || value['returns'] === undefined) return false;
104
+ if (!('daily_returns' in value) || value['daily_returns'] === undefined) return false;
105
105
  return true;
106
106
  }
107
107
 
@@ -124,7 +124,7 @@ export function PublicPoolInfoFromJSONTyped(json: any, ignoreDiscriminator: bool
124
124
  'share_price_7d': json['share_price_7d'],
125
125
  'share_price_30d': json['share_price_30d'],
126
126
  'annual_percentage_yield': json['annual_percentage_yield'],
127
- 'returns': ((json['returns'] as Array<any>).map(Float64FromJSON)),
127
+ 'daily_returns': ((json['daily_returns'] as Array<any>).map(DailyReturnFromJSON)),
128
128
  };
129
129
  }
130
130
 
@@ -143,7 +143,7 @@ export function PublicPoolInfoToJSON(value?: PublicPoolInfo | null): any {
143
143
  'share_price_7d': value['share_price_7d'],
144
144
  'share_price_30d': value['share_price_30d'],
145
145
  'annual_percentage_yield': value['annual_percentage_yield'],
146
- 'returns': ((value['returns'] as Array<any>).map(Float64ToJSON)),
146
+ 'daily_returns': ((value['daily_returns'] as Array<any>).map(DailyReturnToJSON)),
147
147
  };
148
148
  }
149
149
 
@@ -0,0 +1,86 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ReqGetPositionFunding
20
+ */
21
+ export interface ReqGetPositionFunding {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ReqGetPositionFunding
26
+ */
27
+ account_index: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof ReqGetPositionFunding
32
+ */
33
+ market_id?: number;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ReqGetPositionFunding
38
+ */
39
+ cursor?: string;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof ReqGetPositionFunding
44
+ */
45
+ limit: number;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the ReqGetPositionFunding interface.
50
+ */
51
+ export function instanceOfReqGetPositionFunding(value: object): value is ReqGetPositionFunding {
52
+ if (!('account_index' in value) || value['account_index'] === undefined) return false;
53
+ if (!('limit' in value) || value['limit'] === undefined) return false;
54
+ return true;
55
+ }
56
+
57
+ export function ReqGetPositionFundingFromJSON(json: any): ReqGetPositionFunding {
58
+ return ReqGetPositionFundingFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function ReqGetPositionFundingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetPositionFunding {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'account_index': json['account_index'],
68
+ 'market_id': json['market_id'] == null ? undefined : json['market_id'],
69
+ 'cursor': json['cursor'] == null ? undefined : json['cursor'],
70
+ 'limit': json['limit'],
71
+ };
72
+ }
73
+
74
+ export function ReqGetPositionFundingToJSON(value?: ReqGetPositionFunding | null): any {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+ return {
79
+
80
+ 'account_index': value['account_index'],
81
+ 'market_id': value['market_id'],
82
+ 'cursor': value['cursor'],
83
+ 'limit': value['limit'],
84
+ };
85
+ }
86
+
@@ -0,0 +1,70 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface Return
20
+ */
21
+ export interface Return {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof Return
26
+ */
27
+ timestamp: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof Return
32
+ */
33
+ _return: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the Return interface.
38
+ */
39
+ export function instanceOfReturn(value: object): value is Return {
40
+ if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
41
+ if (!('_return' in value) || value['_return'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function ReturnFromJSON(json: any): Return {
46
+ return ReturnFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ReturnFromJSONTyped(json: any, ignoreDiscriminator: boolean): Return {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'timestamp': json['timestamp'],
56
+ '_return': json['return'],
57
+ };
58
+ }
59
+
60
+ export function ReturnToJSON(value?: Return | null): any {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+
66
+ 'timestamp': value['timestamp'],
67
+ 'return': value['_return'],
68
+ };
69
+ }
70
+
package/models/index.ts CHANGED
@@ -22,6 +22,7 @@ export * from './ContractAddress';
22
22
  export * from './CreateIntentAddressResp';
23
23
  export * from './CurrentHeight';
24
24
  export * from './Cursor';
25
+ export * from './DailyReturn';
25
26
  export * from './Deposit';
26
27
  export * from './DepositHistory';
27
28
  export * from './DepositHistoryItem';
@@ -52,6 +53,7 @@ export * from './OrderBooks';
52
53
  export * from './Orders';
53
54
  export * from './PnLEntry';
54
55
  export * from './PositionFunding';
56
+ export * from './PositionFundings';
55
57
  export * from './PriceLevel';
56
58
  export * from './PublicPool';
57
59
  export * from './PublicPoolInfo';
@@ -84,6 +86,7 @@ export * from './ReqGetNextNonce';
84
86
  export * from './ReqGetOrderBookDetails';
85
87
  export * from './ReqGetOrderBookOrders';
86
88
  export * from './ReqGetOrderBooks';
89
+ export * from './ReqGetPositionFunding';
87
90
  export * from './ReqGetPublicPools';
88
91
  export * from './ReqGetRangeWithCursor';
89
92
  export * from './ReqGetRangeWithIndex';
package/openapi.json CHANGED
@@ -1686,6 +1686,65 @@
1686
1686
  "description": "Get account PnL chart"
1687
1687
  }
1688
1688
  },
1689
+ "/api/v1/positionFunding": {
1690
+ "get": {
1691
+ "summary": "positionFunding",
1692
+ "operationId": "positionFunding",
1693
+ "responses": {
1694
+ "200": {
1695
+ "description": "A successful response.",
1696
+ "schema": {
1697
+ "$ref": "#/definitions/PositionFundings"
1698
+ }
1699
+ },
1700
+ "400": {
1701
+ "description": "Bad request",
1702
+ "schema": {
1703
+ "$ref": "#/definitions/ResultCode"
1704
+ }
1705
+ }
1706
+ },
1707
+ "parameters": [
1708
+ {
1709
+ "name": "account_index",
1710
+ "in": "query",
1711
+ "required": true,
1712
+ "type": "integer",
1713
+ "format": "int64"
1714
+ },
1715
+ {
1716
+ "name": "market_id",
1717
+ "in": "query",
1718
+ "required": false,
1719
+ "type": "integer",
1720
+ "format": "uint8",
1721
+ "default": "255"
1722
+ },
1723
+ {
1724
+ "name": "cursor",
1725
+ "in": "query",
1726
+ "required": false,
1727
+ "type": "string"
1728
+ },
1729
+ {
1730
+ "name": "limit",
1731
+ "in": "query",
1732
+ "required": true,
1733
+ "type": "integer",
1734
+ "format": "int64",
1735
+ "minimum": 1,
1736
+ "maximum": 100
1737
+ }
1738
+ ],
1739
+ "tags": [
1740
+ "account"
1741
+ ],
1742
+ "consumes": [
1743
+ "multipart/form-data"
1744
+ ],
1745
+ "description": "Get accounts position fundings"
1746
+ }
1747
+ },
1689
1748
  "/api/v1/publicPools": {
1690
1749
  "get": {
1691
1750
  "summary": "publicPools",
@@ -3172,6 +3231,26 @@
3172
3231
  },
3173
3232
  "title": "Cursor"
3174
3233
  },
3234
+ "DailyReturn": {
3235
+ "type": "object",
3236
+ "properties": {
3237
+ "timestamp": {
3238
+ "type": "integer",
3239
+ "format": "int64",
3240
+ "example": "1640995200"
3241
+ },
3242
+ "daily_return": {
3243
+ "type": "number",
3244
+ "format": "double",
3245
+ "example": "0.0001"
3246
+ }
3247
+ },
3248
+ "title": "DailyReturn",
3249
+ "required": [
3250
+ "timestamp",
3251
+ "daily_return"
3252
+ ]
3253
+ },
3175
3254
  "Deposit": {
3176
3255
  "type": "object",
3177
3256
  "properties": {
@@ -4773,6 +4852,33 @@
4773
4852
  "position_side"
4774
4853
  ]
4775
4854
  },
4855
+ "PositionFundings": {
4856
+ "type": "object",
4857
+ "properties": {
4858
+ "code": {
4859
+ "type": "integer",
4860
+ "format": "int32",
4861
+ "example": "200"
4862
+ },
4863
+ "message": {
4864
+ "type": "string"
4865
+ },
4866
+ "position_fundings": {
4867
+ "type": "array",
4868
+ "items": {
4869
+ "$ref": "#/definitions/PositionFunding"
4870
+ }
4871
+ },
4872
+ "next_cursor": {
4873
+ "type": "string"
4874
+ }
4875
+ },
4876
+ "title": "PositionFundings",
4877
+ "required": [
4878
+ "code",
4879
+ "position_fundings"
4880
+ ]
4881
+ },
4776
4882
  "PriceLevel": {
4777
4883
  "type": "object",
4778
4884
  "properties": {
@@ -4934,10 +5040,10 @@
4934
5040
  "format": "double",
4935
5041
  "example": "20.5000"
4936
5042
  },
4937
- "returns": {
5043
+ "daily_returns": {
4938
5044
  "type": "array",
4939
5045
  "items": {
4940
- "$ref": "#/definitions/float64"
5046
+ "$ref": "#/definitions/DailyReturn"
4941
5047
  }
4942
5048
  }
4943
5049
  },
@@ -4952,7 +5058,7 @@
4952
5058
  "share_price_7d",
4953
5059
  "share_price_30d",
4954
5060
  "annual_percentage_yield",
4955
- "returns"
5061
+ "daily_returns"
4956
5062
  ]
4957
5063
  },
4958
5064
  "PublicPoolShare": {
@@ -5769,6 +5875,34 @@
5769
5875
  },
5770
5876
  "title": "ReqGetOrderBooks"
5771
5877
  },
5878
+ "ReqGetPositionFunding": {
5879
+ "type": "object",
5880
+ "properties": {
5881
+ "account_index": {
5882
+ "type": "integer",
5883
+ "format": "int64"
5884
+ },
5885
+ "market_id": {
5886
+ "type": "integer",
5887
+ "format": "uint8",
5888
+ "default": "255"
5889
+ },
5890
+ "cursor": {
5891
+ "type": "string"
5892
+ },
5893
+ "limit": {
5894
+ "type": "integer",
5895
+ "format": "int64",
5896
+ "maximum": 100,
5897
+ "minimum": 1
5898
+ }
5899
+ },
5900
+ "title": "ReqGetPositionFunding",
5901
+ "required": [
5902
+ "account_index",
5903
+ "limit"
5904
+ ]
5905
+ },
5772
5906
  "ReqGetPublicPools": {
5773
5907
  "type": "object",
5774
5908
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.101",
3
+ "version": "1.0.103",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {