@coinbase-sample/prime-sdk-ts 0.2.0 → 0.3.0
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/balances/index.d.ts +3 -1
- package/dist/balances/index.js +12 -1
- package/dist/balances/types.d.ts +9 -0
- package/dist/financing/index.d.ts +49 -0
- package/dist/financing/index.js +144 -0
- package/dist/financing/types.d.ts +94 -0
- package/dist/financing/types.js +2 -0
- package/dist/futures/index.d.ts +5 -5
- package/dist/futures/types.d.ts +2 -2
- package/dist/index.d.ts +19 -0
- package/dist/index.js +3 -1
- package/dist/model/AcceptQuoteRequest.d.ts +33 -0
- package/dist/model/AcceptQuoteRequest.js +21 -0
- package/dist/model/AcceptQuoteResponse.d.ts +22 -0
- package/dist/model/AcceptQuoteResponse.js +21 -0
- package/dist/model/Accrual.d.ts +83 -0
- package/dist/model/Accrual.js +21 -0
- package/dist/model/AssetBalance.d.ts +41 -0
- package/dist/model/AssetBalance.js +21 -0
- package/dist/model/Balance.d.ts +4 -0
- package/dist/model/BuyingPower.d.ts +41 -0
- package/dist/model/BuyingPower.js +21 -0
- package/dist/model/Conversion.d.ts +36 -0
- package/dist/model/Conversion.js +21 -0
- package/dist/model/ConversionDetail.d.ts +49 -0
- package/dist/model/ConversionDetail.js +21 -0
- package/dist/model/CreateAddressGroup.d.ts +26 -0
- package/dist/model/CreateAddressGroup.js +21 -0
- package/dist/model/CreateNewLocatesRequest.d.ts +37 -0
- package/dist/model/CreateNewLocatesRequest.js +21 -0
- package/dist/model/CreateNewLocatesResponse.d.ts +22 -0
- package/dist/model/CreateNewLocatesResponse.js +21 -0
- package/dist/model/CreateOrderRequest.d.ts +4 -0
- package/dist/model/EntityBalance.d.ts +41 -0
- package/dist/model/EntityBalance.js +21 -0
- package/dist/model/ExistingLocate.d.ts +65 -0
- package/dist/model/ExistingLocate.js +21 -0
- package/dist/model/Fill.d.ts +4 -0
- package/dist/model/GetBuyingPowerResponse.d.ts +23 -0
- package/dist/model/GetBuyingPowerResponse.js +21 -0
- package/dist/model/GetExistingLocatesResponse.d.ts +23 -0
- package/dist/model/GetExistingLocatesResponse.js +21 -0
- package/dist/model/GetInterestAccrualsResponse.d.ts +24 -0
- package/dist/model/GetInterestAccrualsResponse.js +21 -0
- package/dist/model/GetLocateAvailabilitiesResponse.d.ts +23 -0
- package/dist/model/GetLocateAvailabilitiesResponse.js +21 -0
- package/dist/model/GetMarginConversionsResponse.d.ts +23 -0
- package/dist/model/GetMarginConversionsResponse.js +21 -0
- package/dist/model/GetMarginInformationResponse.d.ts +23 -0
- package/dist/model/GetMarginInformationResponse.js +21 -0
- package/dist/model/GetMarginSummariesResponse.d.ts +23 -0
- package/dist/model/GetMarginSummariesResponse.js +21 -0
- package/dist/model/GetPortfolioInterestAccrualsResponse.d.ts +24 -0
- package/dist/model/GetPortfolioInterestAccrualsResponse.js +21 -0
- package/dist/model/GetTFTieredPricingFeesResponse.d.ts +23 -0
- package/dist/model/GetTFTieredPricingFeesResponse.js +21 -0
- package/dist/model/GetWithdrawalPowerResponse.d.ts +23 -0
- package/dist/model/GetWithdrawalPowerResponse.js +21 -0
- package/dist/model/ListAggregateEntityPositionsResponse.d.ts +25 -0
- package/dist/model/ListAggregateEntityPositionsResponse.js +21 -0
- package/dist/model/ListEntityBalancesResponse.d.ts +25 -0
- package/dist/model/ListEntityBalancesResponse.js +21 -0
- package/dist/model/ListEntityPositionsResponse.d.ts +25 -0
- package/dist/model/ListEntityPositionsResponse.js +21 -0
- package/dist/model/LoanInfo.d.ts +41 -0
- package/dist/model/LoanInfo.js +21 -0
- package/dist/model/Locate.d.ts +33 -0
- package/dist/model/Locate.js +21 -0
- package/dist/model/MarginAddOn.d.ts +27 -0
- package/dist/model/MarginAddOn.js +21 -0
- package/dist/model/MarginCallRecord.d.ts +41 -0
- package/dist/model/MarginCallRecord.js +21 -0
- package/dist/model/MarginInformation.d.ts +28 -0
- package/dist/model/MarginInformation.js +21 -0
- package/dist/model/MarginSummary.d.ts +151 -0
- package/dist/model/MarginSummary.js +21 -0
- package/dist/model/MarginSummaryHistorical.d.ts +31 -0
- package/dist/model/MarginSummaryHistorical.js +21 -0
- package/dist/model/MarketRate.d.ts +29 -0
- package/dist/model/MarketRate.js +21 -0
- package/dist/model/Order.d.ts +4 -0
- package/dist/model/OrderPreviewRequest.d.ts +4 -0
- package/dist/model/PMAssetInfo.d.ts +89 -0
- package/dist/model/PMAssetInfo.js +21 -0
- package/dist/model/Position.d.ts +35 -0
- package/dist/model/Position.js +21 -0
- package/dist/model/PositionReference.d.ts +27 -0
- package/dist/model/PositionReference.js +21 -0
- package/dist/model/Product.d.ts +2 -0
- package/dist/model/QuoteResponse.d.ts +26 -0
- package/dist/model/QuoteResponse.js +21 -0
- package/dist/model/RFQ.d.ts +35 -0
- package/dist/model/RFQ.js +21 -0
- package/dist/model/RFQProductDetails.d.ts +24 -0
- package/dist/model/RFQProductDetails.js +21 -0
- package/dist/model/RpcConfig.d.ts +1 -1
- package/dist/model/ShortCollateral.d.ts +37 -0
- package/dist/model/ShortCollateral.js +21 -0
- package/dist/model/TieredPricingFee.d.ts +29 -0
- package/dist/model/TieredPricingFee.js +21 -0
- package/dist/model/WithdrawalPower.d.ts +29 -0
- package/dist/model/WithdrawalPower.js +21 -0
- package/dist/model/enums/Benchmark.d.ts +26 -0
- package/dist/model/enums/Benchmark.js +30 -0
- package/dist/model/enums/LoanType.d.ts +27 -0
- package/dist/model/enums/LoanType.js +31 -0
- package/dist/model/enums/MarginAddOnType.d.ts +26 -0
- package/dist/model/enums/MarginAddOnType.js +30 -0
- package/dist/model/enums/PortfolioBalanceType.d.ts +2 -1
- package/dist/model/enums/PortfolioBalanceType.js +1 -0
- package/dist/model/enums/PositionReferenceType.d.ts +24 -0
- package/dist/model/enums/PositionReferenceType.js +28 -0
- package/dist/model/enums/RateType.d.ts +26 -0
- package/dist/model/enums/RateType.js +30 -0
- package/dist/orders/index.d.ts +5 -1
- package/dist/orders/index.js +22 -0
- package/dist/orders/types.d.ts +11 -0
- package/dist/portfolios/index.d.ts +3 -3
- package/dist/portfolios/index.js +1 -1
- package/dist/portfolios/types.d.ts +1 -0
- package/dist/positions/index.d.ts +29 -0
- package/dist/positions/index.js +40 -0
- package/dist/positions/types.d.ts +14 -0
- package/dist/positions/types.js +2 -0
- package/dist/wallets/index.d.ts +5 -1
- package/dist/wallets/index.js +51 -0
- package/dist/wallets/types.d.ts +22 -0
- package/package.json +12 -11
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
export type Locate = {
|
|
21
|
+
/**
|
|
22
|
+
* The currency symbol
|
|
23
|
+
*/
|
|
24
|
+
symbol?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The available quantity located
|
|
27
|
+
*/
|
|
28
|
+
quantity?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The interest rate for located symbol
|
|
31
|
+
*/
|
|
32
|
+
rate?: string;
|
|
33
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { MarginAddOnType } from './enums/MarginAddOnType';
|
|
21
|
+
export type MarginAddOn = {
|
|
22
|
+
/**
|
|
23
|
+
* margin add on amount
|
|
24
|
+
*/
|
|
25
|
+
amount?: string;
|
|
26
|
+
addOnType?: MarginAddOnType;
|
|
27
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
export type MarginCallRecord = {
|
|
21
|
+
/**
|
|
22
|
+
* The unique ID of the margin call
|
|
23
|
+
*/
|
|
24
|
+
marginCallId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The initial margin call amount in notional value
|
|
27
|
+
*/
|
|
28
|
+
initialNotionalAmount?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The outstanding margin call amount in notional value
|
|
31
|
+
*/
|
|
32
|
+
outstandingNotionalAmount?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The time the margin call is created in RFC3330 format
|
|
35
|
+
*/
|
|
36
|
+
createdAt?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The time the margin call is due in RFC3339 format
|
|
39
|
+
*/
|
|
40
|
+
dueAt?: string;
|
|
41
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { MarginCallRecord } from './MarginCallRecord';
|
|
21
|
+
import { MarginSummary } from './MarginSummary';
|
|
22
|
+
export type MarginInformation = {
|
|
23
|
+
/**
|
|
24
|
+
* The current margin call records
|
|
25
|
+
*/
|
|
26
|
+
marginCallRecords?: Array<MarginCallRecord>;
|
|
27
|
+
marginSummary?: MarginSummary;
|
|
28
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { AssetBalance } from './AssetBalance';
|
|
21
|
+
import { LoanInfo } from './LoanInfo';
|
|
22
|
+
import { MarginAddOn } from './MarginAddOn';
|
|
23
|
+
import { MarketRate } from './MarketRate';
|
|
24
|
+
import { PMAssetInfo } from './PMAssetInfo';
|
|
25
|
+
export type MarginSummary = {
|
|
26
|
+
/**
|
|
27
|
+
* The unique ID of the entity
|
|
28
|
+
*/
|
|
29
|
+
entityId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The margin equity at the entity level. Margin Equity = LMV + SMV + Trading Cash Balance + Short Collateral - Pending Withdrawals
|
|
32
|
+
*/
|
|
33
|
+
marginEquity?: string;
|
|
34
|
+
/**
|
|
35
|
+
* USD notional value of required equity in entity portfolios
|
|
36
|
+
*/
|
|
37
|
+
marginRequirement?: string;
|
|
38
|
+
/**
|
|
39
|
+
* margin_equity - margin_requirement
|
|
40
|
+
*/
|
|
41
|
+
excessDeficit?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The raw amount of portfolio margin credit used
|
|
44
|
+
*/
|
|
45
|
+
pmCreditConsumed?: string;
|
|
46
|
+
/**
|
|
47
|
+
* The maximum trade finance credit limit. This field is deprecated and will be removed in the future.
|
|
48
|
+
*/
|
|
49
|
+
tfCreditLimit?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The amount of trade finance credit used (USD). This field is deprecated and will be removed in the future.
|
|
52
|
+
*/
|
|
53
|
+
tfCreditConsumed?: string;
|
|
54
|
+
/**
|
|
55
|
+
* TF Asset Adjusted Value (USD). This field is deprecated and will be removed in the future.
|
|
56
|
+
*/
|
|
57
|
+
tfAdjustedAssetValue?: string;
|
|
58
|
+
/**
|
|
59
|
+
* TF Adjusted Liability Value (USD). This field is deprecated and will be removed in the future.
|
|
60
|
+
*/
|
|
61
|
+
tfAdjustedLiabilityValue?: string;
|
|
62
|
+
/**
|
|
63
|
+
* The amount of adjusted credit used. This field is deprecated and will be removed in the future.
|
|
64
|
+
*/
|
|
65
|
+
tfAdjustedCreditConsumed?: string;
|
|
66
|
+
/**
|
|
67
|
+
* The amount of adjusted equity. This field is deprecated and will be removed in the future.
|
|
68
|
+
*/
|
|
69
|
+
tfAdjustedEquity?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Whether or not a entity is frozen due to balance outstanding or other reason
|
|
72
|
+
*/
|
|
73
|
+
frozen?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* The reason why a entity is frozen
|
|
76
|
+
*/
|
|
77
|
+
frozenReason?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Whether TF is enabled for the entity. This field is deprecated and will be removed in the future.
|
|
80
|
+
*/
|
|
81
|
+
tfEnabled?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Whether PM is enabled for the entity
|
|
84
|
+
*/
|
|
85
|
+
pmEnabled?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Market rates for the list of assets
|
|
88
|
+
*/
|
|
89
|
+
marketRates?: Array<MarketRate>;
|
|
90
|
+
/**
|
|
91
|
+
* Asset Balances across portfolios
|
|
92
|
+
*/
|
|
93
|
+
assetBalances?: Array<AssetBalance>;
|
|
94
|
+
/**
|
|
95
|
+
* Trade finance debit loan amounts. This field is deprecated and will be removed in the future.
|
|
96
|
+
*/
|
|
97
|
+
tfLoans?: Array<LoanInfo>;
|
|
98
|
+
/**
|
|
99
|
+
* Portfolio Margin debit loan amounts
|
|
100
|
+
*/
|
|
101
|
+
pmLoans?: Array<LoanInfo>;
|
|
102
|
+
/**
|
|
103
|
+
* Short collateral amounts
|
|
104
|
+
*/
|
|
105
|
+
shortCollateral?: Array<LoanInfo>;
|
|
106
|
+
/**
|
|
107
|
+
* Gross market value (GMV) = LMV + Abs (SMV)
|
|
108
|
+
*/
|
|
109
|
+
grossMarketValue?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Net Market Value (NMV) = LMV + SMV
|
|
112
|
+
*/
|
|
113
|
+
netMarketValue?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Long Market Value (LMV) = Sum of positive notional for all assets
|
|
116
|
+
*/
|
|
117
|
+
longMarketValue?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Non_Marginable LMV: Sum of positive notional for each non-margin eligible coin
|
|
120
|
+
*/
|
|
121
|
+
nonMarginableLongMarketValue?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Short Market Value (SMV) = Sum of negative notional for each margin eligible coin
|
|
124
|
+
*/
|
|
125
|
+
shortMarketValue?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Gross Leverage = GMV / Margin Requirement
|
|
128
|
+
*/
|
|
129
|
+
grossLeverage?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Net Exposure = (LMV + SMV) / GMV
|
|
132
|
+
*/
|
|
133
|
+
netExposure?: string;
|
|
134
|
+
portfolioStressTriggered?: MarginAddOn;
|
|
135
|
+
/**
|
|
136
|
+
* PM asset info netted across the entity
|
|
137
|
+
*/
|
|
138
|
+
pmAssetInfo?: Array<PMAssetInfo>;
|
|
139
|
+
/**
|
|
140
|
+
* PM limit that monitors gross notional borrowings (crypto + fiat)
|
|
141
|
+
*/
|
|
142
|
+
pmCreditLimit?: string;
|
|
143
|
+
/**
|
|
144
|
+
* PM limit that monitors excess deficit
|
|
145
|
+
*/
|
|
146
|
+
pmMarginLimit?: string;
|
|
147
|
+
/**
|
|
148
|
+
* The amount of the margin limit that is consumed by the excess deficit
|
|
149
|
+
*/
|
|
150
|
+
pmMarginConsumed?: string;
|
|
151
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { MarginSummary } from './MarginSummary';
|
|
21
|
+
export type MarginSummaryHistorical = {
|
|
22
|
+
/**
|
|
23
|
+
* The UTC date time used for conversion
|
|
24
|
+
*/
|
|
25
|
+
conversionDatetime?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The date used for conversion
|
|
28
|
+
*/
|
|
29
|
+
conversionDate?: string;
|
|
30
|
+
marginSummary?: MarginSummary;
|
|
31
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
export type MarketRate = {
|
|
21
|
+
/**
|
|
22
|
+
* The currency symbol
|
|
23
|
+
*/
|
|
24
|
+
symbol?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The current market rate of currency
|
|
27
|
+
*/
|
|
28
|
+
rate?: string;
|
|
29
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/model/Order.d.ts
CHANGED
|
@@ -106,4 +106,8 @@ export type Order = {
|
|
|
106
106
|
* Indicates a user friendly message for regarding various aspects of the order such as cancellation or rejection reasons
|
|
107
107
|
*/
|
|
108
108
|
userContext?: string;
|
|
109
|
+
/**
|
|
110
|
+
* The client product ID of the fill indicating the settlement currency
|
|
111
|
+
*/
|
|
112
|
+
clientProductId?: string;
|
|
109
113
|
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
export type PMAssetInfo = {
|
|
21
|
+
/**
|
|
22
|
+
* The currency symbol
|
|
23
|
+
*/
|
|
24
|
+
symbol?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Nominal amount of the currency
|
|
27
|
+
*/
|
|
28
|
+
amount?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Spot price for the currency
|
|
31
|
+
*/
|
|
32
|
+
price?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Notional amount of the currency
|
|
35
|
+
*/
|
|
36
|
+
notionalAmount?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Asset tier of the currency
|
|
39
|
+
*/
|
|
40
|
+
assetTier?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Whether the currency is margin eligible
|
|
43
|
+
*/
|
|
44
|
+
marginEligible?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Base margin requirement of the currency
|
|
47
|
+
*/
|
|
48
|
+
baseMarginRequirement?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Notional amount of the currency\'s base margin requirement
|
|
51
|
+
*/
|
|
52
|
+
baseMarginRequirementNotional?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The 30d adv of the currency
|
|
55
|
+
*/
|
|
56
|
+
adv30d?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Historic 5d volatility of the currency
|
|
59
|
+
*/
|
|
60
|
+
hist5dVol?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Historic 30d volatility of the currency
|
|
63
|
+
*/
|
|
64
|
+
hist30dVol?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Historic 90d volatility of the currency
|
|
67
|
+
*/
|
|
68
|
+
hist90dVol?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Volatility margin addon of the currency position
|
|
71
|
+
*/
|
|
72
|
+
volatilityAddon?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Liquidity margin addon of the currency position
|
|
75
|
+
*/
|
|
76
|
+
liquidityAddon?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Total position margin of the currency
|
|
79
|
+
*/
|
|
80
|
+
totalPositionMargin?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Nominal short position of the currency
|
|
83
|
+
*/
|
|
84
|
+
shortNominal?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Nominal long position of the currency
|
|
87
|
+
*/
|
|
88
|
+
longNominal?: string;
|
|
89
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { PositionReference } from './PositionReference';
|
|
21
|
+
export type Position = {
|
|
22
|
+
/**
|
|
23
|
+
* Asset symbol
|
|
24
|
+
*/
|
|
25
|
+
symbol?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The long position based on \'reference\' value
|
|
28
|
+
*/
|
|
29
|
+
_long?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The short position based on \'reference\' value
|
|
32
|
+
*/
|
|
33
|
+
_short?: string;
|
|
34
|
+
positionReference?: PositionReference;
|
|
35
|
+
};
|