@altangent/lib-coinbase-prime
Advanced tools
Comparing version 0.13.1 to 0.13.2
@@ -11,5 +11,22 @@ /// <reference types="node" /> | ||
listPortfolioBalances(portfolio_id: string): Promise<Results.ListBalances>; | ||
listPortfolioTransactions(portfolio_id: string): Promise<Results.ListTransactions>; | ||
listPortfolioTransactions(portfolio_id: string, params?: Partial<{ | ||
symbols: string; | ||
types: string[]; | ||
start_time: string; | ||
end_time: string; | ||
cursor: string; | ||
limit: number; | ||
sort_direction: string; | ||
}>): Promise<Results.ListTransactions>; | ||
listPortfolioWallets(portfolio_id: string): Promise<Results.ListWallets>; | ||
listPortfolioOrders(portfolio_id: string): Promise<Results.ListOrders>; | ||
listPortfolioOrders(portfolio_id: string, params?: Partial<{ | ||
product_ids: string[]; | ||
order_type: string; | ||
cursor: string; | ||
limit: string; | ||
sort_direction: string; | ||
start_date: string; | ||
order_side: string; | ||
end_date: string; | ||
}>): Promise<Results.ListOrders>; | ||
request<T>(path: string, query?: any): Promise<T>; | ||
@@ -16,0 +33,0 @@ protected _cleanOptions(options: any): any; |
@@ -25,4 +25,4 @@ "use strict"; | ||
} | ||
async listPortfolioTransactions(portfolio_id) { | ||
return this.request(`/v1/portfolios/${portfolio_id}/transactions`); | ||
async listPortfolioTransactions(portfolio_id, params) { | ||
return this.request(`/v1/portfolios/${portfolio_id}/transactions`, params); | ||
} | ||
@@ -32,4 +32,4 @@ async listPortfolioWallets(portfolio_id) { | ||
} | ||
async listPortfolioOrders(portfolio_id) { | ||
return this.request(`/v1/portfolios/${portfolio_id}/orders`); | ||
async listPortfolioOrders(portfolio_id, params) { | ||
return this.request(`/v1/portfolios/${portfolio_id}/orders`, params); | ||
} | ||
@@ -44,3 +44,3 @@ request(path, query) { | ||
const body = ""; | ||
const sig = this._sign(this._createSigData(timestamp, method, pathQuery, body), signingKey); | ||
const sig = this._sign(this._createSigData(timestamp, method, path, body), signingKey); | ||
const headers = { | ||
@@ -47,0 +47,0 @@ "X-CB-ACCESS-KEY": key, |
@@ -26,4 +26,13 @@ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ | ||
portfolio_id: string, | ||
params?: Partial<{ | ||
symbols: string; | ||
types: string[]; | ||
start_time: string; | ||
end_time: string; | ||
cursor: string; | ||
limit: number; | ||
sort_direction: string; | ||
}>, | ||
): Promise<Results.ListTransactions> { | ||
return this.request(`/v1/portfolios/${portfolio_id}/transactions`); | ||
return this.request(`/v1/portfolios/${portfolio_id}/transactions`, params); | ||
} | ||
@@ -35,4 +44,16 @@ | ||
public async listPortfolioOrders(portfolio_id: string): Promise<Results.ListOrders> { | ||
return this.request(`/v1/portfolios/${portfolio_id}/orders`); | ||
public async listPortfolioOrders( | ||
portfolio_id: string, | ||
params?: Partial<{ | ||
product_ids: string[]; | ||
order_type: string; | ||
cursor: string; | ||
limit: string; | ||
sort_direction: string; | ||
start_date: string; | ||
order_side: string; | ||
end_date: string; | ||
}>, | ||
): Promise<Results.ListOrders> { | ||
return this.request(`/v1/portfolios/${portfolio_id}/orders`, params); | ||
} | ||
@@ -50,3 +71,3 @@ | ||
const body = ""; | ||
const sig = this._sign(this._createSigData(timestamp, method, pathQuery, body), signingKey); | ||
const sig = this._sign(this._createSigData(timestamp, method, path, body), signingKey); | ||
@@ -53,0 +74,0 @@ const headers = { |
{ | ||
"name": "@altangent/lib-coinbase-prime", | ||
"version": "0.13.1", | ||
"version": "0.13.2", | ||
"description": "Coinbase Prime API client", | ||
@@ -27,3 +27,3 @@ "author": "Brian Mancini <bmancini@gmail.com>", | ||
"dependencies": { | ||
"@altangent/lib-http": "^0.13.1" | ||
"@altangent/lib-http": "^0.13.2" | ||
}, | ||
@@ -33,3 +33,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "5189e326fe5b556c6b93a4c3a1318934461d54ef" | ||
"gitHead": "103ff18d2f0d72cd33d09a4b1942c222eb1f348a" | ||
} |
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
28506
583
Updated@altangent/lib-http@^0.13.2