@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,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2026-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 });
|
|
22
|
+
exports.ExpiringContractStatus = void 0;
|
|
23
|
+
/**
|
|
24
|
+
* - 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
|
|
25
|
+
*/
|
|
26
|
+
var ExpiringContractStatus;
|
|
27
|
+
(function (ExpiringContractStatus) {
|
|
28
|
+
ExpiringContractStatus["ExpiringContractStatusUnexpired"] = "EXPIRING_CONTRACT_STATUS_UNEXPIRED";
|
|
29
|
+
ExpiringContractStatus["ExpiringContractStatusExpired"] = "EXPIRING_CONTRACT_STATUS_EXPIRED";
|
|
30
|
+
ExpiringContractStatus["ExpiringContractStatusAll"] = "EXPIRING_CONTRACT_STATUS_ALL";
|
|
31
|
+
})(ExpiringContractStatus || (exports.ExpiringContractStatus = ExpiringContractStatus = {}));
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2026-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 });
|
|
22
|
+
exports.FcmMarginHealthState = void 0;
|
|
23
|
+
/**
|
|
24
|
+
* 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.
|
|
25
|
+
*/
|
|
26
|
+
var FcmMarginHealthState;
|
|
27
|
+
(function (FcmMarginHealthState) {
|
|
28
|
+
FcmMarginHealthState["FcmMarginHealthStateUnspecified"] = "FCM_MARGIN_HEALTH_STATE_UNSPECIFIED";
|
|
29
|
+
FcmMarginHealthState["FcmMarginHealthStateHealthy"] = "FCM_MARGIN_HEALTH_STATE_HEALTHY";
|
|
30
|
+
FcmMarginHealthState["FcmMarginHealthStateRestricted"] = "FCM_MARGIN_HEALTH_STATE_RESTRICTED";
|
|
31
|
+
FcmMarginHealthState["FcmMarginHealthStatePreLiquidation"] = "FCM_MARGIN_HEALTH_STATE_PRE_LIQUIDATION";
|
|
32
|
+
FcmMarginHealthState["FcmMarginHealthStateLiquidation"] = "FCM_MARGIN_HEALTH_STATE_LIQUIDATION";
|
|
33
|
+
})(FcmMarginHealthState || (exports.FcmMarginHealthState = FcmMarginHealthState = {}));
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2026-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 });
|
|
22
|
+
exports.FcmTradingSessionClosedReason = void 0;
|
|
23
|
+
/**
|
|
24
|
+
* - 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
|
|
25
|
+
*/
|
|
26
|
+
var FcmTradingSessionClosedReason;
|
|
27
|
+
(function (FcmTradingSessionClosedReason) {
|
|
28
|
+
FcmTradingSessionClosedReason["FcmTradingSessionClosedReasonUndefined"] = "FCM_TRADING_SESSION_CLOSED_REASON_UNDEFINED";
|
|
29
|
+
FcmTradingSessionClosedReason["FcmTradingSessionClosedReasonRegularMarketClose"] = "FCM_TRADING_SESSION_CLOSED_REASON_REGULAR_MARKET_CLOSE";
|
|
30
|
+
FcmTradingSessionClosedReason["FcmTradingSessionClosedReasonExchangeMaintenance"] = "FCM_TRADING_SESSION_CLOSED_REASON_EXCHANGE_MAINTENANCE";
|
|
31
|
+
FcmTradingSessionClosedReason["FcmTradingSessionClosedReasonVendorMaintenance"] = "FCM_TRADING_SESSION_CLOSED_REASON_VENDOR_MAINTENANCE";
|
|
32
|
+
})(FcmTradingSessionClosedReason || (exports.FcmTradingSessionClosedReason = FcmTradingSessionClosedReason = {}));
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2026-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 });
|
|
22
|
+
exports.FcmTradingSessionState = void 0;
|
|
23
|
+
/**
|
|
24
|
+
* - 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
|
|
25
|
+
*/
|
|
26
|
+
var FcmTradingSessionState;
|
|
27
|
+
(function (FcmTradingSessionState) {
|
|
28
|
+
FcmTradingSessionState["FcmTradingSessionStateUndefined"] = "FCM_TRADING_SESSION_STATE_UNDEFINED";
|
|
29
|
+
FcmTradingSessionState["FcmTradingSessionStatePreOpen"] = "FCM_TRADING_SESSION_STATE_PRE_OPEN";
|
|
30
|
+
FcmTradingSessionState["FcmTradingSessionStatePreOpenNoCancel"] = "FCM_TRADING_SESSION_STATE_PRE_OPEN_NO_CANCEL";
|
|
31
|
+
FcmTradingSessionState["FcmTradingSessionStateOpen"] = "FCM_TRADING_SESSION_STATE_OPEN";
|
|
32
|
+
FcmTradingSessionState["FcmTradingSessionStateClose"] = "FCM_TRADING_SESSION_STATE_CLOSE";
|
|
33
|
+
FcmTradingSessionState["FcmTradingSessionStateHalted"] = "FCM_TRADING_SESSION_STATE_HALTED";
|
|
34
|
+
})(FcmTradingSessionState || (exports.FcmTradingSessionState = FcmTradingSessionState = {}));
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2026-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 });
|
|
22
|
+
exports.ProductType = void 0;
|
|
23
|
+
/**
|
|
24
|
+
* - UNKNOWN_PRODUCT_TYPE: Unknown product type - SPOT: Spot product - FUTURE: Future product
|
|
25
|
+
*/
|
|
26
|
+
var ProductType;
|
|
27
|
+
(function (ProductType) {
|
|
28
|
+
ProductType["Spot"] = "SPOT";
|
|
29
|
+
ProductType["Future"] = "FUTURE";
|
|
30
|
+
})(ProductType || (exports.ProductType = ProductType = {}));
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.RewardSubtype = void 0;
|
|
23
23
|
/**
|
|
24
|
-
* - 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
|
|
24
|
+
* - 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
|
|
25
25
|
*/
|
|
26
26
|
var RewardSubtype;
|
|
27
27
|
(function (RewardSubtype) {
|
|
@@ -31,4 +31,5 @@ var RewardSubtype;
|
|
|
31
31
|
RewardSubtype["ValidatorReward"] = "VALIDATOR_REWARD";
|
|
32
32
|
RewardSubtype["TransactionReward"] = "TRANSACTION_REWARD";
|
|
33
33
|
RewardSubtype["StakingFeeRebateReward"] = "STAKING_FEE_REBATE_REWARD";
|
|
34
|
+
RewardSubtype["BuidlDividend"] = "BUIDL_DIVIDEND";
|
|
34
35
|
})(RewardSubtype || (exports.RewardSubtype = RewardSubtype = {}));
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2026-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 });
|
|
22
|
+
exports.RiskManagementType = void 0;
|
|
23
|
+
/**
|
|
24
|
+
* - RISK_MANAGEMENT_TYPE_UNSPECIFIED: Unspecified risk management type - RISK_MANAGEMENT_TYPE_MANAGED_BY_FCM: Risk is managed by FCM (Futures Commission Merchant) - RISK_MANAGEMENT_TYPE_MANAGED_BY_VENUE: Risk is managed by the venue
|
|
25
|
+
*/
|
|
26
|
+
var RiskManagementType;
|
|
27
|
+
(function (RiskManagementType) {
|
|
28
|
+
RiskManagementType["RiskManagementTypeUnspecified"] = "RISK_MANAGEMENT_TYPE_UNSPECIFIED";
|
|
29
|
+
RiskManagementType["RiskManagementTypeManagedByFcm"] = "RISK_MANAGEMENT_TYPE_MANAGED_BY_FCM";
|
|
30
|
+
RiskManagementType["RiskManagementTypeManagedByVenue"] = "RISK_MANAGEMENT_TYPE_MANAGED_BY_VENUE";
|
|
31
|
+
})(RiskManagementType || (exports.RiskManagementType = RiskManagementType = {}));
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2026-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 });
|
|
22
|
+
exports.SecondaryPermission = void 0;
|
|
23
|
+
/**
|
|
24
|
+
* - SECONDARY_PERMISSION_UNKNOWN: nil value - VIDEO_APPROVER: A video approver - TEAM_APPROVER: A team approver - WEB3_SIGNER: A web3 signer
|
|
25
|
+
*/
|
|
26
|
+
var SecondaryPermission;
|
|
27
|
+
(function (SecondaryPermission) {
|
|
28
|
+
SecondaryPermission["VideoApprover"] = "VIDEO_APPROVER";
|
|
29
|
+
SecondaryPermission["TeamApprover"] = "TEAM_APPROVER";
|
|
30
|
+
SecondaryPermission["Web3Signer"] = "WEB3_SIGNER";
|
|
31
|
+
})(SecondaryPermission || (exports.SecondaryPermission = SecondaryPermission = {}));
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { IPrimeApiClient, CoinbaseCallOptions } from '../clients';
|
|
17
|
+
import { CancelAdvancedTransferRequest, CancelAdvancedTransferResponse, CreateAdvancedTransferRequest, CreateAdvancedTransferResponse, ListAdvancedTransferTransactionsRequest, ListAdvancedTransferTransactionsResponse, ListAdvancedTransfersRequest, ListAdvancedTransfersResponse } from './types';
|
|
18
|
+
export interface IAdvancedTransfersService {
|
|
19
|
+
listAdvancedTransfers(request: ListAdvancedTransfersRequest, options?: CoinbaseCallOptions): Promise<ListAdvancedTransfersResponse>;
|
|
20
|
+
createAdvancedTransfer(request: CreateAdvancedTransferRequest, options?: CoinbaseCallOptions): Promise<CreateAdvancedTransferResponse>;
|
|
21
|
+
cancelAdvancedTransfer(request: CancelAdvancedTransferRequest, options?: CoinbaseCallOptions): Promise<CancelAdvancedTransferResponse>;
|
|
22
|
+
listAdvancedTransferTransactions(request: ListAdvancedTransferTransactionsRequest, options?: CoinbaseCallOptions): Promise<ListAdvancedTransferTransactionsResponse>;
|
|
23
|
+
}
|
|
24
|
+
export declare class AdvancedTransfersService implements IAdvancedTransfersService {
|
|
25
|
+
private client;
|
|
26
|
+
constructor(client: IPrimeApiClient);
|
|
27
|
+
listAdvancedTransfers(request: ListAdvancedTransfersRequest, options?: CoinbaseCallOptions): Promise<ListAdvancedTransfersResponse>;
|
|
28
|
+
createAdvancedTransfer(request: CreateAdvancedTransferRequest, options?: CoinbaseCallOptions): Promise<CreateAdvancedTransferResponse>;
|
|
29
|
+
cancelAdvancedTransfer(request: CancelAdvancedTransferRequest, options?: CoinbaseCallOptions): Promise<CancelAdvancedTransferResponse>;
|
|
30
|
+
listAdvancedTransferTransactions(request: ListAdvancedTransferTransactionsRequest, options?: CoinbaseCallOptions): Promise<ListAdvancedTransferTransactionsResponse>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Brand } from '../shared/brand';
|
|
17
|
+
import { AdvancedTransferState, AdvancedTransferType } from '../model/enums';
|
|
18
|
+
import { AdvancedTransfer, ListAdvancedTransfersResponse as internalListAdvancedTransfersResponse, CreateAdvancedTransferResponse as internalCreateAdvancedTransferResponse, CancelAdvancedTransferResponse as internalCancelAdvancedTransferResponse, ListAdvancedTransferTransactionsResponse as internalListAdvancedTransferTransactionsResponse } from '../model';
|
|
19
|
+
import { Pagination } from '../shared/pagination';
|
|
20
|
+
import { PaginatedResponseMethods, BasePaginatedRequest } from '../shared/paginatedResponse';
|
|
21
|
+
export type ListAdvancedTransfersRequest = Pagination & {
|
|
22
|
+
portfolioId: string;
|
|
23
|
+
state?: AdvancedTransferState;
|
|
24
|
+
type?: AdvancedTransferType;
|
|
25
|
+
startTime?: string;
|
|
26
|
+
endTime?: string;
|
|
27
|
+
referenceId?: string;
|
|
28
|
+
};
|
|
29
|
+
type BaseListAdvancedTransfersResponse = Brand<internalListAdvancedTransfersResponse, 'ListAdvancedTransfersResponse'>;
|
|
30
|
+
export type ListAdvancedTransfersResponse = BaseListAdvancedTransfersResponse & PaginatedResponseMethods<ListAdvancedTransfersRequest & BasePaginatedRequest, BaseListAdvancedTransfersResponse, AdvancedTransfer>;
|
|
31
|
+
export type CreateAdvancedTransferRequest = {
|
|
32
|
+
portfolioId: string;
|
|
33
|
+
advancedTransfer: AdvancedTransfer;
|
|
34
|
+
};
|
|
35
|
+
export type CreateAdvancedTransferResponse = Brand<internalCreateAdvancedTransferResponse, 'CreateAdvancedTransferResponse'>;
|
|
36
|
+
export type CancelAdvancedTransferRequest = {
|
|
37
|
+
portfolioId: string;
|
|
38
|
+
advancedTransferId: string;
|
|
39
|
+
};
|
|
40
|
+
export type CancelAdvancedTransferResponse = Brand<internalCancelAdvancedTransferResponse, 'CancelAdvancedTransferResponse'>;
|
|
41
|
+
export type ListAdvancedTransferTransactionsRequest = {
|
|
42
|
+
portfolioId: string;
|
|
43
|
+
advancedTransferId: string;
|
|
44
|
+
};
|
|
45
|
+
export type ListAdvancedTransferTransactionsResponse = Brand<internalListAdvancedTransferTransactionsResponse, 'ListAdvancedTransferTransactionsResponse'>;
|
|
46
|
+
export {};
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export declare const VERSION = "0.
|
|
16
|
+
export declare const VERSION = "0.9.0";
|
|
17
17
|
export declare const API_BASE_PATH = "https://api.prime.coinbase.com/v1/";
|
|
18
18
|
export declare const USER_AGENT: string;
|
|
19
19
|
export declare const CB_ACCESS_KEY_HEADER = "X-CB-ACCESS-KEY";
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { CoinbaseCallOptions, IPrimeApiClient } from '../clients';
|
|
17
|
-
import { ListEntityFuturesSweepsRequest, ListEntityFuturesSweepsResponse, GetEntityFuturesBalanceRequest, GetEntityFuturesBalanceResponse, GetEntityFuturesPositionsRequest, GetEntityFuturesPositionsResponse, ScheduleEntityFuturesSweepRequest, ScheduleEntityFuturesSweepResponse, UpdateEntityFuturesAutoSweepRequest, UpdateEntityFuturesAutoSweepResponse, CancelEntitySweepRequest, CancelEntitySweepResponse, GetEntityFuturesRiskLimitsRequest, GetEntityFuturesRiskLimitsResponse, GetEntityFuturesMarginCallDetailsRequest, GetEntityFuturesMarginCallDetailsResponse, GetFcmSettingsRequest, GetFcmSettingsResponse, SetFcmSettingsRequest, SetFcmSettingsResponse } from './types';
|
|
17
|
+
import { ListEntityFuturesSweepsRequest, ListEntityFuturesSweepsResponse, GetEntityFuturesBalanceRequest, GetEntityFuturesBalanceResponse, GetEntityFuturesPositionsRequest, GetEntityFuturesPositionsResponse, ScheduleEntityFuturesSweepRequest, ScheduleEntityFuturesSweepResponse, UpdateEntityFuturesAutoSweepRequest, UpdateEntityFuturesAutoSweepResponse, CancelEntitySweepRequest, CancelEntitySweepResponse, GetEntityFuturesRiskLimitsRequest, GetEntityFuturesRiskLimitsResponse, GetEntityFuturesMarginCallDetailsRequest, GetEntityFuturesMarginCallDetailsResponse, GetFcmSettingsRequest, GetFcmSettingsResponse, SetFcmSettingsRequest, SetFcmSettingsResponse, GetEntityFcmEquityRequest, GetEntityFcmEquityResponse } from './types';
|
|
18
18
|
export interface IFuturesService {
|
|
19
19
|
listEntitySweeps(request: ListEntityFuturesSweepsRequest, options?: CoinbaseCallOptions): Promise<ListEntityFuturesSweepsResponse>;
|
|
20
20
|
getEntityBalance(request: GetEntityFuturesBalanceRequest, options?: CoinbaseCallOptions): Promise<GetEntityFuturesBalanceResponse>;
|
|
@@ -26,6 +26,7 @@ export interface IFuturesService {
|
|
|
26
26
|
getMarginCallDetails(request: GetEntityFuturesMarginCallDetailsRequest, options?: CoinbaseCallOptions): Promise<GetEntityFuturesMarginCallDetailsResponse>;
|
|
27
27
|
getFcmSettings(request: GetFcmSettingsRequest, options?: CoinbaseCallOptions): Promise<GetFcmSettingsResponse>;
|
|
28
28
|
setFcmSettings(request: SetFcmSettingsRequest, options?: CoinbaseCallOptions): Promise<SetFcmSettingsResponse>;
|
|
29
|
+
getEntityEquity(request: GetEntityFcmEquityRequest, options?: CoinbaseCallOptions): Promise<GetEntityFcmEquityResponse>;
|
|
29
30
|
}
|
|
30
31
|
export declare class FuturesService implements IFuturesService {
|
|
31
32
|
private client;
|
|
@@ -40,5 +41,6 @@ export declare class FuturesService implements IFuturesService {
|
|
|
40
41
|
getMarginCallDetails(request: GetEntityFuturesMarginCallDetailsRequest, options?: CoinbaseCallOptions): Promise<GetEntityFuturesMarginCallDetailsResponse>;
|
|
41
42
|
getFcmSettings(request: GetFcmSettingsRequest, options?: CoinbaseCallOptions): Promise<GetFcmSettingsResponse>;
|
|
42
43
|
setFcmSettings(request: SetFcmSettingsRequest, options?: CoinbaseCallOptions): Promise<SetFcmSettingsResponse>;
|
|
44
|
+
getEntityEquity(request: GetEntityFcmEquityRequest, options?: CoinbaseCallOptions): Promise<GetEntityFcmEquityResponse>;
|
|
43
45
|
}
|
|
44
|
-
export type { ListEntityFuturesSweepsRequest, ListEntityFuturesSweepsResponse, GetEntityFuturesBalanceRequest, GetEntityFuturesBalanceResponse, GetEntityFuturesPositionsRequest, GetEntityFuturesPositionsResponse, ScheduleEntityFuturesSweepRequest, ScheduleEntityFuturesSweepResponse, UpdateEntityFuturesAutoSweepRequest, UpdateEntityFuturesAutoSweepResponse, CancelEntitySweepRequest, CancelEntitySweepResponse, GetEntityFuturesRiskLimitsRequest, GetEntityFuturesRiskLimitsResponse, GetEntityFuturesMarginCallDetailsRequest, GetEntityFuturesMarginCallDetailsResponse, GetFcmSettingsRequest, GetFcmSettingsResponse, SetFcmSettingsRequest, SetFcmSettingsResponse, } from './types';
|
|
46
|
+
export type { ListEntityFuturesSweepsRequest, ListEntityFuturesSweepsResponse, GetEntityFuturesBalanceRequest, GetEntityFuturesBalanceResponse, GetEntityFuturesPositionsRequest, GetEntityFuturesPositionsResponse, ScheduleEntityFuturesSweepRequest, ScheduleEntityFuturesSweepResponse, UpdateEntityFuturesAutoSweepRequest, UpdateEntityFuturesAutoSweepResponse, CancelEntitySweepRequest, CancelEntitySweepResponse, GetEntityFuturesRiskLimitsRequest, GetEntityFuturesRiskLimitsResponse, GetEntityFuturesMarginCallDetailsRequest, GetEntityFuturesMarginCallDetailsResponse, GetFcmSettingsRequest, GetFcmSettingsResponse, SetFcmSettingsRequest, SetFcmSettingsResponse, GetEntityFcmEquityRequest, GetEntityFcmEquityResponse, } from './types';
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { Brand } from '../shared/brand';
|
|
17
|
-
import { GetFcmBalanceResponse, GetFuturesSweepsResponse, GetPositionsResponse, SetAutoSweepResponse, ScheduleFuturesSweepRequest, ScheduleFuturesSweepResponse, CancelFuturesSweepResponse, GetFcmRiskLimitsResponse, GetFcmMarginCallDetailsResponse, GetFcmSettingsResponse as internalGetFcmSettingsResponse, SetFcmSettingsResponse as internalSetFcmSettingsResponse } from '../model/';
|
|
17
|
+
import { GetFcmBalanceResponse, GetFuturesSweepsResponse, GetPositionsResponse, SetAutoSweepResponse, ScheduleFuturesSweepRequest, ScheduleFuturesSweepResponse, CancelFuturesSweepResponse, GetFcmRiskLimitsResponse, GetFcmMarginCallDetailsResponse, GetFcmSettingsResponse as internalGetFcmSettingsResponse, SetFcmSettingsResponse as internalSetFcmSettingsResponse, GetFcmEquityResponse as internalGetFcmEquityResponse } from '../model/';
|
|
18
18
|
export type ListEntityFuturesSweepsRequest = {
|
|
19
19
|
entityId: string;
|
|
20
20
|
};
|
|
@@ -58,3 +58,7 @@ export type SetFcmSettingsRequest = {
|
|
|
58
58
|
targetDerivativesExcess: string;
|
|
59
59
|
};
|
|
60
60
|
export type SetFcmSettingsResponse = Brand<internalSetFcmSettingsResponse, 'SetFcmSettingsResponse'>;
|
|
61
|
+
export type GetEntityFcmEquityRequest = {
|
|
62
|
+
entityId: string;
|
|
63
|
+
};
|
|
64
|
+
export type GetEntityFcmEquityResponse = Brand<internalGetFcmEquityResponse, 'GetEntityFcmEquityResponse'>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export type { ListAssetsRequest, ListAssetsResponse } from './assets/types';
|
|
|
47
47
|
export type { GetWalletBalanceRequest, GetWalletBalanceResponse, ListOnchainWalletBalancesRequest, ListOnchainWalletBalancesResponse, ListPortfolioBalancesRequest, ListPortfolioBalancesResponse, ListEntityBalancesRequest, ListEntityBalancesResponse, } from './balances/types';
|
|
48
48
|
export type { GetPortfolioCommissionRequest, GetPortfolioCommissionResponse, } from './commission/types';
|
|
49
49
|
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';
|
|
50
|
-
export type { CancelEntitySweepRequest, CancelEntitySweepResponse, GetEntityFuturesBalanceRequest, GetEntityFuturesBalanceResponse, GetEntityFuturesPositionsRequest, GetEntityFuturesPositionsResponse, ListEntityFuturesSweepsRequest, ListEntityFuturesSweepsResponse, ScheduleEntityFuturesSweepRequest, ScheduleEntityFuturesSweepResponse, UpdateEntityFuturesAutoSweepRequest, UpdateEntityFuturesAutoSweepResponse, } from './futures/types';
|
|
50
|
+
export type { CancelEntitySweepRequest, CancelEntitySweepResponse, GetEntityFuturesBalanceRequest, GetEntityFuturesBalanceResponse, GetEntityFuturesPositionsRequest, GetEntityFuturesPositionsResponse, ListEntityFuturesSweepsRequest, ListEntityFuturesSweepsResponse, ScheduleEntityFuturesSweepRequest, ScheduleEntityFuturesSweepResponse, UpdateEntityFuturesAutoSweepRequest, UpdateEntityFuturesAutoSweepResponse, GetEntityFcmEquityRequest, GetEntityFcmEquityResponse, } from './futures/types';
|
|
51
51
|
export type { ListInvoicesRequest, ListInvoicesResponse, } from './invoices/types';
|
|
52
52
|
export type { CreateOnchainAddressBookEntryRequest, CreateOnchainAddressBookEntryResponse, DeleteOnchainAddressBookEntryRequest, DeleteOnchainAddressBookEntryResponse, ListOnchainAddressBookRequest, ListOnchainAddressBookResponse, UpdateOnchainAddressBookEntryRequest, UpdateOnchainAddressBookEntryResponse, } from './onchainAddressBook/types';
|
|
53
53
|
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';
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { AdvancedTransferState } from './enums/AdvancedTransferState';
|
|
21
|
+
import { AdvancedTransferType } from './enums/AdvancedTransferType';
|
|
22
|
+
import { BlindMatchMetadata } from './BlindMatchMetadata';
|
|
23
|
+
import { FundMovement } from './FundMovement';
|
|
24
|
+
/**
|
|
25
|
+
* AdvancedTransfer represents a complex transfer operation such as a blind match settlement.
|
|
26
|
+
*/
|
|
27
|
+
export type AdvancedTransfer = {
|
|
28
|
+
id?: string;
|
|
29
|
+
type?: AdvancedTransferType;
|
|
30
|
+
state?: AdvancedTransferState;
|
|
31
|
+
fundMovements?: Array<FundMovement>;
|
|
32
|
+
blindMatchMetadata?: BlindMatchMetadata;
|
|
33
|
+
};
|
|
@@ -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
|
+
/**
|
|
21
|
+
* BlindMatchMetadata contains metadata specific to blind match advanced transfers.
|
|
22
|
+
*/
|
|
23
|
+
export type BlindMatchMetadata = {
|
|
24
|
+
referenceId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The intended time of Transfer settlement in YYYYMMDD format
|
|
27
|
+
*/
|
|
28
|
+
settlementDate?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Optional date of the original Trade in YYYYMMMDD format
|
|
31
|
+
*/
|
|
32
|
+
tradeDate?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Optional time of transfer settlement in HHMM format in UTC. If not provided, it defaults to 09:30 Eastern Time.
|
|
35
|
+
*/
|
|
36
|
+
settlementTime?: string;
|
|
37
|
+
};
|
|
@@ -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
|
+
* CancelAdvancedTransferResponse is the response after canceling an advanced transfer.
|
|
22
|
+
*/
|
|
23
|
+
export type CancelAdvancedTransferResponse = {
|
|
24
|
+
/**
|
|
25
|
+
* The ID of the canceled Advanced Transfer
|
|
26
|
+
*/
|
|
27
|
+
advancedTransferId?: string;
|
|
28
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
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 CommissionDetailTotal = {
|
|
21
|
+
totalCommission?: string;
|
|
22
|
+
/**
|
|
23
|
+
* CB fee
|
|
24
|
+
*/
|
|
25
|
+
clientCommission?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Exchange fees
|
|
28
|
+
*/
|
|
29
|
+
venueCommission?: string;
|
|
30
|
+
cesCommission?: string;
|
|
31
|
+
financingCommission?: string;
|
|
32
|
+
/**
|
|
33
|
+
* NFA fees
|
|
34
|
+
*/
|
|
35
|
+
regulatoryCommission?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Clearing fees
|
|
38
|
+
*/
|
|
39
|
+
clearingCommission?: string;
|
|
40
|
+
};
|
|
@@ -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
|
+
import { AdvancedTransfer } from './AdvancedTransfer';
|
|
21
|
+
/**
|
|
22
|
+
* CreateAdvancedTransferRequest is the request to create an advanced transfer.
|
|
23
|
+
*/
|
|
24
|
+
export type CreateAdvancedTransferRequest = {
|
|
25
|
+
advancedTransfer: AdvancedTransfer;
|
|
26
|
+
};
|
|
@@ -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
|
+
import { AdvancedTransfer } from './AdvancedTransfer';
|
|
21
|
+
/**
|
|
22
|
+
* CreateAdvancedTransferResponse is the response after creating an advanced transfer.
|
|
23
|
+
*/
|
|
24
|
+
export type CreateAdvancedTransferResponse = {
|
|
25
|
+
advancedTransfer: AdvancedTransfer;
|
|
26
|
+
};
|
|
@@ -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
|
+
export type FcmScheduledMaintenance = {
|
|
21
|
+
/**
|
|
22
|
+
* Maintenance window start time
|
|
23
|
+
*/
|
|
24
|
+
startTime?: Date;
|
|
25
|
+
/**
|
|
26
|
+
* Maintenance window end time
|
|
27
|
+
*/
|
|
28
|
+
endTime?: Date;
|
|
29
|
+
};
|