Class: CBAdvancedTradeClient
REST client for Coinbase's Advanced Trade API: https://docs.cdp.coinbase.com/advanced-trade/docs/api-overview/
Extends
BaseRestClient
Constructors
Constructor
new CBAdvancedTradeClient(restClientOptions?: RestClientOptions, requestOptions?: AxiosRequestConfig): CBAdvancedTradeClient;Parameters
| Parameter | Type |
|---|---|
restClientOptions? | RestClientOptions |
requestOptions? | AxiosRequestConfig |
Returns
CBAdvancedTradeClient
Overrides
BaseRestClient.constructor
Methods
allocatePortfolio()
allocatePortfolio(params: AllocateAdvTradePortfolioRequest): Promise<any>;Legacy INTX allocation endpoint, retired on 1 October 2026. Use CBAdvancedTradeGlobalClient for current international derivatives. See Advanced Trade endpoints.
Parameters
| Parameter | Type |
|---|---|
params | AllocateAdvTradePortfolioRequest |
Returns
Promise<any>
cancelOrders()
cancelOrders(params: object): Promise<AdvTradeCancelOrdersResponse>;Initiate cancel requests for one or more orders. Pass their IDs in order_ids. The SDK forwards the array to POST /api/v3/brokerage/orders/batch_cancel without enforcing a local batch-size limit.
Parameters
| Parameter | Type |
|---|---|
params | { order_ids: string[]; } |
params.order_ids | string[] |
Returns
Promise<AdvTradeCancelOrdersResponse>
See
cancelPendingFuturesSweep()
cancelPendingFuturesSweep(): Promise<{
success: boolean;
}>;Cancel Pending Futures Sweep
Cancel the pending sweep of funds from your futures account to your USD spot account.
Returns
Promise<{ success: boolean; }>
closePosition()
closePosition(params: CloseAdvTradePositionRequest): Promise<AdvTradeClosePositionResponse>;Close Position
Places an order to close any open positions for a specified product_id.
Parameters
| Parameter | Type |
|---|---|
params | CloseAdvTradePositionRequest |
Returns
Promise<AdvTradeClosePositionResponse>
commitConvertTrade()
commitConvertTrade(params: object): Promise<any>;Commit Convert Trade
Commits a convert trade with a specified trade id, source account, and target account.
Parameters
| Parameter | Type |
|---|---|
params | { from_account: string; to_account: string; trade_id: string; } |
params.from_account | string |
params.to_account | string |
params.trade_id | string |
Returns
Promise<any>
createPortfolio()
createPortfolio(params: object): Promise<{
portfolio: AdvTradePortfolio;
}>;Create Portfolio
Create a portfolio.
Parameters
| Parameter | Type |
|---|---|
params | { name: string; } |
params.name | string |
Returns
Promise<{ portfolio: AdvTradePortfolio; }>
deletePortfolio()
deletePortfolio(params: object): Promise<any>;Delete Portfolio
Delete a portfolio.
Parameters
| Parameter | Type |
|---|---|
params | { portfolio_uuid: string; } |
params.portfolio_uuid | string |
Returns
Promise<any>
deletePrivate()
deletePrivate(endpoint: string, params?: ParamsInRequest): Promise<any>;Parameters
| Parameter | Type |
|---|---|
endpoint | string |
params? | ParamsInRequest |
Returns
Promise<any>
Inherited from
BaseRestClient.deletePrivate
fetchLatencySummary()
fetchLatencySummary(): Promise<any>;Estimate request latency and the clock offset between the client and server. This SDK diagnostic is intended for internal testing and is not an exchange API endpoint. Values are estimates and can vary with network conditions. Suggestions and improvements are welcome as GitHub issues or pull requests.
Returns
Promise<any>
generateNewOrderId()
generateNewOrderId(): string;Returns
string
Inherited from
BaseRestClient.generateNewOrderId
get()
get(endpoint: string, params?: object): Promise<any>;Parameters
| Parameter | Type |
|---|---|
endpoint | string |
params? | object |
Returns
Promise<any>
Inherited from
BaseRestClient.get
getAccount()
getAccount(params: object): Promise<{
account: AdvTradeAccount;
}>;Get Account
Get an account by its UUID. Use getAccounts() to find account UUIDs.
Parameters
| Parameter | Type |
|---|---|
params | { account_id: string; } |
params.account_id | string |
Returns
Promise<{ account: AdvTradeAccount; }>
getAccounts()
getAccounts(params?: object): Promise<AdvTradeAccountsList>;List Accounts
Get a list of authenticated accounts for the current user.
Parameters
| Parameter | Type |
|---|---|
params? | { cursor?: string; limit?: number; retail_portfolio_id?: string; } |
params.cursor? | string |
params.limit? | number |
params.retail_portfolio_id? | string |
Returns
Promise<AdvTradeAccountsList>
See
Read authenticated account balances
getApiKeyPermissions()
getApiKeyPermissions(): Promise<AdvTradeApiKeyPermissions>;Get API Key Permissions
Get information about your CDP API key permissions.
Returns
Promise<AdvTradeApiKeyPermissions>
See
getBestBidAsk()
getBestBidAsk(params?: object): Promise<{
pricebooks: AdvTradePricebook[];
}>;Get Best Bid/Ask
Get the best bid/ask for all products. A subset of all products can be returned instead by using the product_ids input.
Parameters
| Parameter | Type |
|---|---|
params? | { product_ids?: string[]; } |
params.product_ids? | string[] |
Returns
Promise<{ pricebooks: AdvTradePricebook[]; }>
getClientType()
getClientType(): RestClientType;Defines the client type (affecting how requests & signatures behave)
Returns
RestClientType
Overrides
BaseRestClient.getClientType
getConvertTrade()
getConvertTrade(params: object): Promise<any>;Get Convert Trade
Get details of a conversion trade by trade ID, source account, and target account.
Parameters
| Parameter | Type |
|---|---|
params | { from_account: string; to_account: string; trade_id: string; } |
params.from_account | string |
params.to_account | string |
params.trade_id | string |
Returns
Promise<any>
getCurrentMarginWindow()
getCurrentMarginWindow(params?: object): Promise<AdvTradeCurrentMarginWindow>;Get Current Margin Window
Get the futures current margin window.
Parameters
| Parameter | Type |
|---|---|
params? | { margin_profile_type?: | "MARGIN_PROFILE_TYPE_UNSPECIFIED" | "MARGIN_PROFILE_TYPE_RETAIL_REGULAR" | "MARGIN_PROFILE_TYPE_RETAIL_INTRADAY_MARGIN_1"; } |
params.margin_profile_type? | | "MARGIN_PROFILE_TYPE_UNSPECIFIED" | "MARGIN_PROFILE_TYPE_RETAIL_REGULAR" | "MARGIN_PROFILE_TYPE_RETAIL_INTRADAY_MARGIN_1" |
Returns
Promise<AdvTradeCurrentMarginWindow>
getFills()
getFills(params?: GetAdvTradeFillsRequest): Promise<{
cursor?: string;
fills: AdvTradeFill[];
}>;List fills using optional filters such as product_ids and order_ids. Pass the response cursor to request the next page.
Parameters
| Parameter | Type |
|---|---|
params? | GetAdvTradeFillsRequest |
Returns
Promise<{ cursor?: string; fills: AdvTradeFill[]; }>
See
getFuturesBalanceSummary()
getFuturesBalanceSummary(): Promise<{
balance_summary: AdvTradeFuturesBalance;
}>;Get Futures Balance Summary
Get a summary of balances for CFM trading.
Futures vs Spot Accounts:
- Futures and spot balances are held in different accounts.
- Cash is always deposited into your Coinbase Inc. (CBI) spot account.
- Cash is automatically transferred to your Coinbase Financial Markets (CFM) futures account to satisfy margin requirements.
- You can transfer cash that isn't being used to margin or maintain futures positions into your CBI spot account.
- Funds held in a CBI spot account do not receive the preferential treatment given to funds held in a regulated futures account.
Intraday vs. Overnight Margin Health:
- If you are opted in to receive increased leverage on futures trades during the intraday window (from 8am-4pm ET), this endpoint will return your intraday and overnight margin health.
Returns
Promise<{ balance_summary: AdvTradeFuturesBalance; }>
getFuturesPosition()
getFuturesPosition(params: object): Promise<{
position: AdvTradeFuturesPosition;
}>;Get Futures Position
Get positions for a specific CFM product.
Parameters
| Parameter | Type |
|---|---|
params | { product_id: string; } |
params.product_id | string |
Returns
Promise<{ position: AdvTradeFuturesPosition; }>
getFuturesPositions()
getFuturesPositions(): Promise<{
positions: AdvTradeFuturesPosition[];
}>;List Futures Positions
Get a list of positions in CFM products.
Returns
Promise<{ positions: AdvTradeFuturesPosition[]; }>
getFuturesSweeps()
getFuturesSweeps(): Promise<{
sweeps: AdvTradeFuturesSweep[];
}>;List Futures Sweeps
Get pending and processing sweeps of funds from your futures account to your USD spot account.
Pending vs. Processing Sweeps:
- A pending sweep is a sweep that has not started processing and can be cancelled.
- A processing sweep is a sweep that is currently being processed and cannot be cancelled.
- Once a sweep is complete, it no longer appears in the list of sweeps.
Returns
Promise<{ sweeps: AdvTradeFuturesSweep[]; }>
getIntradayMarginSetting()
getIntradayMarginSetting(): Promise<{
setting: | "INTRADAY_MARGIN_SETTING_UNSPECIFIED"
| "INTRADAY_MARGIN_SETTING_STANDARD"
| "INTRADAY_MARGIN_SETTING_INTRADAY";
}>;Get Intraday Margin Setting
Get the futures intraday margin setting.
Returns
Promise<{ setting: | "INTRADAY_MARGIN_SETTING_UNSPECIFIED" | "INTRADAY_MARGIN_SETTING_STANDARD" | "INTRADAY_MARGIN_SETTING_INTRADAY"; }>
getMarketTrades()
getMarketTrades(params: GetAdvTradeMarketTradesRequest): Promise<AdvTradeMarketTrades>;Get Market Trades
Get snapshot information by product ID about the last trades (ticks) and best bid/ask.
Parameters
| Parameter | Type |
|---|---|
params | GetAdvTradeMarketTradesRequest |
Returns
Promise<AdvTradeMarketTrades>
getOrder()
getOrder(params: object): Promise<{
order: AdvTradeOrder;
}>;Get Order
Get a single order by order ID.
Parameters
| Parameter | Type |
|---|---|
params | { client_order_id?: string; order_id: string; user_native_currency?: string; } |
params.client_order_id? | string |
params.order_id | string |
params.user_native_currency? | string |
Returns
Promise<{ order: AdvTradeOrder; }>
See
getOrders()
getOrders(params?: GetAdvTradeOrdersRequest): Promise<{
cursor?: string;
has_next: boolean;
orders: AdvTradeOrder[];
sequence?: number;
}>;List orders using optional filters. order_status filters statuses such as OPEN; order_types filters types such as LIMIT or MARKET. When has_next is true, pass the response cursor in the next request. See List Orders for current filter definitions.
Parameters
| Parameter | Type |
|---|---|
params? | GetAdvTradeOrdersRequest |
Returns
Promise<{ cursor?: string; has_next: boolean; orders: AdvTradeOrder[]; sequence?: number; }>
See
getPaymentMethod()
getPaymentMethod(params: object): Promise<{
payment_method: AdvTradePaymentMethod;
}>;Get Payment Method
Get information about a payment method for the current user.
Parameters
| Parameter | Type |
|---|---|
params | { payment_method_id: string; } |
params.payment_method_id | string |
Returns
Promise<{ payment_method: AdvTradePaymentMethod; }>
getPaymentMethods()
getPaymentMethods(): Promise<{
payment_methods: AdvTradePaymentMethod[];
}>;List Payment Methods
Get a list of payment methods for the current user.
Returns
Promise<{ payment_methods: AdvTradePaymentMethod[]; }>
getPerpetualsPortfolioSummary()
getPerpetualsPortfolioSummary(params: object): Promise<AdvTradePerpetualsPortfolio>;Read legacy INTX portfolio data. This retired endpoint retains pre-migration history temporarily; use CBAdvancedTradeGlobalClient for current international derivatives. See Advanced Trade endpoints.
Parameters
| Parameter | Type |
|---|---|
params | { portfolio_uuid: string; } |
params.portfolio_uuid | string |
Returns
Promise<AdvTradePerpetualsPortfolio>
getPerpetualsPosition()
getPerpetualsPosition(params: object): Promise<{
position: AdvTradePerpetualsPosition;
}>;Read a legacy INTX position. This retired endpoint retains pre-migration history temporarily; use CBAdvancedTradeGlobalClient for current international derivatives. See Advanced Trade endpoints.
Parameters
| Parameter | Type |
|---|---|
params | { portfolio_uuid: string; symbol: string; } |
params.portfolio_uuid | string |
params.symbol | string |
Returns
Promise<{ position: AdvTradePerpetualsPosition; }>
getPerpetualsPositions()
getPerpetualsPositions(params: object): Promise<AdvTradePerpetualsPositionSummary>;Read legacy INTX positions. This retired endpoint retains pre-migration history temporarily; use CBAdvancedTradeGlobalClient for current international derivatives. See Advanced Trade endpoints.
Parameters
| Parameter | Type |
|---|---|
params | { portfolio_uuid: string; } |
params.portfolio_uuid | string |
Returns
Promise<AdvTradePerpetualsPositionSummary>
getPortfolioBreakdown()
getPortfolioBreakdown(params: object): Promise<{
breakdown: AdvTradePortfolioBreakdown;
}>;Get Portfolio Breakdown
Get the breakdown of a portfolio.
Parameters
| Parameter | Type |
|---|---|
params | { currency?: string; portfolio_uuid: string; } |
params.currency? | string |
params.portfolio_uuid | string |
Returns
Promise<{ breakdown: AdvTradePortfolioBreakdown; }>
getPortfolios()
getPortfolios(params?: object): Promise<{
portfolios: AdvTradePortfolio[];
}>;List Portfolios
Get all portfolios of a user.
Parameters
| Parameter | Type |
|---|---|
params? | { portfolio_type?: "INTX" | "UNDEFINED" | "DEFAULT" | "CONSUMER"; } |
params.portfolio_type? | "INTX" | "UNDEFINED" | "DEFAULT" | "CONSUMER" |
Returns
Promise<{ portfolios: AdvTradePortfolio[]; }>
getPortfoliosBalances()
getPortfoliosBalances(params: object): Promise<{
portfolio_balances: AdvTradePortfolioBalance[];
}>;Read legacy INTX balances. This retired endpoint retains pre-migration history temporarily; use CBAdvancedTradeGlobalClient for current international derivatives. See Advanced Trade endpoints.
Parameters
| Parameter | Type |
|---|---|
params | { portfolio_uuid: string; } |
params.portfolio_uuid | string |
Returns
Promise<{ portfolio_balances: AdvTradePortfolioBalance[]; }>
getPrivate()
getPrivate(endpoint: string, params?: object): Promise<any>;Parameters
| Parameter | Type |
|---|---|
endpoint | string |
params? | object |
Returns
Promise<any>
Inherited from
BaseRestClient.getPrivate
getProduct()
getProduct(params: object): Promise<AdvTradeProduct>;Get Product
Get information on a single product by product ID.
Parameters
| Parameter | Type |
|---|---|
params | { get_tradability_status?: boolean; product_id: string; } |
params.get_tradability_status? | boolean |
params.product_id | string |
Returns
Promise<AdvTradeProduct>
getProductBook()
getProductBook(params: object): Promise<{
pricebook: AdvTradePricebook;
}>;Get Product Book
Get a list of bids/asks for a single product. The amount of detail shown can be customized with the limit parameter.
Parameters
| Parameter | Type |
|---|---|
params | { aggregation_price_increment?: string; limit?: number; product_id: string; } |
params.aggregation_price_increment? | string |
params.limit? | number |
params.product_id | string |
Returns
Promise<{ pricebook: AdvTradePricebook; }>
getProductCandles()
getProductCandles(params: GetAdvTradeProductCandlesRequest): Promise<{
candles: AdvTradeCandle[];
}>;Get Product Candles
Get rates for a single product by product ID, grouped in buckets.
Parameters
| Parameter | Type |
|---|---|
params | GetAdvTradeProductCandlesRequest |
Returns
Promise<{ candles: AdvTradeCandle[]; }>
getProducts()
getProducts(params?: GetAdvTradeProductsRequest): Promise<{
num_products: number;
products: AdvTradeProduct[];
}>;List Products
Get a list of the available currency pairs for trading.
Parameters
| Parameter | Type |
|---|---|
params? | GetAdvTradeProductsRequest |
Returns
Promise<{ num_products: number; products: AdvTradeProduct[]; }>
getPublicMarketTrades()
getPublicMarketTrades(params: GetAdvTradePublicMarketTradesRequest): Promise<AdvTradeMarketTrades>;Get Public Market Trades
Get snapshot information by product ID about the last trades (ticks) and best bid/ask.
Parameters
| Parameter | Type |
|---|---|
params | GetAdvTradePublicMarketTradesRequest |
Returns
Promise<AdvTradeMarketTrades>
getPublicProduct()
getPublicProduct(params: object): Promise<AdvTradePublicProduct>;Get Public Product
Get information on a single product by product ID.
Parameters
| Parameter | Type |
|---|---|
params | { product_id: string; } |
params.product_id | string |
Returns
Promise<AdvTradePublicProduct>
See
Read an Advanced Trade public price
getPublicProductBook()
getPublicProductBook(params: object): Promise<{
pricebook: AdvTradePricebook;
}>;Get Public Product Book
Get a list of bids/asks for a single product. The amount of detail shown can be customized with the limit parameter.
Parameters
| Parameter | Type |
|---|---|
params | { aggregation_price_increment?: string; limit?: number; product_id: string; } |
params.aggregation_price_increment? | string |
params.limit? | number |
params.product_id | string |
Returns
Promise<{ pricebook: AdvTradePricebook; }>
See
getPublicProductCandles()
getPublicProductCandles(params: GetAdvTradePublicProductCandlesRequest): Promise<{
candles: AdvTradeCandle[];
}>;Get Public Product Candles
Get rates for a single product by product ID, grouped in buckets.
Parameters
| Parameter | Type |
|---|---|
params | GetAdvTradePublicProductCandlesRequest |
Returns
Promise<{ candles: AdvTradeCandle[]; }>
getPublicProducts()
getPublicProducts(params?: GetAdvTradePublicProductsRequest): Promise<{
num_products: number;
products: AdvTradePublicProduct[];
}>;List Public Products
Get a list of the available currency pairs for trading.
Parameters
| Parameter | Type |
|---|---|
params? | GetAdvTradePublicProductsRequest |
Returns
Promise<{ num_products: number; products: AdvTradePublicProduct[]; }>
getServerTime()
getServerTime(): Promise<{
epochMillis: string;
epochSeconds: string;
iso: string;
}>;Public Endpoints
Returns
Promise<{ epochMillis: string; epochSeconds: string; iso: string; }>
getSignTimestampMs()
getSignTimestampMs(): number;Timestamp used to sign the request. Override this method to implement your own timestamp/sync mechanism
Returns
number
Inherited from
BaseRestClient.getSignTimestampMs
getTransactionSummary()
getTransactionSummary(params?: GetAdvTradeTransactionSummaryRequest): Promise<AdvTradeTransactionSummary>;Get Transaction Summary
Get a summary of transactions with fee tiers, total volume, and fees.
Parameters
| Parameter | Type |
|---|---|
params? | GetAdvTradeTransactionSummaryRequest |
Returns
Promise<AdvTradeTransactionSummary>
movePortfolioFunds()
movePortfolioFunds(params: MoveAdvTradePortfolioFundsRequest): Promise<{
source_portfolio_uuid: string;
target_portfolio_uuid: string;
}>;Move Portfolio Funds
Move funds between portfolios.
Parameters
| Parameter | Type |
|---|---|
params | MoveAdvTradePortfolioFundsRequest |
Returns
Promise<{ source_portfolio_uuid: string; target_portfolio_uuid: string; }>
patchPrivate()
patchPrivate(endpoint: string, params?: ParamsInRequest): Promise<any>;Parameters
| Parameter | Type |
|---|---|
endpoint | string |
params? | ParamsInRequest |
Returns
Promise<any>
Inherited from
BaseRestClient.patchPrivate
post()
post(endpoint: string, params?: ParamsInRequest): Promise<any>;Parameters
| Parameter | Type |
|---|---|
endpoint | string |
params? | ParamsInRequest |
Returns
Promise<any>
Inherited from
BaseRestClient.post
postPrivate()
postPrivate(endpoint: string, params?: ParamsInRequest): Promise<any>;Parameters
| Parameter | Type |
|---|---|
endpoint | string |
params? | ParamsInRequest |
Returns
Promise<any>
Inherited from
BaseRestClient.postPrivate
previewOrder()
previewOrder(params: PreviewAdvTradeOrderRequest): Promise<AdvTradeOrderPreview>;Preview Order
Preview an order.
Parameters
| Parameter | Type |
|---|---|
params | PreviewAdvTradeOrderRequest |
Returns
Promise<AdvTradeOrderPreview>
See
putPrivate()
putPrivate(endpoint: string, params?: ParamsInRequest): Promise<any>;Parameters
| Parameter | Type |
|---|---|
endpoint | string |
params? | ParamsInRequest |
Returns
Promise<any>
Inherited from
BaseRestClient.putPrivate
scheduleFuturesSweep()
scheduleFuturesSweep(params?: object): Promise<{
success: boolean;
}>;Schedule Futures Sweep
Schedules a sweep of funds from your futures account to your USD spot account.
Futures Sweep Processing:
- Sweep requests submitted before 5PM ET each day are processed the following business day.
- Sweep requests submitted after 5PM ET each day are processed in 2 business days.
- You can have at most one pending sweep request at a time.
Market movements related to your open positions may impact the final amount that is transferred into your spot account. The final funds transferred, up to your specified amount, depend on the available excess in your futures account.
Parameters
| Parameter | Type |
|---|---|
params? | { usd_amount?: string; } |
params.usd_amount? | string |
Returns
Promise<{ success: boolean; }>
setIntradayMarginSetting()
setIntradayMarginSetting(params?: object): Promise<any>;Set Intraday Margin Setting
Set the futures intraday margin setting.
Parameters
| Parameter | Type |
|---|---|
params? | { setting?: | "INTRADAY_MARGIN_SETTING_UNSPECIFIED" | "INTRADAY_MARGIN_SETTING_STANDARD" | "INTRADAY_MARGIN_SETTING_INTRADAY"; } |
params.setting? | | "INTRADAY_MARGIN_SETTING_UNSPECIFIED" | "INTRADAY_MARGIN_SETTING_STANDARD" | "INTRADAY_MARGIN_SETTING_INTRADAY" |
Returns
Promise<any>
submitConvertQuote()
submitConvertQuote(params: SubmitAdvTradeConvertQuoteRequest): Promise<any>;Create Convert Quote
Create a convert quote with a specified source account, target account, and amount. Convert is applicable for USDC-USD and EURC-EUR conversion.
Parameters
| Parameter | Type |
|---|---|
params | SubmitAdvTradeConvertQuoteRequest |
Returns
Promise<any>
submitOrder()
submitOrder(params: SubmitAdvTradeOrderRequest): Promise<AdvTradeSubmitOrderResponse>;Create Order
Create an order with a specified product_id (asset-pair), side (buy/sell), etc.
Parameters
| Parameter | Type |
|---|---|
params | SubmitAdvTradeOrderRequest |
Returns
Promise<AdvTradeSubmitOrderResponse>
See
updateMultiAssetCollateral()
updateMultiAssetCollateral(params?: object): Promise<{
multi_asset_collateral_enabled: boolean;
}>;Legacy INTX collateral-setting endpoint, retired on 1 October 2026. Use CBAdvancedTradeGlobalClient for current international derivatives. See Advanced Trade endpoints.
Parameters
| Parameter | Type |
|---|---|
params? | { multi_asset_collateral_enabled?: boolean; portfolio_uuid?: string; } |
params.multi_asset_collateral_enabled? | boolean |
params.portfolio_uuid? | string |
Returns
Promise<{ multi_asset_collateral_enabled: boolean; }>
updateOrder()
updateOrder(params: UpdateAdvTradeOrderRequest): Promise<AdvTradeEditOrderResponse>;Edit an order with a specified new size or price. Sends the request to POST /api/v3/brokerage/orders/edit.
Parameters
| Parameter | Type |
|---|---|
params | UpdateAdvTradeOrderRequest |
Returns
Promise<AdvTradeEditOrderResponse>
updateOrderPreview()
updateOrderPreview(params: UpdateAdvTradeOrderRequest): Promise<AdvTradeEditOrderPreviewResponse>;Edit Order Preview
Preview an edit order request with a specified new size, or new price.
Parameters
| Parameter | Type |
|---|---|
params | UpdateAdvTradeOrderRequest |
Returns
Promise<AdvTradeEditOrderPreviewResponse>
updatePortfolio()
updatePortfolio(params: object): Promise<{
portfolio: AdvTradePortfolio;
}>;Edit Portfolio
Edit a portfolio.
Parameters
| Parameter | Type |
|---|---|
params | { name: string; portfolio_uuid: string; } |
params.name | string |
params.portfolio_uuid | string |
Returns
Promise<{ portfolio: AdvTradePortfolio; }>