coinbase-api
Advanced tools
Comparing version 1.0.2 to 1.0.3
import { AxiosRequestConfig } from 'axios'; | ||
import { BaseRestClient } from './lib/BaseRestClient.js'; | ||
import { RestClientOptions, RestClientType } from './lib/requestUtils.js'; | ||
import { CreatePrimeAddressBookEntryRequest, CreatePrimeConversionRequest, CreatePrimePortfolioAllocationsRequest, CreatePrimePortfolioNetAllocationsRequest, CreatePrimeTransferRequest, CreatePrimeWalletRequest, CreatePrimeWithdrawalRequest, GetPrimeActivitiesRequest, GetPrimeAddressBookRequest, GetPrimeInvoicesRequest, GetPrimeOpenOrdersRequest, GetPrimeOrderFillsRequest, GetPrimeOrderPreviewRequest, GetPrimePortfolioAllocationsRequest, GetPrimePortfolioOrdersRequest, GetPrimePortfolioProductsRequest, GetPrimePortfolioTransactionsRequest, GetPrimePortfolioUsersRequest, GetPrimePortfolioWalletsRequest, GetPrimeUsersRequest, GetPrimeWalletDepositInstructionsRequest, GetPrimeWalletTransactionsRequest, GetPrimeWeb3WalletBalancesRequest, SubmitPrimeOrderRequest } from './types/request/coinbase-prime.js'; | ||
import { CreatePrimeAddressBookEntryRequest, CreatePrimeConversionRequest, CreatePrimePortfolioAllocationsRequest, CreatePrimePortfolioNetAllocationsRequest, CreatePrimeTransferRequest, CreatePrimeWalletRequest, CreatePrimeWithdrawalRequest, GetPrimeActivitiesRequest, GetPrimeAddressBookRequest, GetPrimeInvoicesRequest, GetPrimeOpenOrdersRequest, GetPrimeOrderFillsRequest, GetPrimeOrderPreviewRequest, GetPrimePortfolioAllocationsRequest, GetPrimePortfolioFillsRequest, GetPrimePortfolioOrdersRequest, GetPrimePortfolioProductsRequest, GetPrimePortfolioTransactionsRequest, GetPrimePortfolioUsersRequest, GetPrimePortfolioWalletsRequest, GetPrimeUsersRequest, GetPrimeWalletDepositInstructionsRequest, GetPrimeWalletTransactionsRequest, GetPrimeWeb3WalletBalancesRequest, SubmitPrimeOrderRequest } from './types/request/coinbase-prime.js'; | ||
/** | ||
@@ -229,2 +229,11 @@ * REST client for Coinbase Prime API: | ||
/** | ||
* List Portfolio Fills | ||
* | ||
* Retrieve fills on a given portfolio. | ||
* | ||
* Note: This endpoint requires a start_date and returns a payload with a default | ||
* limit of 100 if not specified. The maximum allowed limit is 3000. | ||
*/ | ||
getPortfolioFills(params: GetPrimePortfolioFillsRequest): Promise<any>; | ||
/** | ||
* List Open Orders | ||
@@ -231,0 +240,0 @@ * |
@@ -266,2 +266,14 @@ "use strict"; | ||
/** | ||
* List Portfolio Fills | ||
* | ||
* Retrieve fills on a given portfolio. | ||
* | ||
* Note: This endpoint requires a start_date and returns a payload with a default | ||
* limit of 100 if not specified. The maximum allowed limit is 3000. | ||
*/ | ||
getPortfolioFills(params) { | ||
const { portfolio_id, ...query } = params; | ||
return this.getPrivate(`/v1/portfolios/${portfolio_id}/fills`, query); | ||
} | ||
/** | ||
* List Open Orders | ||
@@ -268,0 +280,0 @@ * |
@@ -50,2 +50,3 @@ /** | ||
close_only?: boolean; | ||
algo_strategy: boolean; | ||
} | ||
@@ -52,0 +53,0 @@ export interface GetINTXOpenOrdersRequest { |
@@ -145,2 +145,10 @@ /** | ||
*/ | ||
export interface GetPrimePortfolioFillsRequest { | ||
portfolio_id: string; | ||
start_date: string; | ||
end_date?: string; | ||
limit?: number; | ||
cursor?: string; | ||
sort_direction?: 'DESC' | 'ASC'; | ||
} | ||
export interface GetPrimeOpenOrdersRequest { | ||
@@ -147,0 +155,0 @@ portfolio_id: string; |
import { AxiosRequestConfig } from 'axios'; | ||
import { BaseRestClient } from './lib/BaseRestClient.js'; | ||
import { RestClientOptions, RestClientType } from './lib/requestUtils.js'; | ||
import { CreatePrimeAddressBookEntryRequest, CreatePrimeConversionRequest, CreatePrimePortfolioAllocationsRequest, CreatePrimePortfolioNetAllocationsRequest, CreatePrimeTransferRequest, CreatePrimeWalletRequest, CreatePrimeWithdrawalRequest, GetPrimeActivitiesRequest, GetPrimeAddressBookRequest, GetPrimeInvoicesRequest, GetPrimeOpenOrdersRequest, GetPrimeOrderFillsRequest, GetPrimeOrderPreviewRequest, GetPrimePortfolioAllocationsRequest, GetPrimePortfolioOrdersRequest, GetPrimePortfolioProductsRequest, GetPrimePortfolioTransactionsRequest, GetPrimePortfolioUsersRequest, GetPrimePortfolioWalletsRequest, GetPrimeUsersRequest, GetPrimeWalletDepositInstructionsRequest, GetPrimeWalletTransactionsRequest, GetPrimeWeb3WalletBalancesRequest, SubmitPrimeOrderRequest } from './types/request/coinbase-prime.js'; | ||
import { CreatePrimeAddressBookEntryRequest, CreatePrimeConversionRequest, CreatePrimePortfolioAllocationsRequest, CreatePrimePortfolioNetAllocationsRequest, CreatePrimeTransferRequest, CreatePrimeWalletRequest, CreatePrimeWithdrawalRequest, GetPrimeActivitiesRequest, GetPrimeAddressBookRequest, GetPrimeInvoicesRequest, GetPrimeOpenOrdersRequest, GetPrimeOrderFillsRequest, GetPrimeOrderPreviewRequest, GetPrimePortfolioAllocationsRequest, GetPrimePortfolioFillsRequest, GetPrimePortfolioOrdersRequest, GetPrimePortfolioProductsRequest, GetPrimePortfolioTransactionsRequest, GetPrimePortfolioUsersRequest, GetPrimePortfolioWalletsRequest, GetPrimeUsersRequest, GetPrimeWalletDepositInstructionsRequest, GetPrimeWalletTransactionsRequest, GetPrimeWeb3WalletBalancesRequest, SubmitPrimeOrderRequest } from './types/request/coinbase-prime.js'; | ||
/** | ||
@@ -229,2 +229,11 @@ * REST client for Coinbase Prime API: | ||
/** | ||
* List Portfolio Fills | ||
* | ||
* Retrieve fills on a given portfolio. | ||
* | ||
* Note: This endpoint requires a start_date and returns a payload with a default | ||
* limit of 100 if not specified. The maximum allowed limit is 3000. | ||
*/ | ||
getPortfolioFills(params: GetPrimePortfolioFillsRequest): Promise<any>; | ||
/** | ||
* List Open Orders | ||
@@ -231,0 +240,0 @@ * |
@@ -263,2 +263,14 @@ import { BaseRestClient } from './lib/BaseRestClient.js'; | ||
/** | ||
* List Portfolio Fills | ||
* | ||
* Retrieve fills on a given portfolio. | ||
* | ||
* Note: This endpoint requires a start_date and returns a payload with a default | ||
* limit of 100 if not specified. The maximum allowed limit is 3000. | ||
*/ | ||
getPortfolioFills(params) { | ||
const { portfolio_id, ...query } = params; | ||
return this.getPrivate(`/v1/portfolios/${portfolio_id}/fills`, query); | ||
} | ||
/** | ||
* List Open Orders | ||
@@ -265,0 +277,0 @@ * |
@@ -50,2 +50,3 @@ /** | ||
close_only?: boolean; | ||
algo_strategy: boolean; | ||
} | ||
@@ -52,0 +53,0 @@ export interface GetINTXOpenOrdersRequest { |
@@ -145,2 +145,10 @@ /** | ||
*/ | ||
export interface GetPrimePortfolioFillsRequest { | ||
portfolio_id: string; | ||
start_date: string; | ||
end_date?: string; | ||
limit?: number; | ||
cursor?: string; | ||
sort_direction?: 'DESC' | 'ASC'; | ||
} | ||
export interface GetPrimeOpenOrdersRequest { | ||
@@ -147,0 +155,0 @@ portfolio_id: string; |
{ | ||
"name": "coinbase-api", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Node.js SDK for Coinbase's REST APIs and WebSockets, with TypeScript & strong end to end tests.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
925740
21883