Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

<a name="6.3.5"></a>
## [6.3.5](https://github.com/nash-io/api-client-typescript/compare/v6.3.3...v6.3.5) (2021-10-07)



<a name="6.3.3"></a>
## [6.3.3](https://github.com/nash-io/api-client-typescript/compare/v6.3.1...v6.3.3) (2021-09-27)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@neon-exchange/api-client-typescript",
"version": "6.3.3",
"version": "6.3.5",
"description": "Official TypeScript client for interacting with the Nash exchange",
"main": "build/main/index.js",
"typings": "build/main/index.d.ts",
Expand Down
3 changes: 3 additions & 0 deletions src/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1575,6 +1575,9 @@ export class Client {
fiatSymbol,
period
}: GetAccountPortfolioParams = {}): Promise<AccountPortfolio> {
console.warn(
'getAccountPortfolio is deprecated. Please use listAccountBalances'
)
const result = await this.gql.query<{
getAccountPortfolio: AccountPortfolio
}>({
Expand Down
6 changes: 6 additions & 0 deletions src/queries/account/fragments/accountBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ export const ACCOUNT_BALANCE_FRAGMENT = gql`
personal {
...currencyAmountFields
}
staked {
...currencyAmountFields
}
total {
...currencyAmountFields
}
asset {
...assetFields
}
Expand Down
2 changes: 2 additions & 0 deletions src/types/balance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ export interface AccountBalance {
inOrders: CurrencyAmount
pending: CurrencyAmount
personal: CurrencyAmount
staked: CurrencyAmount
total: CurrencyAmount
depositAddress: string
}