@grvt/client 1.6.14 → 1.6.15

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.
@@ -965,11 +965,11 @@ export interface IApiQueryTradingAccountRiskMetricResponse {
965
965
  }
966
966
  export interface IApiQueryTradingPerformanceRequest {
967
967
  sub_account_id?: string;
968
- asset?: string;
969
968
  }
970
969
  export interface IApiQueryTradingPerformanceResponse {
971
970
  trading_volume?: string;
972
971
  realized_pnl?: string;
972
+ cumulative_pnl?: string;
973
973
  }
974
974
  export interface IApiQueryTradingPerformanceSummaryRequest {
975
975
  sub_account_id?: string;
@@ -4,11 +4,9 @@ exports.API_QUERY_TRADING_PERFORMANCE_REQUEST_MAP = void 0;
4
4
  // Schema map for the 'API_QUERY_TRADING_PERFORMANCE_REQUEST' struct.
5
5
  exports.API_QUERY_TRADING_PERFORMANCE_REQUEST_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
- sub_account_id: 'sa',
8
- asset: 'a'
7
+ sub_account_id: 'sa'
9
8
  },
10
9
  LITE_TO_FULL: {
11
- sa: 'sub_account_id',
12
- a: 'asset'
10
+ sa: 'sub_account_id'
13
11
  }
14
12
  });
@@ -5,10 +5,12 @@ exports.API_QUERY_TRADING_PERFORMANCE_RESPONSE_MAP = void 0;
5
5
  exports.API_QUERY_TRADING_PERFORMANCE_RESPONSE_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
7
  trading_volume: 'tv',
8
- realized_pnl: 'rp'
8
+ realized_pnl: 'rp',
9
+ cumulative_pnl: 'cp'
9
10
  },
10
11
  LITE_TO_FULL: {
11
12
  tv: 'trading_volume',
12
- rp: 'realized_pnl'
13
+ rp: 'realized_pnl',
14
+ cp: 'cumulative_pnl'
13
15
  }
14
16
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grvt/client",
3
- "version": "1.6.14",
3
+ "version": "1.6.15",
4
4
  "description": "Node.js & JavaScript client for GRVT REST APIs & WebSockets",
5
5
  "repository": {
6
6
  "type": "git",