@coinbase-sample/prime-sdk-ts 0.5.0 → 0.6.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 +18 -0
- package/dist/index.js +3 -1
- package/dist/model/Counterparty.js +21 -0
- package/dist/model/CounterpartyDestination.js +21 -0
- package/dist/model/CreateNetAllocationRequest.js +21 -0
- package/dist/model/FCMMarginCall.js +21 -0
- package/dist/model/GetFcmMarginCallDetailsResponse.js +21 -0
- package/dist/model/GetFcmRiskLimitsResponse.js +21 -0
- package/dist/model/GetOrderEditHistoryResponse.js +21 -0
- package/dist/model/GetPortfolioCounterpartyIDResponse.js +21 -0
- package/dist/model/LimitOrderEdit.js +21 -0
- package/dist/model/OrderEdit.js +21 -0
- package/dist/model/PortfolioStakingInitiateRequest.js +21 -0
- package/dist/model/PortfolioStakingInitiateResponse.js +21 -0
- package/dist/model/PortfolioStakingMetadata.js +21 -0
- package/dist/model/PortfolioStakingUnstakeRequest.js +21 -0
- package/dist/model/PortfolioStakingUnstakeResponse.js +21 -0
- package/dist/model/StakingUnstakeRequest.js +21 -0
- package/dist/model/WalletStakeInputs.js +21 -0
- package/dist/model/WalletUnstakeInputs.js +21 -0
- package/dist/model/enums/AllocationSizeType.js +0 -1
- package/dist/model/enums/AssetChangeType.js +0 -1
- package/dist/model/enums/CustodyActivityType.js +0 -1
- package/dist/model/enums/DestinationType.js +4 -4
- package/dist/model/enums/FcmMarginCallState.js +30 -0
- package/dist/model/enums/FcmMarginCallType.js +28 -0
- package/dist/model/enums/OrderSide.js +0 -1
- package/dist/model/enums/OrderStatus.js +0 -1
- package/dist/model/enums/OrderType.js +0 -1
- package/dist/model/enums/PaymentMethodType.js +3 -4
- package/dist/model/enums/PortfolioBalanceType.js +0 -1
- package/dist/model/enums/ProductPermissions.js +0 -1
- package/dist/model/enums/SigningStatus.js +0 -1
- package/dist/model/enums/TimeInForceType.js +0 -1
- package/dist/model/enums/TransactionStatus.js +0 -1
- package/dist/model/enums/TransactionType.js +0 -1
- package/dist/model/enums/TransferLocationType.js +0 -1
- package/dist/model/enums/UserRole.js +0 -1
- package/dist/model/enums/VisibilityStatus.js +0 -1
- package/dist/model/enums/WalletDepositInstructionType.js +0 -1
- package/dist/model/enums/WalletType.js +0 -1
- package/dist/model/enums/index.js +5 -1
- package/dist/orders/index.js +11 -0
- package/dist/portfolios/index.js +9 -0
- package/dist/staking/index.js +24 -0
- package/dist/transactions/index.js +1 -1
- package/dist/types/constants.d.ts +1 -1
- package/dist/types/financing/index.d.ts +5 -1
- package/dist/types/financing/types.d.ts +9 -1
- package/dist/types/index.d.ts +5 -4
- package/dist/types/model/Counterparty.d.ts +25 -0
- package/dist/types/model/CounterpartyDestination.d.ts +22 -0
- package/dist/types/model/CreateAllocationRequest.d.ts +0 -4
- package/dist/types/model/CreateNetAllocationRequest.d.ts +48 -0
- package/dist/types/model/CreateOrderRequest.d.ts +6 -2
- package/dist/types/model/CreateWalletWithdrawalRequest.d.ts +2 -0
- package/dist/types/model/CreateWalletWithdrawalResponse.d.ts +2 -0
- package/dist/types/model/FCMMarginCall.d.ts +41 -0
- package/dist/types/model/Fill.d.ts +8 -0
- package/dist/types/model/GetFcmBalanceResponse.d.ts +4 -0
- package/dist/types/model/GetFcmMarginCallDetailsResponse.d.ts +26 -0
- package/dist/types/model/GetFcmRiskLimitsResponse.d.ts +45 -0
- package/dist/types/model/GetOrderEditHistoryResponse.d.ts +35 -0
- package/dist/types/model/GetPortfolioCounterpartyIDResponse.d.ts +23 -0
- package/dist/types/model/LimitOrderEdit.d.ts +29 -0
- package/dist/types/model/Order.d.ts +30 -0
- package/dist/types/model/OrderEdit.d.ts +30 -0
- package/dist/types/model/OrderPreviewRequest.d.ts +11 -2
- package/dist/types/model/PortfolioStakingInitiateRequest.d.ts +35 -0
- package/dist/types/model/PortfolioStakingInitiateResponse.d.ts +29 -0
- package/dist/types/model/PortfolioStakingMetadata.d.ts +25 -0
- package/dist/types/model/PortfolioStakingUnstakeRequest.d.ts +35 -0
- package/dist/types/model/PortfolioStakingUnstakeResponse.d.ts +29 -0
- package/dist/types/model/PostOrderPreviewResponse.d.ts +20 -0
- package/dist/types/model/RFQProductDetails.d.ts +4 -0
- package/dist/types/model/StakingInitiateRequest.d.ts +5 -2
- package/dist/types/model/StakingInitiateResponse.d.ts +3 -0
- package/dist/types/model/StakingUnstakeRequest.d.ts +30 -0
- package/dist/types/model/StakingUnstakeResponse.d.ts +3 -0
- package/dist/types/model/WalletStakeInputs.d.ts +32 -0
- package/dist/types/model/WalletUnstakeInputs.d.ts +28 -0
- package/dist/types/model/enums/AllocationSizeType.d.ts +0 -1
- package/dist/types/model/enums/AssetChangeType.d.ts +0 -1
- package/dist/types/model/enums/CustodyActivityType.d.ts +0 -1
- package/dist/types/model/enums/DestinationType.d.ts +4 -4
- package/dist/types/model/enums/FcmMarginCallState.d.ts +26 -0
- package/dist/types/model/enums/FcmMarginCallType.d.ts +24 -0
- package/dist/types/model/enums/OrderSide.d.ts +0 -1
- package/dist/types/model/enums/OrderStatus.d.ts +0 -1
- package/dist/types/model/enums/OrderType.d.ts +0 -1
- package/dist/types/model/enums/PaymentMethodType.d.ts +3 -4
- package/dist/types/model/enums/PortfolioBalanceType.d.ts +0 -1
- package/dist/types/model/enums/ProductPermissions.d.ts +0 -1
- package/dist/types/model/enums/SigningStatus.d.ts +0 -1
- package/dist/types/model/enums/TimeInForceType.d.ts +0 -1
- package/dist/types/model/enums/TransactionStatus.d.ts +0 -1
- package/dist/types/model/enums/TransactionType.d.ts +0 -1
- package/dist/types/model/enums/TransferLocationType.d.ts +0 -1
- package/dist/types/model/enums/UserRole.d.ts +0 -1
- package/dist/types/model/enums/VisibilityStatus.d.ts +0 -1
- package/dist/types/model/enums/WalletDepositInstructionType.d.ts +0 -1
- package/dist/types/model/enums/WalletType.d.ts +0 -1
- package/dist/types/model/enums/index.d.ts +2 -0
- package/dist/types/model/index.d.ts +18 -0
- package/dist/types/orders/index.d.ts +3 -1
- package/dist/types/orders/types.d.ts +6 -1
- package/dist/types/portfolios/index.d.ts +3 -1
- package/dist/types/portfolios/types.d.ts +5 -1
- package/dist/types/staking/index.d.ts +5 -1
- package/dist/types/staking/types.d.ts +9 -1
- package/package.json +11 -10
|
@@ -25,7 +25,6 @@ exports.TransactionStatus = void 0;
|
|
|
25
25
|
*/
|
|
26
26
|
var TransactionStatus;
|
|
27
27
|
(function (TransactionStatus) {
|
|
28
|
-
TransactionStatus["UnknownTransactionStatus"] = "UNKNOWN_TRANSACTION_STATUS";
|
|
29
28
|
TransactionStatus["TransactionCreated"] = "TRANSACTION_CREATED";
|
|
30
29
|
TransactionStatus["TransactionRequested"] = "TRANSACTION_REQUESTED";
|
|
31
30
|
TransactionStatus["TransactionApproved"] = "TRANSACTION_APPROVED";
|
|
@@ -25,7 +25,6 @@ exports.TransactionType = void 0;
|
|
|
25
25
|
*/
|
|
26
26
|
var TransactionType;
|
|
27
27
|
(function (TransactionType) {
|
|
28
|
-
TransactionType["TransactionTypeUnknown"] = "TRANSACTION_TYPE_UNKNOWN";
|
|
29
28
|
TransactionType["Deposit"] = "DEPOSIT";
|
|
30
29
|
TransactionType["Withdrawal"] = "WITHDRAWAL";
|
|
31
30
|
TransactionType["InternalDeposit"] = "INTERNAL_DEPOSIT";
|
|
@@ -22,7 +22,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
22
22
|
exports.TransferLocationType = void 0;
|
|
23
23
|
var TransferLocationType;
|
|
24
24
|
(function (TransferLocationType) {
|
|
25
|
-
TransferLocationType["TransferLocationTypeUnknown"] = "TRANSFER_LOCATION_TYPE_UNKNOWN";
|
|
26
25
|
TransferLocationType["PaymentMethod"] = "PAYMENT_METHOD";
|
|
27
26
|
TransferLocationType["Wallet"] = "WALLET";
|
|
28
27
|
TransferLocationType["Address"] = "ADDRESS";
|
|
@@ -22,7 +22,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
22
22
|
exports.VisibilityStatus = void 0;
|
|
23
23
|
var VisibilityStatus;
|
|
24
24
|
(function (VisibilityStatus) {
|
|
25
|
-
VisibilityStatus["UnknownVisibilityStatus"] = "UNKNOWN_VISIBILITY_STATUS";
|
|
26
25
|
VisibilityStatus["Visible"] = "VISIBLE";
|
|
27
26
|
VisibilityStatus["Hidden"] = "HIDDEN";
|
|
28
27
|
VisibilityStatus["Spam"] = "SPAM";
|
|
@@ -25,7 +25,6 @@ exports.WalletDepositInstructionType = void 0;
|
|
|
25
25
|
*/
|
|
26
26
|
var WalletDepositInstructionType;
|
|
27
27
|
(function (WalletDepositInstructionType) {
|
|
28
|
-
WalletDepositInstructionType["UnknownWalletDepositType"] = "UNKNOWN_WALLET_DEPOSIT_TYPE";
|
|
29
28
|
WalletDepositInstructionType["Crypto"] = "CRYPTO";
|
|
30
29
|
WalletDepositInstructionType["Wire"] = "WIRE";
|
|
31
30
|
WalletDepositInstructionType["Sen"] = "SEN";
|
|
@@ -25,7 +25,6 @@ exports.WalletType = void 0;
|
|
|
25
25
|
*/
|
|
26
26
|
var WalletType;
|
|
27
27
|
(function (WalletType) {
|
|
28
|
-
WalletType["UnknownWalletType"] = "UNKNOWN_WALLET_TYPE";
|
|
29
28
|
WalletType["Vault"] = "VAULT";
|
|
30
29
|
WalletType["Trading"] = "TRADING";
|
|
31
30
|
WalletType["WalletTypeOther"] = "WALLET_TYPE_OTHER";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WalletVisibility = exports.WalletType = exports.WalletDepositInstructionType = exports.VisibilityStatus = exports.UserRole = exports.TransferLocationType = exports.TransactionType = exports.TransactionStatus = exports.TimeInForceType = exports.SortDirection = exports.SigningStatus = exports.RateType = exports.ProductPermissions = exports.PositionReferenceType = exports.PortfolioBalanceType = exports.PaymentMethodType = exports.OrderType = exports.OrderStatus = exports.OrderSide = exports.NetworkType = exports.NetworkFamily = exports.MarginAddOnType = exports.LoanType = exports.InvoiceType = exports.InvoiceState = exports.HierarchyType = exports.FcmPositionSide = exports.FcmFuturesSweepStatus = exports.DestinationType = exports.Benchmark = exports.AssetChangeType = exports.AllocationStatus = exports.AllocationSizeType = exports.PrimeActivityType = exports.ActivityStatus = exports.ActivitySecondaryType = exports.ActivityLevel = exports.ActivityCategory = exports.Action = exports.AddressBookType = exports.CustodyActivityType = void 0;
|
|
3
|
+
exports.WalletVisibility = exports.WalletType = exports.WalletDepositInstructionType = exports.VisibilityStatus = exports.UserRole = exports.TransferLocationType = exports.TransactionType = exports.TransactionStatus = exports.TimeInForceType = exports.SortDirection = exports.SigningStatus = exports.RateType = exports.ProductPermissions = exports.PositionReferenceType = exports.PortfolioBalanceType = exports.PaymentMethodType = exports.OrderType = exports.OrderStatus = exports.OrderSide = exports.NetworkType = exports.NetworkFamily = exports.MarginAddOnType = exports.LoanType = exports.InvoiceType = exports.InvoiceState = exports.HierarchyType = exports.FcmPositionSide = exports.FcmMarginCallType = exports.FcmMarginCallState = exports.FcmFuturesSweepStatus = exports.DestinationType = exports.Benchmark = exports.AssetChangeType = exports.AllocationStatus = exports.AllocationSizeType = exports.PrimeActivityType = exports.ActivityStatus = exports.ActivitySecondaryType = exports.ActivityLevel = exports.ActivityCategory = exports.Action = exports.AddressBookType = exports.CustodyActivityType = void 0;
|
|
4
4
|
var CustodyActivityType_1 = require("./CustodyActivityType");
|
|
5
5
|
Object.defineProperty(exports, "CustodyActivityType", { enumerable: true, get: function () { return CustodyActivityType_1.ActivityType; } });
|
|
6
6
|
var AddressBookType_1 = require("./AddressBookType");
|
|
@@ -29,6 +29,10 @@ var DestinationType_1 = require("./DestinationType");
|
|
|
29
29
|
Object.defineProperty(exports, "DestinationType", { enumerable: true, get: function () { return DestinationType_1.DestinationType; } });
|
|
30
30
|
var FcmFuturesSweepStatus_1 = require("./FcmFuturesSweepStatus");
|
|
31
31
|
Object.defineProperty(exports, "FcmFuturesSweepStatus", { enumerable: true, get: function () { return FcmFuturesSweepStatus_1.FcmFuturesSweepStatus; } });
|
|
32
|
+
var FcmMarginCallState_1 = require("./FcmMarginCallState");
|
|
33
|
+
Object.defineProperty(exports, "FcmMarginCallState", { enumerable: true, get: function () { return FcmMarginCallState_1.FcmMarginCallState; } });
|
|
34
|
+
var FcmMarginCallType_1 = require("./FcmMarginCallType");
|
|
35
|
+
Object.defineProperty(exports, "FcmMarginCallType", { enumerable: true, get: function () { return FcmMarginCallType_1.FcmMarginCallType; } });
|
|
32
36
|
var FcmPositionSide_1 = require("./FcmPositionSide");
|
|
33
37
|
Object.defineProperty(exports, "FcmPositionSide", { enumerable: true, get: function () { return FcmPositionSide_1.FcmPositionSide; } });
|
|
34
38
|
var HierarchyType_1 = require("./HierarchyType");
|
package/dist/orders/index.js
CHANGED
|
@@ -40,6 +40,17 @@ class OrdersService {
|
|
|
40
40
|
return response.data;
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
+
getOrderEditHistory(request, options) {
|
|
44
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
+
const response = yield this.client.request({
|
|
46
|
+
url: `portfolios/${request.portfolioId}/orders/${request.orderId}/edit_history`,
|
|
47
|
+
callOptions: options,
|
|
48
|
+
});
|
|
49
|
+
// drop deprecated field
|
|
50
|
+
delete response.data.orderEditHistory;
|
|
51
|
+
return response.data;
|
|
52
|
+
});
|
|
53
|
+
}
|
|
43
54
|
listPortfolioFills(request, options) {
|
|
44
55
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
56
|
let queryParams = (0, paginatedResponse_1.getQueryParams)(this.client, request);
|
package/dist/portfolios/index.js
CHANGED
|
@@ -32,6 +32,15 @@ class PortfoliosService {
|
|
|
32
32
|
return response.data;
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
+
getCounterpartyId(request, options) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
const response = yield this.client.request({
|
|
38
|
+
url: `portfolios/${request.portfolioId}/counterparty`,
|
|
39
|
+
callOptions: options,
|
|
40
|
+
});
|
|
41
|
+
return response.data;
|
|
42
|
+
});
|
|
43
|
+
}
|
|
35
44
|
listPortfolios(request, options) {
|
|
36
45
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
46
|
const response = yield this.client.request({
|
package/dist/staking/index.js
CHANGED
|
@@ -54,5 +54,29 @@ class StakingService {
|
|
|
54
54
|
return response.data;
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
+
createPortfolioStake(request, options) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
const bodyParams = Object.assign(Object.assign({}, request), { portfolioId: undefined });
|
|
60
|
+
const response = yield this.client.request({
|
|
61
|
+
url: `portfolios/${request.portfolioId}/staking/initiate`,
|
|
62
|
+
method: core_ts_1.Method.POST,
|
|
63
|
+
bodyParams,
|
|
64
|
+
callOptions: options,
|
|
65
|
+
});
|
|
66
|
+
return response.data;
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
createPortfolioUnstake(request, options) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
const bodyParams = Object.assign(Object.assign({}, request), { portfolioId: undefined });
|
|
72
|
+
const response = yield this.client.request({
|
|
73
|
+
url: `portfolios/${request.portfolioId}/staking/unstake`,
|
|
74
|
+
method: core_ts_1.Method.POST,
|
|
75
|
+
bodyParams,
|
|
76
|
+
callOptions: options,
|
|
77
|
+
});
|
|
78
|
+
return response.data;
|
|
79
|
+
});
|
|
80
|
+
}
|
|
57
81
|
}
|
|
58
82
|
exports.StakingService = StakingService;
|
|
@@ -80,7 +80,7 @@ class TransactionsService {
|
|
|
80
80
|
return __awaiter(this, void 0, void 0, function* () {
|
|
81
81
|
const bodyParams = Object.assign(Object.assign({}, request), { portfolioId: undefined, walletId: undefined });
|
|
82
82
|
const response = yield this.client.request({
|
|
83
|
-
url: `portfolios/${request.portfolioId}/wallets/${request.walletId}/
|
|
83
|
+
url: `portfolios/${request.portfolioId}/wallets/${request.walletId}/conversion`,
|
|
84
84
|
bodyParams,
|
|
85
85
|
method: core_ts_1.Method.POST,
|
|
86
86
|
callOptions: options,
|
|
@@ -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.1
|
|
16
|
+
export declare const VERSION = "0.6.1";
|
|
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";
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
|
|
17
17
|
import { CoinbasePrimeClient } from '../client';
|
|
18
|
-
import { ListExistingLocatesRequest, ListExistingLocatesResponse, ListInterestAccrualsRequest, ListInterestAccrualsResponse, ListPortfolioInterestAccrualsRequest, ListPortfolioInterestAccrualsResponse, ListMarginCallSummariesRequest, ListMarginCallSummariesResponse, ListMarginConversionsRequest, ListMarginConversionsResponse, GetEntityLocateAvailabilitiesRequest, GetEntityLocateAvailabilitiesResponse, GetMarginInformationRequest, GetMarginInformationResponse, GetPortfolioBuyingPowerRequest, GetPortfolioBuyingPowerResponse, GetPortfolioCreditInformationRequest, GetPortfolioCreditInformationResponse, GetPortfolioWithdrawalPowerRequest, GetPortfolioWithdrawalPowerResponse, GetTieredPricingFeesRequest, GetTieredPricingFeesResponse, CreateNewLocatesRequest, CreateNewLocatesResponse } from './types';
|
|
18
|
+
import { ListExistingLocatesRequest, ListExistingLocatesResponse, ListInterestAccrualsRequest, ListInterestAccrualsResponse, ListPortfolioInterestAccrualsRequest, ListPortfolioInterestAccrualsResponse, ListMarginCallSummariesRequest, ListMarginCallSummariesResponse, ListMarginConversionsRequest, ListMarginConversionsResponse, GetEntityLocateAvailabilitiesRequest, GetEntityLocateAvailabilitiesResponse, GetMarginInformationRequest, GetMarginInformationResponse, GetPortfolioBuyingPowerRequest, GetPortfolioBuyingPowerResponse, GetPortfolioCreditInformationRequest, GetPortfolioCreditInformationResponse, GetPortfolioWithdrawalPowerRequest, GetPortfolioWithdrawalPowerResponse, GetTieredPricingFeesRequest, GetTieredPricingFeesResponse, GetFcmMarginCallDetailsRequest, GetFcmMarginCallDetailsResponse, GetFcmRiskLimitsRequest, GetFcmRiskLimitsResponse, CreateNewLocatesRequest, CreateNewLocatesResponse } from './types';
|
|
19
19
|
export interface IFinancingService {
|
|
20
20
|
listExistingLocates(request: ListExistingLocatesRequest, options?: CoinbaseCallOptions): Promise<ListExistingLocatesResponse>;
|
|
21
21
|
listInterestAccruals(request: ListInterestAccrualsRequest, options?: CoinbaseCallOptions): Promise<ListInterestAccrualsResponse>;
|
|
@@ -28,6 +28,8 @@ export interface IFinancingService {
|
|
|
28
28
|
getPortfolioCreditInformation(request: GetPortfolioCreditInformationRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioCreditInformationResponse>;
|
|
29
29
|
getPortfolioWithdrawalPower(request: GetPortfolioWithdrawalPowerRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioWithdrawalPowerResponse>;
|
|
30
30
|
getTieredPricingFees(request: GetTieredPricingFeesRequest, options?: CoinbaseCallOptions): Promise<GetTieredPricingFeesResponse>;
|
|
31
|
+
getFcmMarginCallDetails(request: GetFcmMarginCallDetailsRequest, options?: CoinbaseCallOptions): Promise<GetFcmMarginCallDetailsResponse>;
|
|
32
|
+
getFcmRiskLimits(request: GetFcmRiskLimitsRequest, options?: CoinbaseCallOptions): Promise<GetFcmRiskLimitsResponse>;
|
|
31
33
|
createNewLocates(request: CreateNewLocatesRequest, options?: CoinbaseCallOptions): Promise<CreateNewLocatesResponse>;
|
|
32
34
|
}
|
|
33
35
|
export declare class FinancingService implements IFinancingService {
|
|
@@ -44,5 +46,7 @@ export declare class FinancingService implements IFinancingService {
|
|
|
44
46
|
getPortfolioCreditInformation(request: GetPortfolioCreditInformationRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioCreditInformationResponse>;
|
|
45
47
|
getPortfolioWithdrawalPower(request: GetPortfolioWithdrawalPowerRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioWithdrawalPowerResponse>;
|
|
46
48
|
getTieredPricingFees(request: GetTieredPricingFeesRequest, options?: CoinbaseCallOptions): Promise<GetTieredPricingFeesResponse>;
|
|
49
|
+
getFcmMarginCallDetails(request: GetFcmMarginCallDetailsRequest, options?: CoinbaseCallOptions): Promise<GetFcmMarginCallDetailsResponse>;
|
|
50
|
+
getFcmRiskLimits(request: GetFcmRiskLimitsRequest, options?: CoinbaseCallOptions): Promise<GetFcmRiskLimitsResponse>;
|
|
47
51
|
createNewLocates(request: CreateNewLocatesRequest, options?: CoinbaseCallOptions): Promise<CreateNewLocatesResponse>;
|
|
48
52
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { Brand } from '../shared/brand';
|
|
17
|
-
import { GetExistingLocatesResponse, GetInterestAccrualsResponse, GetLocateAvailabilitiesResponse, GetMarginConversionsResponse, GetMarginSummariesResponse, GetMarginInformationResponse as internalGetMarginInformationResponse, GetBuyingPowerResponse, GetPostTradeCreditResponse, GetTFTieredPricingFeesResponse, GetWithdrawalPowerResponse, CreateNewLocatesResponse as internalCreateNewLocatesResponse } from '../model/';
|
|
17
|
+
import { GetExistingLocatesResponse, GetInterestAccrualsResponse, GetLocateAvailabilitiesResponse, GetMarginConversionsResponse, GetMarginSummariesResponse, GetMarginInformationResponse as internalGetMarginInformationResponse, GetBuyingPowerResponse, GetPostTradeCreditResponse, GetTFTieredPricingFeesResponse, GetWithdrawalPowerResponse, GetFcmMarginCallDetailsResponse as internalGetFcmMarginCallDetailsResponse, GetFcmRiskLimitsResponse as internalGetFcmRiskLimitsResponse, CreateNewLocatesResponse as internalCreateNewLocatesResponse } from '../model/';
|
|
18
18
|
export type ListExistingLocatesRequest = {
|
|
19
19
|
portfolioId: string;
|
|
20
20
|
locateIds?: string[];
|
|
@@ -83,3 +83,11 @@ export type CreateNewLocatesRequest = {
|
|
|
83
83
|
locateDate?: string;
|
|
84
84
|
};
|
|
85
85
|
export type CreateNewLocatesResponse = Brand<internalCreateNewLocatesResponse, 'CreateNewLocatesResponse'>;
|
|
86
|
+
export type GetFcmMarginCallDetailsRequest = {
|
|
87
|
+
entityId: string;
|
|
88
|
+
};
|
|
89
|
+
export type GetFcmMarginCallDetailsResponse = Brand<internalGetFcmMarginCallDetailsResponse, 'GetFcmMarginCallDetailsResponse'>;
|
|
90
|
+
export type GetFcmRiskLimitsRequest = {
|
|
91
|
+
entityId: string;
|
|
92
|
+
};
|
|
93
|
+
export type GetFcmRiskLimitsResponse = Brand<internalGetFcmRiskLimitsResponse, 'GetFcmRiskLimitsResponse'>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export { AllocationService, IAllocationService } from './allocations';
|
|
|
21
21
|
export { AssetsService, IAssetsService } from './assets';
|
|
22
22
|
export { BalancesService, IBalancesService } from './balances';
|
|
23
23
|
export { CommissionService, ICommissionService } from './commission';
|
|
24
|
+
export { FinancingService, IFinancingService } from './financing';
|
|
24
25
|
export { FuturesService, IFuturesService } from './futures';
|
|
25
26
|
export { InvoicesService, IInvoicesService } from './invoices';
|
|
26
27
|
export { OnchainAddressBookService } from './onchainAddressBook';
|
|
@@ -41,16 +42,16 @@ export type { CreateAllocationRequest, CreateAllocationResponse, CreateNetAlloca
|
|
|
41
42
|
export type { ListAssetsRequest, ListAssetsResponse } from './assets/types';
|
|
42
43
|
export type { GetWalletBalanceRequest, GetWalletBalanceResponse, ListOnchainWalletBalancesRequest, ListOnchainWalletBalancesResponse, ListPortfolioBalancesRequest, ListPortfolioBalancesResponse, ListEntityBalancesRequest, ListEntityBalancesResponse, } from './balances/types';
|
|
43
44
|
export type { GetPortfolioCommissionRequest, GetPortfolioCommissionResponse, } from './commission/types';
|
|
44
|
-
export type { ListExistingLocatesRequest, ListExistingLocatesResponse, ListInterestAccrualsRequest, ListInterestAccrualsResponse, ListPortfolioInterestAccrualsRequest, ListPortfolioInterestAccrualsResponse, ListMarginCallSummariesRequest, ListMarginCallSummariesResponse, ListMarginConversionsRequest, ListMarginConversionsResponse, GetEntityLocateAvailabilitiesRequest, GetEntityLocateAvailabilitiesResponse, GetMarginInformationRequest, GetMarginInformationResponse, GetPortfolioBuyingPowerRequest, GetPortfolioBuyingPowerResponse, GetPortfolioCreditInformationRequest, GetPortfolioCreditInformationResponse, GetPortfolioWithdrawalPowerRequest, GetPortfolioWithdrawalPowerResponse, GetTieredPricingFeesRequest, GetTieredPricingFeesResponse, CreateNewLocatesRequest, CreateNewLocatesResponse, } from './financing/types';
|
|
45
|
+
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';
|
|
45
46
|
export type { CancelEntitySweepRequest, CancelEntitySweepResponse, GetEntityFuturesBalanceRequest, GetEntityFuturesBalanceResponse, GetEntityFuturesPositionsRequest, GetEntityFuturesPositionsResponse, ListEntityFuturesSweepsRequest, ListEntityFuturesSweepsResponse, ScheduleEntityFuturesSweepRequest, ScheduleEntityFuturesSweepResponse, UpdateEntityFuturesAutoSweepRequest, UpdateEntityFuturesAutoSweepResponse, } from './futures/types';
|
|
46
47
|
export type { ListInvoicesRequest, ListInvoicesResponse, } from './invoices/types';
|
|
47
48
|
export type { CreateOnchainAddressBookEntryRequest, CreateOnchainAddressBookEntryResponse, DeleteOnchainAddressBookEntryRequest, DeleteOnchainAddressBookEntryResponse, ListOnchainAddressBookRequest, ListOnchainAddressBookResponse, UpdateOnchainAddressBookEntryRequest, UpdateOnchainAddressBookEntryResponse, } from './onchainAddressBook/types';
|
|
48
|
-
export type { AcceptQuoteRequest, AcceptQuoteResponse, CancelOrderRequest, CancelOrderResponse, CreateOrderPreviewRequest, CreateOrderPreviewResponse, CreateOrderRequest, CreateOrderResponse, CreateQuoteRequest, CreateQuoteResponse, GetOrderRequest, GetOrderResponse, ListOpenOrdersRequest, ListOpenOrdersResponse, ListOrderFillsRequest, ListOrderFillsResponse, ListPortfolioFillsRequest, ListPortfolioFillsResponse, ListPortfolioOrdersRequest, ListPortfolioOrdersResponse, } from './orders/types';
|
|
49
|
+
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';
|
|
49
50
|
export type { GetPaymentMethodRequest, GetPaymentMethodResponse, ListEntityPaymentMethodsRequest, ListEntityPaymentMethodsResponse, } from './paymentMethods/types';
|
|
50
|
-
export type { ListPortfoliosRequest, ListPortfoliosResponse, GetPortfolioCreditRequest, GetPortfolioCreditResponse, GetPortfolioRequest, GetPortfolioResponse, } from './portfolios/types';
|
|
51
|
+
export type { ListPortfoliosRequest, ListPortfoliosResponse, GetPortfolioCreditRequest, GetPortfolioCreditResponse, GetPortfolioRequest, GetPortfolioResponse, GetCounterpartyIdRequest, GetCounterpartyIdResponse, } from './portfolios/types';
|
|
51
52
|
export type { ListAggregateEntityPositionsRequest, ListAggregateEntityPositionsResponse, ListEntityPositionsRequest, ListEntityPositionsResponse, } from './positions/types';
|
|
52
53
|
export type { ListProductsRequest, ListProductsResponse, } from './products/types';
|
|
53
|
-
export type { CreateStakeRequest, CreateStakeResponse, CreateUnstakeRequest, CreateUnstakeResponse, } from './staking/types';
|
|
54
|
+
export type { CreateStakeRequest, CreateStakeResponse, CreateUnstakeRequest, CreateUnstakeResponse, CreatePortfolioStakeRequest, CreatePortfolioStakeResponse, CreatePortfolioUnstakeRequest, CreatePortfolioUnstakeResponse, } from './staking/types';
|
|
54
55
|
export type { CreateConversionRequest, CreateConversionResponse, CreateOnchainTransactionRequest, CreateOnchainTransactionResponse, CreateTransferRequest, CreateTransferResponse, CreateWithdrawalRequest, CreateWithdrawalResponse, GetTransactionRequest, GetTransactionResponse, ListPortfolioTransactionsRequest, ListPortfolioTransactionsResponse, ListWalletTransactionsRequest, ListWalletTransactionsResponse, } from './transactions/types';
|
|
55
56
|
export type { ListPortfolioUsersRequest, ListPortfolioUsersResponse, ListUsersRequest, ListUsersResponse, } from './users/types';
|
|
56
57
|
export type { CreateWalletRequest, CreateWalletResponse, CreateWalletDepositAddressRequest, CreateWalletDepositAddressResponse, GetWalletDepositInstructionsRequest, GetWalletDepositInstructionsResponse, GetWalletRequest, GetWalletResponse, ListWalletAddressesRequest, ListWalletAddressesResponse, ListWalletsRequest, ListWalletsResponse, } from './wallets/types';
|
|
@@ -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 Counterparty = {
|
|
21
|
+
/**
|
|
22
|
+
* The unique counterparty ID for the portfolio
|
|
23
|
+
*/
|
|
24
|
+
counterpartyId?: string;
|
|
25
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
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 CounterpartyDestination = {
|
|
21
|
+
counterpartyId?: string;
|
|
22
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { AllocationLeg } from './AllocationLeg';
|
|
21
|
+
import { AllocationSizeType } from './enums/AllocationSizeType';
|
|
22
|
+
export type CreateNetAllocationRequest = {
|
|
23
|
+
/**
|
|
24
|
+
* The source portfolio id for the allocation
|
|
25
|
+
*/
|
|
26
|
+
sourcePortfolioId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The product for the allocation
|
|
29
|
+
*/
|
|
30
|
+
productId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The list of order ids in the allocation
|
|
33
|
+
*/
|
|
34
|
+
orderIds?: Array<string>;
|
|
35
|
+
/**
|
|
36
|
+
* The list of allocation_legs for the allocation
|
|
37
|
+
*/
|
|
38
|
+
allocationLegs?: Array<AllocationLeg>;
|
|
39
|
+
sizeType?: AllocationSizeType;
|
|
40
|
+
/**
|
|
41
|
+
* The portfolio where to allocate the remainder of the size
|
|
42
|
+
*/
|
|
43
|
+
remainderDestinationPortfolio?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The ID to identify an in-flight net allocation.
|
|
46
|
+
*/
|
|
47
|
+
nettingId?: string;
|
|
48
|
+
};
|
|
@@ -32,13 +32,17 @@ export type CreateOrderRequest = {
|
|
|
32
32
|
expiryTime?: Date;
|
|
33
33
|
timeInForce?: TimeInForceType;
|
|
34
34
|
stpId?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Optionally specify a display size. This is 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. This property only applies to LIMIT orders and will be ignored for other order types.
|
|
37
|
+
*/
|
|
35
38
|
displayQuoteSize?: string;
|
|
36
39
|
displayBaseSize?: string;
|
|
37
40
|
isRaiseExact?: boolean;
|
|
38
41
|
historicalPov?: string;
|
|
39
42
|
stopPrice?: string;
|
|
43
|
+
settlCurrency?: string;
|
|
40
44
|
/**
|
|
41
|
-
* next:
|
|
45
|
+
* Post-only flag - when true, the order will only be posted to the order book and not immediately matched. Only applicable to LIMIT orders with GTC or GTD time in force. next: 20
|
|
42
46
|
*/
|
|
43
|
-
|
|
47
|
+
postOnly?: boolean;
|
|
44
48
|
};
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
20
|
import { BlockchainAddress } from './BlockchainAddress';
|
|
21
|
+
import { CounterpartyDestination } from './CounterpartyDestination';
|
|
21
22
|
import { DestinationType } from './enums/DestinationType';
|
|
22
23
|
import { PaymentMethodDestination } from './PaymentMethodDestination';
|
|
23
24
|
export type CreateWalletWithdrawalRequest = {
|
|
@@ -36,4 +37,5 @@ export type CreateWalletWithdrawalRequest = {
|
|
|
36
37
|
currencySymbol: string;
|
|
37
38
|
paymentMethod?: PaymentMethodDestination;
|
|
38
39
|
blockchainAddress?: BlockchainAddress;
|
|
40
|
+
counterparty?: CounterpartyDestination;
|
|
39
41
|
};
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
20
|
import { BlockchainAddress } from './BlockchainAddress';
|
|
21
|
+
import { CounterpartyDestination } from './CounterpartyDestination';
|
|
21
22
|
export type CreateWalletWithdrawalResponse = {
|
|
22
23
|
/**
|
|
23
24
|
* The activity ID associated with the withdrawal
|
|
@@ -48,6 +49,7 @@ export type CreateWalletWithdrawalResponse = {
|
|
|
48
49
|
*/
|
|
49
50
|
sourceType?: string;
|
|
50
51
|
blockchainDestination?: BlockchainAddress;
|
|
52
|
+
counterpartyDestination?: CounterpartyDestination;
|
|
51
53
|
blockchainSource?: BlockchainAddress;
|
|
52
54
|
/**
|
|
53
55
|
* The id of the just created transaction
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { FcmMarginCallState } from './enums/FcmMarginCallState';
|
|
21
|
+
import { FcmMarginCallType } from './enums/FcmMarginCallType';
|
|
22
|
+
export type FCMMarginCall = {
|
|
23
|
+
type?: FcmMarginCallType;
|
|
24
|
+
state?: FcmMarginCallState;
|
|
25
|
+
/**
|
|
26
|
+
* Initial margin call amount to settle
|
|
27
|
+
*/
|
|
28
|
+
initialAmount?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Remaining margin call amount to settle
|
|
31
|
+
*/
|
|
32
|
+
remainingAmount?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Business date when the margin call was opened
|
|
35
|
+
*/
|
|
36
|
+
businessDate?: Date;
|
|
37
|
+
/**
|
|
38
|
+
* The deadline by which the margin call must be satisfied
|
|
39
|
+
*/
|
|
40
|
+
cureDeadline?: Date;
|
|
41
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { FCMMarginCall } from './FCMMarginCall';
|
|
21
|
+
export type GetFcmMarginCallDetailsResponse = {
|
|
22
|
+
/**
|
|
23
|
+
* List of margin calls
|
|
24
|
+
*/
|
|
25
|
+
marginCalls?: Array<FCMMarginCall>;
|
|
26
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
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 GetFcmRiskLimitsResponse = {
|
|
21
|
+
/**
|
|
22
|
+
* Risk Limit set for a client
|
|
23
|
+
*/
|
|
24
|
+
cfmRiskLimit?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Limit utilization calculated based on total margin and PnLs
|
|
27
|
+
*/
|
|
28
|
+
cfmRiskLimitUtilization?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The total margin required for both positions and open orders
|
|
31
|
+
*/
|
|
32
|
+
cfmTotalMargin?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Open Trade Equity accrued during the current trading session
|
|
35
|
+
*/
|
|
36
|
+
cfmDeltaOte?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Unsettled realized PNL for positions closed intraday
|
|
39
|
+
*/
|
|
40
|
+
cfmUnsettledRealizedPnl?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Unsettled accrued funding PNL from the last settlement
|
|
43
|
+
*/
|
|
44
|
+
cfmUnsettledAccruedFundingPnl?: string;
|
|
45
|
+
};
|
|
@@ -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 { LimitOrderEdit } from './LimitOrderEdit';
|
|
21
|
+
import { OrderEdit } from './OrderEdit';
|
|
22
|
+
export type GetOrderEditHistoryResponse = {
|
|
23
|
+
/**
|
|
24
|
+
* The order ID
|
|
25
|
+
*/
|
|
26
|
+
orderId: string;
|
|
27
|
+
/**
|
|
28
|
+
* The history of order edits (deprecated: use edit_history instead)
|
|
29
|
+
*/
|
|
30
|
+
orderEditHistory?: Array<LimitOrderEdit>;
|
|
31
|
+
/**
|
|
32
|
+
* The history of order edits
|
|
33
|
+
*/
|
|
34
|
+
editHistory: Array<OrderEdit>;
|
|
35
|
+
};
|
|
@@ -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 { Counterparty } from './Counterparty';
|
|
21
|
+
export type GetPortfolioCounterpartyIDResponse = {
|
|
22
|
+
counterparty?: Counterparty;
|
|
23
|
+
};
|