@coinbase-sample/prime-sdk-ts 0.8.2 → 0.9.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/advancedTransfers/index.js +103 -0
- package/dist/advancedTransfers/types.js +2 -0
- package/dist/constants.js +1 -1
- package/dist/futures/index.js +12 -0
- package/dist/model/AdvancedTransfer.js +21 -0
- package/dist/model/BlindMatchMetadata.js +21 -0
- package/dist/model/CancelAdvancedTransferResponse.js +21 -0
- package/dist/model/CommissionDetailTotal.js +21 -0
- package/dist/model/CreateAdvancedTransferRequest.js +21 -0
- package/dist/model/CreateAdvancedTransferResponse.js +21 -0
- package/dist/model/DateOfBirth.js +1 -1
- package/dist/model/FcmScheduledMaintenance.js +21 -0
- package/dist/model/FcmTradingSessionDetails.js +21 -0
- package/dist/model/FundMovement.js +21 -0
- package/dist/model/FutureProductDetails.js +21 -0
- package/dist/model/GetFcmEquityResponse.js +21 -0
- package/dist/model/GetTransactionTravelRuleDataResponse.js +21 -0
- package/dist/model/ListAdvancedTransferTransactionsResponse.js +21 -0
- package/dist/model/ListAdvancedTransfersResponse.js +21 -0
- package/dist/model/PerpetualProductDetails.js +21 -0
- package/dist/model/TravelRuleEntry.js +1 -1
- package/dist/model/TravelRuleWalletDetails.js +1 -1
- package/dist/model/VASP.js +1 -1
- package/dist/model/ValidatorAllocation.js +21 -0
- package/dist/model/enums/AdvancedTransferState.js +34 -0
- package/dist/model/enums/AdvancedTransferType.js +29 -0
- package/dist/model/enums/ContractExpiryType.js +31 -0
- package/dist/model/enums/ExpiringContractStatus.js +31 -0
- package/dist/model/enums/FcmMarginHealthState.js +33 -0
- package/dist/model/enums/FcmTradingSessionClosedReason.js +32 -0
- package/dist/model/enums/FcmTradingSessionState.js +34 -0
- package/dist/model/enums/ProductType.js +30 -0
- package/dist/model/enums/RewardSubtype.js +2 -1
- package/dist/model/enums/RiskManagementType.js +31 -0
- package/dist/model/enums/SecondaryPermission.js +31 -0
- package/dist/types/advancedTransfers/index.d.ts +31 -0
- package/dist/types/advancedTransfers/types.d.ts +46 -0
- package/dist/types/constants.d.ts +1 -1
- package/dist/types/futures/index.d.ts +4 -2
- package/dist/types/futures/types.d.ts +5 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/model/AdvancedTransfer.d.ts +33 -0
- package/dist/types/model/BlindMatchMetadata.d.ts +37 -0
- package/dist/types/model/CancelAdvancedTransferResponse.d.ts +28 -0
- package/dist/types/model/CommissionDetailTotal.d.ts +40 -0
- package/dist/types/model/CreateAdvancedTransferRequest.d.ts +26 -0
- package/dist/types/model/CreateAdvancedTransferResponse.d.ts +26 -0
- package/dist/types/model/DateOfBirth.d.ts +1 -1
- package/dist/types/model/FcmScheduledMaintenance.d.ts +29 -0
- package/dist/types/model/FcmTradingSessionDetails.d.ts +51 -0
- package/dist/types/model/FundMovement.d.ts +30 -0
- package/dist/types/model/FutureProductDetails.d.ts +59 -0
- package/dist/types/model/GetFcmEquityResponse.d.ts +37 -0
- package/dist/types/model/GetTransactionTravelRuleDataResponse.d.ts +31 -0
- package/dist/types/model/ListAdvancedTransferTransactionsResponse.d.ts +29 -0
- package/dist/types/model/ListAdvancedTransfersResponse.d.ts +28 -0
- package/dist/types/model/PerpetualProductDetails.d.ts +41 -0
- package/dist/types/model/TravelRuleEntry.d.ts +1 -1
- package/dist/types/model/TravelRuleWalletDetails.d.ts +1 -1
- package/dist/types/model/VASP.d.ts +1 -1
- package/dist/types/model/ValidatorAllocation.d.ts +32 -0
- package/dist/types/model/WalletUnstakeInputs.d.ts +5 -0
- package/dist/types/model/enums/AdvancedTransferState.d.ts +30 -0
- package/dist/types/model/enums/AdvancedTransferType.d.ts +25 -0
- package/dist/types/model/enums/ContractExpiryType.d.ts +27 -0
- package/dist/types/model/enums/ExpiringContractStatus.d.ts +27 -0
- package/dist/types/model/enums/FcmMarginHealthState.d.ts +29 -0
- package/dist/types/model/enums/FcmTradingSessionClosedReason.d.ts +28 -0
- package/dist/types/model/enums/FcmTradingSessionState.d.ts +30 -0
- package/dist/types/model/enums/ProductType.d.ts +26 -0
- package/dist/types/model/enums/RewardSubtype.d.ts +3 -2
- package/dist/types/model/enums/RiskManagementType.d.ts +27 -0
- package/dist/types/model/enums/SecondaryPermission.d.ts +27 -0
- package/dist/types/model/index.d.ts +2 -4
- package/package.json +1 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-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 { FcmScheduledMaintenance } from './FcmScheduledMaintenance';
|
|
21
|
+
import { FcmTradingSessionClosedReason } from './enums/FcmTradingSessionClosedReason';
|
|
22
|
+
import { FcmTradingSessionState } from './enums/FcmTradingSessionState';
|
|
23
|
+
export type FcmTradingSessionDetails = {
|
|
24
|
+
/**
|
|
25
|
+
* Whether the trading session is currently open
|
|
26
|
+
*/
|
|
27
|
+
sessionOpen?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Trading session open time
|
|
30
|
+
*/
|
|
31
|
+
openTime?: Date;
|
|
32
|
+
/**
|
|
33
|
+
* Trading session close time
|
|
34
|
+
*/
|
|
35
|
+
closeTime?: Date;
|
|
36
|
+
sessionState?: FcmTradingSessionState;
|
|
37
|
+
/**
|
|
38
|
+
* Whether after-hours order entry is disabled
|
|
39
|
+
*/
|
|
40
|
+
afterHoursOrderEntryDisabled?: boolean;
|
|
41
|
+
closedReason?: FcmTradingSessionClosedReason;
|
|
42
|
+
maintenance?: FcmScheduledMaintenance;
|
|
43
|
+
/**
|
|
44
|
+
* Settlement timestamp from previous trading day
|
|
45
|
+
*/
|
|
46
|
+
settlementTimestamp?: Date;
|
|
47
|
+
/**
|
|
48
|
+
* Settlement price from previous trading day
|
|
49
|
+
*/
|
|
50
|
+
settlementPrice?: string;
|
|
51
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-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 { TransferLocation } from './TransferLocation';
|
|
21
|
+
/**
|
|
22
|
+
* FundMovement represents a single movement of funds between two counterparties.
|
|
23
|
+
*/
|
|
24
|
+
export type FundMovement = {
|
|
25
|
+
id?: string;
|
|
26
|
+
source?: TransferLocation;
|
|
27
|
+
target?: TransferLocation;
|
|
28
|
+
currency?: string;
|
|
29
|
+
amount?: string;
|
|
30
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-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 { ContractExpiryType } from './enums/ContractExpiryType';
|
|
21
|
+
import { PerpetualProductDetails } from './PerpetualProductDetails';
|
|
22
|
+
import { RiskManagementType } from './enums/RiskManagementType';
|
|
23
|
+
export type FutureProductDetails = {
|
|
24
|
+
/**
|
|
25
|
+
* Contract code identifier
|
|
26
|
+
*/
|
|
27
|
+
contractCode?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Contract size
|
|
30
|
+
*/
|
|
31
|
+
contractSize?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Contract expiry timestamp
|
|
34
|
+
*/
|
|
35
|
+
contractExpiry?: Date;
|
|
36
|
+
/**
|
|
37
|
+
* Contract root unit (underlying asset)
|
|
38
|
+
*/
|
|
39
|
+
contractRootUnit?: string;
|
|
40
|
+
contractExpiryType?: ContractExpiryType;
|
|
41
|
+
riskManagedBy?: RiskManagementType;
|
|
42
|
+
/**
|
|
43
|
+
* The venue this product trades on
|
|
44
|
+
*/
|
|
45
|
+
venue?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Descriptive name for the product group
|
|
48
|
+
*/
|
|
49
|
+
groupDescription?: string;
|
|
50
|
+
/**
|
|
51
|
+
* IANA time zone for contract expiration
|
|
52
|
+
*/
|
|
53
|
+
contractExpiryTimezone?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Short version of the group description
|
|
56
|
+
*/
|
|
57
|
+
groupShortDescription?: string;
|
|
58
|
+
perpetualDetails?: PerpetualProductDetails;
|
|
59
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-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 GetFcmEquityResponse = {
|
|
21
|
+
/**
|
|
22
|
+
* Prior EOD account equity (ending balance + realized P&L + commissions/fees)
|
|
23
|
+
*/
|
|
24
|
+
eodAccountEquity?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Prior EOD unrealized P&L on open futures positions
|
|
27
|
+
*/
|
|
28
|
+
eodUnrealizedPnl?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Current Derivatives Account Balance minus prior EOD margin requirement. (Positive = excess; negative = deficit)
|
|
31
|
+
*/
|
|
32
|
+
currentExcessDeficit?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Excess funds in the Derivatives account available to transfer (\"sweep\") to the designated funding portfolio
|
|
35
|
+
*/
|
|
36
|
+
availableToSweep?: string;
|
|
37
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-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 { TravelRuleParty } from './TravelRuleParty';
|
|
21
|
+
export type GetTransactionTravelRuleDataResponse = {
|
|
22
|
+
fulfilled: boolean;
|
|
23
|
+
isSelf?: boolean;
|
|
24
|
+
originator?: TravelRuleParty;
|
|
25
|
+
beneficiary?: TravelRuleParty;
|
|
26
|
+
amount?: string;
|
|
27
|
+
amountCurrency?: string;
|
|
28
|
+
fiatAmount?: string;
|
|
29
|
+
fiatAmountCurrency?: string;
|
|
30
|
+
blockchainNetwork?: string;
|
|
31
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-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 { Transaction } from './Transaction';
|
|
21
|
+
/**
|
|
22
|
+
* ListAdvancedTransferTransactionsResponse contains the transactions associated with an advanced transfer.
|
|
23
|
+
*/
|
|
24
|
+
export type ListAdvancedTransferTransactionsResponse = {
|
|
25
|
+
/**
|
|
26
|
+
* The transactions associated with an Advanced Transfer
|
|
27
|
+
*/
|
|
28
|
+
transactions: Array<Transaction>;
|
|
29
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-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 { AdvancedTransfer } from './AdvancedTransfer';
|
|
21
|
+
import { PaginatedResponse } from './PaginatedResponse';
|
|
22
|
+
/**
|
|
23
|
+
* ListAdvancedTransfersResponse contains the list of advanced transfers and pagination info.
|
|
24
|
+
*/
|
|
25
|
+
export type ListAdvancedTransfersResponse = {
|
|
26
|
+
advancedTransfers: Array<AdvancedTransfer>;
|
|
27
|
+
pagination?: PaginatedResponse;
|
|
28
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-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 PerpetualProductDetails = {
|
|
21
|
+
/**
|
|
22
|
+
* Open interest
|
|
23
|
+
*/
|
|
24
|
+
openInterest?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Current funding rate
|
|
27
|
+
*/
|
|
28
|
+
fundingRate?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Next funding time
|
|
31
|
+
*/
|
|
32
|
+
fundingTime?: Date;
|
|
33
|
+
/**
|
|
34
|
+
* Maximum leverage allowed
|
|
35
|
+
*/
|
|
36
|
+
maxLeverage?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The type of underlying for the perpetual product
|
|
39
|
+
*/
|
|
40
|
+
underlyingType?: string;
|
|
41
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-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
|
+
* ValidatorAllocation specifies the validator and amount for staking or unstaking. Used for granular ETH V2 validator-level staking or unstaking operations.
|
|
22
|
+
*/
|
|
23
|
+
export type ValidatorAllocation = {
|
|
24
|
+
/**
|
|
25
|
+
* The validator address for performing staking operations
|
|
26
|
+
*/
|
|
27
|
+
validatorAddress: string;
|
|
28
|
+
/**
|
|
29
|
+
* Amount for performing staking operations with this validator
|
|
30
|
+
*/
|
|
31
|
+
amount: string;
|
|
32
|
+
};
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
|
+
import { ValidatorAllocation } from './ValidatorAllocation';
|
|
20
21
|
/**
|
|
21
22
|
* WalletUnstakeInputs contains the custom inputs for unstaking operations on a wallet. Requirements and supported fields vary by asset type.
|
|
22
23
|
*/
|
|
@@ -25,4 +26,8 @@ export type WalletUnstakeInputs = {
|
|
|
25
26
|
* Optional amount to unstake (ETH only). If omitted, the wallet will unstake the maximum amount available
|
|
26
27
|
*/
|
|
27
28
|
amount?: string;
|
|
29
|
+
/**
|
|
30
|
+
* (Alpha) Optional validator-level allocations for ETH V2 unstaking. Allows specifying which validators to unstake from and how much. This feature is in alpha. Please reach out to your Coinbase Prime account manager for more information
|
|
31
|
+
*/
|
|
32
|
+
validatorAllocations?: Array<ValidatorAllocation>;
|
|
28
33
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-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
|
+
* AdvancedTransferState represents the lifecycle state of an advanced transfer.
|
|
22
|
+
*/
|
|
23
|
+
export declare enum AdvancedTransferState {
|
|
24
|
+
AdvancedTransferStateCreated = "ADVANCED_TRANSFER_STATE_CREATED",
|
|
25
|
+
AdvancedTransferStateProcessing = "ADVANCED_TRANSFER_STATE_PROCESSING",
|
|
26
|
+
AdvancedTransferStateDone = "ADVANCED_TRANSFER_STATE_DONE",
|
|
27
|
+
AdvancedTransferStateCancelled = "ADVANCED_TRANSFER_STATE_CANCELLED",
|
|
28
|
+
AdvancedTransferStateFailed = "ADVANCED_TRANSFER_STATE_FAILED",
|
|
29
|
+
AdvancedTransferStateExpired = "ADVANCED_TRANSFER_STATE_EXPIRED"
|
|
30
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-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
|
+
* AdvancedTransferType specifies the type of advanced transfer.
|
|
22
|
+
*/
|
|
23
|
+
export declare enum AdvancedTransferType {
|
|
24
|
+
AdvancedTransferTypeBlindMatch = "ADVANCED_TRANSFER_TYPE_BLIND_MATCH"
|
|
25
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-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
|
+
* - CONTRACT_EXPIRY_TYPE_UNSPECIFIED: Unspecified contract expiry type - CONTRACT_EXPIRY_TYPE_EXPIRING: Expiring futures contract - CONTRACT_EXPIRY_TYPE_PERPETUAL: Perpetual futures contract (no expiry)
|
|
22
|
+
*/
|
|
23
|
+
export declare enum ContractExpiryType {
|
|
24
|
+
ContractExpiryTypeUnspecified = "CONTRACT_EXPIRY_TYPE_UNSPECIFIED",
|
|
25
|
+
ContractExpiryTypeExpiring = "CONTRACT_EXPIRY_TYPE_EXPIRING",
|
|
26
|
+
ContractExpiryTypePerpetual = "CONTRACT_EXPIRY_TYPE_PERPETUAL"
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-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
|
+
* - EXPIRING_CONTRACT_STATUS_UNKNOWN: Unknown/unset — returns all expiring contracts (backward compatible default) - EXPIRING_CONTRACT_STATUS_UNEXPIRED: Only unexpired contracts (contract_expiry is in the future) - EXPIRING_CONTRACT_STATUS_EXPIRED: Only expired contracts (contract_expiry is in the past) - EXPIRING_CONTRACT_STATUS_ALL: All contracts regardless of expiry status
|
|
22
|
+
*/
|
|
23
|
+
export declare enum ExpiringContractStatus {
|
|
24
|
+
ExpiringContractStatusUnexpired = "EXPIRING_CONTRACT_STATUS_UNEXPIRED",
|
|
25
|
+
ExpiringContractStatusExpired = "EXPIRING_CONTRACT_STATUS_EXPIRED",
|
|
26
|
+
ExpiringContractStatusAll = "EXPIRING_CONTRACT_STATUS_ALL"
|
|
27
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-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
|
+
* The margin health state of an FCM account. - FCM_MARGIN_HEALTH_STATE_UNSPECIFIED: Unspecified margin health state. - FCM_MARGIN_HEALTH_STATE_HEALTHY: Account margin is healthy. - FCM_MARGIN_HEALTH_STATE_RESTRICTED: Account margin is restricted. - FCM_MARGIN_HEALTH_STATE_PRE_LIQUIDATION: Account is approaching liquidation. - FCM_MARGIN_HEALTH_STATE_LIQUIDATION: Account is in liquidation.
|
|
22
|
+
*/
|
|
23
|
+
export declare enum FcmMarginHealthState {
|
|
24
|
+
FcmMarginHealthStateUnspecified = "FCM_MARGIN_HEALTH_STATE_UNSPECIFIED",
|
|
25
|
+
FcmMarginHealthStateHealthy = "FCM_MARGIN_HEALTH_STATE_HEALTHY",
|
|
26
|
+
FcmMarginHealthStateRestricted = "FCM_MARGIN_HEALTH_STATE_RESTRICTED",
|
|
27
|
+
FcmMarginHealthStatePreLiquidation = "FCM_MARGIN_HEALTH_STATE_PRE_LIQUIDATION",
|
|
28
|
+
FcmMarginHealthStateLiquidation = "FCM_MARGIN_HEALTH_STATE_LIQUIDATION"
|
|
29
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-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
|
+
* - FCM_TRADING_SESSION_CLOSED_REASON_UNDEFINED: Undefined closed reason - FCM_TRADING_SESSION_CLOSED_REASON_REGULAR_MARKET_CLOSE: Regular market close - FCM_TRADING_SESSION_CLOSED_REASON_EXCHANGE_MAINTENANCE: Exchange maintenance - FCM_TRADING_SESSION_CLOSED_REASON_VENDOR_MAINTENANCE: Vendor maintenance
|
|
22
|
+
*/
|
|
23
|
+
export declare enum FcmTradingSessionClosedReason {
|
|
24
|
+
FcmTradingSessionClosedReasonUndefined = "FCM_TRADING_SESSION_CLOSED_REASON_UNDEFINED",
|
|
25
|
+
FcmTradingSessionClosedReasonRegularMarketClose = "FCM_TRADING_SESSION_CLOSED_REASON_REGULAR_MARKET_CLOSE",
|
|
26
|
+
FcmTradingSessionClosedReasonExchangeMaintenance = "FCM_TRADING_SESSION_CLOSED_REASON_EXCHANGE_MAINTENANCE",
|
|
27
|
+
FcmTradingSessionClosedReasonVendorMaintenance = "FCM_TRADING_SESSION_CLOSED_REASON_VENDOR_MAINTENANCE"
|
|
28
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-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
|
+
* - FCM_TRADING_SESSION_STATE_UNDEFINED: Undefined session state - FCM_TRADING_SESSION_STATE_PRE_OPEN: Pre-open state, orders can be placed and cancelled - FCM_TRADING_SESSION_STATE_PRE_OPEN_NO_CANCEL: Pre-open state, orders cannot be cancelled - FCM_TRADING_SESSION_STATE_OPEN: Trading session is open - FCM_TRADING_SESSION_STATE_CLOSE: Trading session is closed - FCM_TRADING_SESSION_STATE_HALTED: Trading session is halted
|
|
22
|
+
*/
|
|
23
|
+
export declare enum FcmTradingSessionState {
|
|
24
|
+
FcmTradingSessionStateUndefined = "FCM_TRADING_SESSION_STATE_UNDEFINED",
|
|
25
|
+
FcmTradingSessionStatePreOpen = "FCM_TRADING_SESSION_STATE_PRE_OPEN",
|
|
26
|
+
FcmTradingSessionStatePreOpenNoCancel = "FCM_TRADING_SESSION_STATE_PRE_OPEN_NO_CANCEL",
|
|
27
|
+
FcmTradingSessionStateOpen = "FCM_TRADING_SESSION_STATE_OPEN",
|
|
28
|
+
FcmTradingSessionStateClose = "FCM_TRADING_SESSION_STATE_CLOSE",
|
|
29
|
+
FcmTradingSessionStateHalted = "FCM_TRADING_SESSION_STATE_HALTED"
|
|
30
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-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
|
+
* - UNKNOWN_PRODUCT_TYPE: Unknown product type - SPOT: Spot product - FUTURE: Future product
|
|
22
|
+
*/
|
|
23
|
+
export declare enum ProductType {
|
|
24
|
+
Spot = "SPOT",
|
|
25
|
+
Future = "FUTURE"
|
|
26
|
+
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
20
|
/**
|
|
21
|
-
* - REWARD_SUBTYPE_UNKNOWN: An unknown reward subtype, reward subtype may not be supported in the API response yet - MEV_REWARD: A maximal extractable value reward i.e. sol mev rewards - INFLATION_REWARD: An inflationary reward i.e. solana inflationary rewards - BLOCK_REWARD: A block reward i.e. solana block rewards - VALIDATOR_REWARD: A validator reward i.e. ethereum validator (consensus layer) rewards - TRANSACTION_REWARD: A transaction reward i.e. ethereum transaction (execution layer) rewards - STAKING_FEE_REBATE_REWARD: A staking fee rebate reward i.e. coinbase pays rebates for staking fees to eligible delegators
|
|
21
|
+
* - REWARD_SUBTYPE_UNKNOWN: An unknown reward subtype, reward subtype may not be supported in the API response yet - MEV_REWARD: A maximal extractable value reward i.e. sol mev rewards - INFLATION_REWARD: An inflationary reward i.e. solana inflationary rewards - BLOCK_REWARD: A block reward i.e. solana block rewards - VALIDATOR_REWARD: A validator reward i.e. ethereum validator (consensus layer) rewards - TRANSACTION_REWARD: A transaction reward i.e. ethereum transaction (execution layer) rewards - STAKING_FEE_REBATE_REWARD: A staking fee rebate reward i.e. coinbase pays rebates for staking fees to eligible delegators - BUIDL_DIVIDEND: A BUIDL dividend reward i.e. dividends from BUIDL fund holdings
|
|
22
22
|
*/
|
|
23
23
|
export declare enum RewardSubtype {
|
|
24
24
|
MevReward = "MEV_REWARD",
|
|
@@ -26,5 +26,6 @@ export declare enum RewardSubtype {
|
|
|
26
26
|
BlockReward = "BLOCK_REWARD",
|
|
27
27
|
ValidatorReward = "VALIDATOR_REWARD",
|
|
28
28
|
TransactionReward = "TRANSACTION_REWARD",
|
|
29
|
-
StakingFeeRebateReward = "STAKING_FEE_REBATE_REWARD"
|
|
29
|
+
StakingFeeRebateReward = "STAKING_FEE_REBATE_REWARD",
|
|
30
|
+
BuidlDividend = "BUIDL_DIVIDEND"
|
|
30
31
|
}
|