@coinbase-sample/prime-sdk-ts 0.6.4 → 0.7.1
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/constants.js +1 -1
- package/dist/financing/index.js +9 -0
- package/dist/futures/index.js +18 -0
- package/dist/model/Candle.js +21 -0
- package/dist/model/CrossMarginOverview.js +21 -0
- package/dist/model/EditOrderRequest.js +21 -0
- package/dist/model/EditOrderResponse.js +21 -0
- package/dist/model/GetCandlesResponse.js +21 -0
- package/dist/model/GetCrossMarginOverviewResponse.js +21 -0
- package/dist/model/ListTransactionValidatorsRequest.js +21 -0
- package/dist/model/ListTransactionValidatorsResponse.js +21 -0
- package/dist/model/StakingClaimRewardsRequest.js +21 -0
- package/dist/model/StakingClaimRewardsResponse.js +21 -0
- package/dist/model/TransactionValidator.js +21 -0
- package/dist/model/WalletClaimRewardsInputs.js +21 -0
- package/dist/model/XMLoan.js +21 -0
- package/dist/model/XMMarginCall.js +21 -0
- package/dist/model/XMPosition.js +21 -0
- package/dist/model/XMRiskNettingInfo.js +21 -0
- package/dist/model/XMSummary.js +21 -0
- package/dist/model/enums/ActivityCategory.js +0 -1
- package/dist/model/enums/ActivityLevel.js +3 -3
- package/dist/model/enums/AddressBookType.js +3 -3
- package/dist/model/enums/AllocationStatus.js +5 -5
- package/dist/model/enums/CandlesGranularity.js +34 -0
- package/dist/model/enums/CustodyActivityType.js +29 -29
- package/dist/model/enums/DestinationType.js +4 -4
- package/dist/model/enums/FcmFuturesSweepStatus.js +5 -5
- package/dist/model/enums/FcmMarginCallState.js +5 -5
- package/dist/model/enums/FcmMarginCallType.js +3 -3
- package/dist/model/enums/HierarchyType.js +3 -3
- package/dist/model/enums/InvoiceState.js +5 -5
- package/dist/model/enums/InvoiceType.js +6 -6
- package/dist/model/enums/LoanType.js +1 -0
- package/dist/model/enums/NetworkFamily.js +3 -3
- package/dist/model/enums/NetworkType.js +3 -3
- package/dist/model/enums/PaymentMethodType.js +3 -3
- package/dist/model/enums/ProductPermissions.js +3 -3
- package/dist/model/enums/ValidatorStatus.js +31 -0
- package/dist/model/enums/WalletVisibility.js +3 -3
- package/dist/model/enums/XMCallStatus.js +33 -0
- package/dist/model/enums/XMCallType.js +31 -0
- package/dist/model/enums/XMControlStatus.js +32 -0
- package/dist/model/enums/XMEntityCallStatus.js +33 -0
- package/dist/model/enums/XMMarginLevel.js +34 -0
- package/dist/model/enums/XMParty.js +31 -0
- package/dist/model/enums/index.js +18 -1
- package/dist/orders/index.js +12 -0
- package/dist/products/index.js +16 -0
- package/dist/staking/index.js +37 -0
- package/dist/types/constants.d.ts +1 -1
- package/dist/types/financing/index.d.ts +3 -1
- package/dist/types/financing/types.d.ts +5 -1
- package/dist/types/futures/index.d.ts +6 -1
- package/dist/types/futures/types.d.ts +9 -1
- package/dist/types/index.d.ts +4 -4
- package/dist/types/model/Candle.d.ts +42 -0
- package/dist/types/model/CrossMarginOverview.d.ts +39 -0
- package/dist/types/model/EditOrderRequest.d.ts +61 -0
- package/dist/types/model/EditOrderResponse.d.ts +25 -0
- package/dist/types/model/GetCandlesResponse.d.ts +23 -0
- package/dist/types/model/GetCrossMarginOverviewResponse.d.ts +23 -0
- package/dist/types/model/ListTransactionValidatorsRequest.d.ts +35 -0
- package/dist/types/model/ListTransactionValidatorsResponse.d.ts +28 -0
- package/dist/types/model/RFQProductDetails.d.ts +21 -0
- package/dist/types/model/StakingClaimRewardsRequest.d.ts +27 -0
- package/dist/types/model/StakingClaimRewardsResponse.d.ts +33 -0
- package/dist/types/model/TransactionValidator.d.ts +31 -0
- package/dist/types/model/WalletClaimRewardsInputs.d.ts +28 -0
- package/dist/types/model/XMLoan.d.ts +51 -0
- package/dist/types/model/XMMarginCall.d.ts +57 -0
- package/dist/types/model/XMPosition.d.ts +121 -0
- package/dist/types/model/XMRiskNettingInfo.d.ts +76 -0
- package/dist/types/model/XMSummary.d.ts +55 -0
- package/dist/types/model/enums/ActivityCategory.d.ts +0 -1
- package/dist/types/model/enums/ActivityLevel.d.ts +3 -3
- package/dist/types/model/enums/AddressBookType.d.ts +3 -3
- package/dist/types/model/enums/AllocationStatus.d.ts +5 -5
- package/dist/types/model/enums/CandlesGranularity.d.ts +30 -0
- package/dist/types/model/enums/CustodyActivityType.d.ts +29 -29
- package/dist/types/model/enums/DestinationType.d.ts +4 -4
- package/dist/types/model/enums/FcmFuturesSweepStatus.d.ts +5 -5
- package/dist/types/model/enums/FcmMarginCallState.d.ts +5 -5
- package/dist/types/model/enums/FcmMarginCallType.d.ts +3 -3
- package/dist/types/model/enums/HierarchyType.d.ts +3 -3
- package/dist/types/model/enums/InvoiceState.d.ts +5 -5
- package/dist/types/model/enums/InvoiceType.d.ts +6 -6
- package/dist/types/model/enums/LoanType.d.ts +2 -1
- package/dist/types/model/enums/NetworkFamily.d.ts +3 -3
- package/dist/types/model/enums/NetworkType.d.ts +3 -3
- package/dist/types/model/enums/PaymentMethodType.d.ts +3 -3
- package/dist/types/model/enums/ProductPermissions.d.ts +3 -3
- package/dist/types/model/enums/ValidatorStatus.d.ts +27 -0
- package/dist/types/model/enums/WalletVisibility.d.ts +3 -3
- package/dist/types/model/enums/XMCallStatus.d.ts +29 -0
- package/dist/types/model/enums/XMCallType.d.ts +27 -0
- package/dist/types/model/enums/XMControlStatus.d.ts +28 -0
- package/dist/types/model/enums/XMEntityCallStatus.d.ts +29 -0
- package/dist/types/model/enums/XMMarginLevel.d.ts +30 -0
- package/dist/types/model/enums/XMParty.d.ts +27 -0
- package/dist/types/model/enums/index.d.ts +8 -0
- package/dist/types/model/index.d.ts +17 -3
- package/dist/types/orders/index.d.ts +3 -1
- package/dist/types/orders/types.d.ts +6 -1
- package/dist/types/products/index.d.ts +3 -1
- package/dist/types/products/types.d.ts +10 -1
- package/dist/types/staking/index.d.ts +5 -1
- package/dist/types/staking/types.d.ts +13 -1
- package/dist/types/wallets/types.d.ts +1 -1
- package/package.json +4 -3
package/dist/types/index.d.ts
CHANGED
|
@@ -43,16 +43,16 @@ export type { CreateAllocationRequest, CreateAllocationResponse, CreateNetAlloca
|
|
|
43
43
|
export type { ListAssetsRequest, ListAssetsResponse } from './assets/types';
|
|
44
44
|
export type { GetWalletBalanceRequest, GetWalletBalanceResponse, ListOnchainWalletBalancesRequest, ListOnchainWalletBalancesResponse, ListPortfolioBalancesRequest, ListPortfolioBalancesResponse, ListEntityBalancesRequest, ListEntityBalancesResponse, } from './balances/types';
|
|
45
45
|
export type { GetPortfolioCommissionRequest, GetPortfolioCommissionResponse, } from './commission/types';
|
|
46
|
-
export type { ListExistingLocatesRequest, ListExistingLocatesResponse, ListInterestAccrualsRequest, ListInterestAccrualsResponse, ListPortfolioInterestAccrualsRequest, ListPortfolioInterestAccrualsResponse, ListMarginCallSummariesRequest, ListMarginCallSummariesResponse, ListMarginConversionsRequest, ListMarginConversionsResponse, GetEntityLocateAvailabilitiesRequest, GetEntityLocateAvailabilitiesResponse, GetMarginInformationRequest, GetMarginInformationResponse, GetPortfolioBuyingPowerRequest, GetPortfolioBuyingPowerResponse, GetPortfolioCreditInformationRequest, GetPortfolioCreditInformationResponse, GetPortfolioWithdrawalPowerRequest, GetPortfolioWithdrawalPowerResponse, GetFcmMarginCallDetailsRequest, GetFcmMarginCallDetailsResponse, GetFcmRiskLimitsRequest, GetFcmRiskLimitsResponse, GetTieredPricingFeesRequest, GetTieredPricingFeesResponse, CreateNewLocatesRequest, CreateNewLocatesResponse, } from './financing/types';
|
|
46
|
+
export type { ListExistingLocatesRequest, ListExistingLocatesResponse, ListInterestAccrualsRequest, ListInterestAccrualsResponse, ListPortfolioInterestAccrualsRequest, ListPortfolioInterestAccrualsResponse, ListMarginCallSummariesRequest, ListMarginCallSummariesResponse, ListMarginConversionsRequest, ListMarginConversionsResponse, GetEntityLocateAvailabilitiesRequest, GetEntityLocateAvailabilitiesResponse, GetMarginInformationRequest, GetMarginInformationResponse, GetPortfolioBuyingPowerRequest, GetPortfolioBuyingPowerResponse, GetPortfolioCreditInformationRequest, GetPortfolioCreditInformationResponse, GetPortfolioWithdrawalPowerRequest, GetPortfolioWithdrawalPowerResponse, GetFcmMarginCallDetailsRequest, GetFcmMarginCallDetailsResponse, GetFcmRiskLimitsRequest, GetFcmRiskLimitsResponse, GetTieredPricingFeesRequest, GetTieredPricingFeesResponse, CreateNewLocatesRequest, CreateNewLocatesResponse, GetCrossMarginOverviewRequest, GetCrossMarginOverviewResponse, } from './financing/types';
|
|
47
47
|
export type { CancelEntitySweepRequest, CancelEntitySweepResponse, GetEntityFuturesBalanceRequest, GetEntityFuturesBalanceResponse, GetEntityFuturesPositionsRequest, GetEntityFuturesPositionsResponse, ListEntityFuturesSweepsRequest, ListEntityFuturesSweepsResponse, ScheduleEntityFuturesSweepRequest, ScheduleEntityFuturesSweepResponse, UpdateEntityFuturesAutoSweepRequest, UpdateEntityFuturesAutoSweepResponse, } from './futures/types';
|
|
48
48
|
export type { ListInvoicesRequest, ListInvoicesResponse, } from './invoices/types';
|
|
49
49
|
export type { CreateOnchainAddressBookEntryRequest, CreateOnchainAddressBookEntryResponse, DeleteOnchainAddressBookEntryRequest, DeleteOnchainAddressBookEntryResponse, ListOnchainAddressBookRequest, ListOnchainAddressBookResponse, UpdateOnchainAddressBookEntryRequest, UpdateOnchainAddressBookEntryResponse, } from './onchainAddressBook/types';
|
|
50
|
-
export type { AcceptQuoteRequest, AcceptQuoteResponse, CancelOrderRequest, CancelOrderResponse, CreateOrderPreviewRequest, CreateOrderPreviewResponse, CreateOrderRequest, CreateOrderResponse, CreateQuoteRequest, CreateQuoteResponse, GetOrderRequest, GetOrderResponse, GetOrderEditHistoryRequest, GetOrderEditHistoryResponse, ListOpenOrdersRequest, ListOpenOrdersResponse, ListOrderFillsRequest, ListOrderFillsResponse, ListPortfolioFillsRequest, ListPortfolioFillsResponse, ListPortfolioOrdersRequest, ListPortfolioOrdersResponse, } from './orders/types';
|
|
50
|
+
export type { AcceptQuoteRequest, AcceptQuoteResponse, CancelOrderRequest, CancelOrderResponse, CreateOrderPreviewRequest, CreateOrderPreviewResponse, CreateOrderRequest, CreateOrderResponse, CreateQuoteRequest, CreateQuoteResponse, GetOrderRequest, GetOrderResponse, GetOrderEditHistoryRequest, GetOrderEditHistoryResponse, ListOpenOrdersRequest, ListOpenOrdersResponse, ListOrderFillsRequest, ListOrderFillsResponse, ListPortfolioFillsRequest, ListPortfolioFillsResponse, ListPortfolioOrdersRequest, ListPortfolioOrdersResponse, EditOrderRequest, EditOrderResponse, } from './orders/types';
|
|
51
51
|
export type { GetPaymentMethodRequest, GetPaymentMethodResponse, ListEntityPaymentMethodsRequest, ListEntityPaymentMethodsResponse, } from './paymentMethods/types';
|
|
52
52
|
export type { ListPortfoliosRequest, ListPortfoliosResponse, GetPortfolioCreditRequest, GetPortfolioCreditResponse, GetPortfolioRequest, GetPortfolioResponse, GetCounterpartyIdRequest, GetCounterpartyIdResponse, } from './portfolios/types';
|
|
53
53
|
export type { ListAggregateEntityPositionsRequest, ListAggregateEntityPositionsResponse, ListEntityPositionsRequest, ListEntityPositionsResponse, } from './positions/types';
|
|
54
|
-
export type { ListProductsRequest, ListProductsResponse, } from './products/types';
|
|
55
|
-
export type { CreateStakeRequest, CreateStakeResponse, CreateUnstakeRequest, CreateUnstakeResponse, CreatePortfolioStakeRequest, CreatePortfolioStakeResponse, CreatePortfolioUnstakeRequest, CreatePortfolioUnstakeResponse, } from './staking/types';
|
|
54
|
+
export type { ListProductsRequest, ListProductsResponse, ListProductCandlesRequest, ListProductCandlesResponse, } from './products/types';
|
|
55
|
+
export type { CreateStakeRequest, CreateStakeResponse, CreateUnstakeRequest, CreateUnstakeResponse, CreatePortfolioStakeRequest, CreatePortfolioStakeResponse, CreatePortfolioUnstakeRequest, CreatePortfolioUnstakeResponse, QueryTransactionValidatorsRequest, QueryTransactionValidatorsResponse, BaseQueryTransactionValidatorsResponse, ClaimRewardsRequest, ClaimRewardsResponse, } from './staking/types';
|
|
56
56
|
export type { CreateConversionRequest, CreateConversionResponse, CreateOnchainTransactionRequest, CreateOnchainTransactionResponse, CreateTransferRequest, CreateTransferResponse, CreateWithdrawalRequest, CreateWithdrawalResponse, GetTransactionRequest, GetTransactionResponse, ListPortfolioTransactionsRequest, ListPortfolioTransactionsResponse, ListWalletTransactionsRequest, ListWalletTransactionsResponse, } from './transactions/types';
|
|
57
57
|
export type { ListPortfolioUsersRequest, ListPortfolioUsersResponse, ListUsersRequest, ListUsersResponse, } from './users/types';
|
|
58
58
|
export type { CreateWalletRequest, CreateWalletResponse, CreateWalletDepositAddressRequest, CreateWalletDepositAddressResponse, GetWalletDepositInstructionsRequest, GetWalletDepositInstructionsResponse, GetWalletRequest, GetWalletResponse, ListWalletAddressesRequest, ListWalletAddressesResponse, ListWalletsRequest, ListWalletsResponse, } from './wallets/types';
|
|
@@ -0,0 +1,42 @@
|
|
|
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 Candle = {
|
|
21
|
+
timestamp?: Date;
|
|
22
|
+
/**
|
|
23
|
+
* Opening price for the period
|
|
24
|
+
*/
|
|
25
|
+
open?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Highest price during the period
|
|
28
|
+
*/
|
|
29
|
+
high?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Lowest price during the period
|
|
32
|
+
*/
|
|
33
|
+
low?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Closing price for the period
|
|
36
|
+
*/
|
|
37
|
+
close?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Volume traded during the period
|
|
40
|
+
*/
|
|
41
|
+
volume?: string;
|
|
42
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { XMControlStatus } from './enums/XMControlStatus';
|
|
21
|
+
import { XMEntityCallStatus } from './enums/XMEntityCallStatus';
|
|
22
|
+
import { XMLoan } from './XMLoan';
|
|
23
|
+
import { XMMarginCall } from './XMMarginCall';
|
|
24
|
+
import { XMMarginLevel } from './enums/XMMarginLevel';
|
|
25
|
+
import { XMSummary } from './XMSummary';
|
|
26
|
+
export type CrossMarginOverview = {
|
|
27
|
+
controlStatus?: XMControlStatus;
|
|
28
|
+
callStatus?: XMEntityCallStatus;
|
|
29
|
+
marginLevel?: XMMarginLevel;
|
|
30
|
+
marginSummary?: XMSummary;
|
|
31
|
+
/**
|
|
32
|
+
* List of active XM margin calls
|
|
33
|
+
*/
|
|
34
|
+
activeMarginCalls?: Array<XMMarginCall>;
|
|
35
|
+
/**
|
|
36
|
+
* List of active XM loans
|
|
37
|
+
*/
|
|
38
|
+
activeLoans?: Array<XMLoan>;
|
|
39
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
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 EditOrderRequest = {
|
|
21
|
+
/**
|
|
22
|
+
* Deprecated: The product ID of the order being edited
|
|
23
|
+
*/
|
|
24
|
+
productId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The client order ID of the order being edited
|
|
27
|
+
*/
|
|
28
|
+
origClientOrderId: string;
|
|
29
|
+
/**
|
|
30
|
+
* The updated version of the client order ID
|
|
31
|
+
*/
|
|
32
|
+
clientOrderId: string;
|
|
33
|
+
/**
|
|
34
|
+
* Order size in base asset units (either `base_quantity` or `quote_value` is required)
|
|
35
|
+
*/
|
|
36
|
+
baseQuantity?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Order size in quote asset units, i.e. the amount the user wants to spend (when buying) or receive (when selling); the quantity in base units will be determined based on the market liquidity and indicated `quote_value` (either `base_quantity` or `quote_value` is required)
|
|
39
|
+
*/
|
|
40
|
+
quoteValue?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The limit price (required for TWAP, VWAP, LIMIT, and STOP_LIMIT orders)
|
|
43
|
+
*/
|
|
44
|
+
limitPrice?: string;
|
|
45
|
+
/**
|
|
46
|
+
* The expiry time of the order in UTC (TWAP, VWAP, LIMIT, and STOP_LIMIT GTD only)
|
|
47
|
+
*/
|
|
48
|
+
expiryTime?: Date;
|
|
49
|
+
/**
|
|
50
|
+
* The maximum order size that will show up on venue order books. Specifying a value here effectively makes a LIMIT order into an \"iceberg\" style order.
|
|
51
|
+
*/
|
|
52
|
+
displayQuoteSize?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The maximum order size that will show up on venue order books. Specifying a value here effectively makes a LIMIT order into an \"iceberg\" style order.
|
|
55
|
+
*/
|
|
56
|
+
displayBaseSize?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Specifies the stop price at which the order activates. The order is activated if the last trade price on Coinbase Exchange crosses the stop price specified on the order
|
|
59
|
+
*/
|
|
60
|
+
stopPrice?: string;
|
|
61
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
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 EditOrderResponse = {
|
|
21
|
+
/**
|
|
22
|
+
* The ID of the order being edited
|
|
23
|
+
*/
|
|
24
|
+
orderId?: string;
|
|
25
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { Candle } from './Candle';
|
|
21
|
+
export type GetCandlesResponse = {
|
|
22
|
+
candles?: Array<Candle>;
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { CrossMarginOverview } from './CrossMarginOverview';
|
|
21
|
+
export type GetCrossMarginOverviewResponse = {
|
|
22
|
+
overview?: CrossMarginOverview;
|
|
23
|
+
};
|
|
@@ -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 { SortDirection } from './enums/SortDirection';
|
|
21
|
+
export type ListTransactionValidatorsRequest = {
|
|
22
|
+
/**
|
|
23
|
+
* List of transaction IDs to filter validators by. Maximum of 100 transaction IDs allowed per request.
|
|
24
|
+
*/
|
|
25
|
+
transactionIds: Array<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Cursor for pagination
|
|
28
|
+
*/
|
|
29
|
+
cursor?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Maximum number of transaction-validator associations to return per page. Default is 100, maximum is 1000.
|
|
32
|
+
*/
|
|
33
|
+
limit?: number;
|
|
34
|
+
sortDirection?: SortDirection;
|
|
35
|
+
};
|
|
@@ -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 { PaginatedResponse } from './PaginatedResponse';
|
|
21
|
+
import { TransactionValidator } from './TransactionValidator';
|
|
22
|
+
export type ListTransactionValidatorsResponse = {
|
|
23
|
+
/**
|
|
24
|
+
* List of transaction-to-validator associations. Each entry represents one transaction staking to one validator.
|
|
25
|
+
*/
|
|
26
|
+
transactionValidators: Array<TransactionValidator>;
|
|
27
|
+
pagination: PaginatedResponse;
|
|
28
|
+
};
|
|
@@ -18,11 +18,32 @@
|
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
20
|
export type RFQProductDetails = {
|
|
21
|
+
/**
|
|
22
|
+
* Whether the product is tradable via RFQ
|
|
23
|
+
*/
|
|
21
24
|
tradable?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Deprecated: Value will be an empty string
|
|
27
|
+
*/
|
|
22
28
|
minNotionalSize?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Deprecated: Value will be an empty string
|
|
31
|
+
*/
|
|
23
32
|
maxNotionalSize?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Minimum base size for RFQ
|
|
35
|
+
*/
|
|
24
36
|
minBaseSize?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Maximum base size for RFQ
|
|
39
|
+
*/
|
|
25
40
|
maxBaseSize?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Minimum quote size for RFQ
|
|
43
|
+
*/
|
|
26
44
|
minQuoteSize?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Maximum quote size for RFQ
|
|
47
|
+
*/
|
|
27
48
|
maxQuoteSize?: string;
|
|
28
49
|
};
|
|
@@ -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 { WalletClaimRewardsInputs } from './WalletClaimRewardsInputs';
|
|
21
|
+
export type StakingClaimRewardsRequest = {
|
|
22
|
+
/**
|
|
23
|
+
* The client generated idempotency key for requested execution. Any subsequent requests with the same key will return the original response
|
|
24
|
+
*/
|
|
25
|
+
idempotencyKey: string;
|
|
26
|
+
inputs?: WalletClaimRewardsInputs;
|
|
27
|
+
};
|
|
@@ -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 StakingClaimRewardsResponse = {
|
|
21
|
+
/**
|
|
22
|
+
* The wallet ID
|
|
23
|
+
*/
|
|
24
|
+
walletId: string;
|
|
25
|
+
/**
|
|
26
|
+
* ID of the newly created transaction, can be used to fetch details of the current state of execution
|
|
27
|
+
*/
|
|
28
|
+
transactionId: string;
|
|
29
|
+
/**
|
|
30
|
+
* The ID for the activity generated for this request
|
|
31
|
+
*/
|
|
32
|
+
activityId: string;
|
|
33
|
+
};
|
|
@@ -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 { ValidatorStatus } from './enums/ValidatorStatus';
|
|
21
|
+
export type TransactionValidator = {
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the transaction which staked to this validator
|
|
24
|
+
*/
|
|
25
|
+
transactionId: string;
|
|
26
|
+
/**
|
|
27
|
+
* The address (public key) of the validator
|
|
28
|
+
*/
|
|
29
|
+
validatorAddress: string;
|
|
30
|
+
validatorStatus: ValidatorStatus;
|
|
31
|
+
};
|
|
@@ -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
|
+
/**
|
|
21
|
+
* WalletClaimRewardsInputs contains the custom inputs for claim rewards operations on a wallet. Requirements and supported fields vary by asset type.
|
|
22
|
+
*/
|
|
23
|
+
export type WalletClaimRewardsInputs = {
|
|
24
|
+
/**
|
|
25
|
+
* Optional amount to claim rewards (ETH only). If omitted, the wallet will claim the maximum amount available
|
|
26
|
+
*/
|
|
27
|
+
amount?: string;
|
|
28
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { XMParty } from './enums/XMParty';
|
|
21
|
+
export type XMLoan = {
|
|
22
|
+
/**
|
|
23
|
+
* Financing loan UUID
|
|
24
|
+
*/
|
|
25
|
+
loanId?: string;
|
|
26
|
+
loanParty?: XMParty;
|
|
27
|
+
/**
|
|
28
|
+
* Loan principal currency
|
|
29
|
+
*/
|
|
30
|
+
principalCurrency?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Loan principal currency market price
|
|
33
|
+
*/
|
|
34
|
+
principalCurrencyMarketPrice?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Principal amount (nominal) as of loan initiation
|
|
37
|
+
*/
|
|
38
|
+
initialPrincipalAmount?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Current outstanding amount (nominal)
|
|
41
|
+
*/
|
|
42
|
+
outstandingPrincipalAmount?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Timestamp when the loan was created / initiated
|
|
45
|
+
*/
|
|
46
|
+
createdAt?: Date;
|
|
47
|
+
/**
|
|
48
|
+
* Timestamp when the loan was last updated
|
|
49
|
+
*/
|
|
50
|
+
updatedAt?: Date;
|
|
51
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { XMCallStatus } from './enums/XMCallStatus';
|
|
21
|
+
import { XMCallType } from './enums/XMCallType';
|
|
22
|
+
import { XMMarginLevel } from './enums/XMMarginLevel';
|
|
23
|
+
import { XMSummary } from './XMSummary';
|
|
24
|
+
export type XMMarginCall = {
|
|
25
|
+
/**
|
|
26
|
+
* Financing margin call UUID
|
|
27
|
+
*/
|
|
28
|
+
marginCallId?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Margin call currency
|
|
31
|
+
*/
|
|
32
|
+
currency?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Call amount (notional) as of the margin call creation
|
|
35
|
+
*/
|
|
36
|
+
initialNotionalAmount?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Current outstanding call amount (notional)
|
|
39
|
+
*/
|
|
40
|
+
outstandingNotionalAmount?: string;
|
|
41
|
+
marginCallType?: XMCallType;
|
|
42
|
+
marginCallStatus?: XMCallStatus;
|
|
43
|
+
calledWithMarginLevel?: XMMarginLevel;
|
|
44
|
+
calledWithMarginSummary?: XMSummary;
|
|
45
|
+
/**
|
|
46
|
+
* Timestamp when the margin call settlement is due
|
|
47
|
+
*/
|
|
48
|
+
dueAt?: Date;
|
|
49
|
+
/**
|
|
50
|
+
* Timestamp when the margin call was created
|
|
51
|
+
*/
|
|
52
|
+
createdAt?: Date;
|
|
53
|
+
/**
|
|
54
|
+
* Timestamp when the margin call was last updated
|
|
55
|
+
*/
|
|
56
|
+
updatedAt?: Date;
|
|
57
|
+
};
|