Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

coinbase-api

Package Overview
Dependencies
Maintainers
0
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coinbase-api - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

11

dist/cjs/CBPrimeClient.d.ts
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;

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc