Consumer API

Portfolios

9 public operations generated from the current Awaken schema.

Query

getChart

Public query documented by the Awaken skill.

Schema signature
getChart(clientId: ID!, hardRefresh: Boolean, interval: HistoricalBalanceIntervalEnum!): GetChartResponse!
curl
curl https://api.awaken.tax/graphql \
-H "content-type: application/json" \
-H "x-api-key: $AWAKEN_API_KEY" \
--data '{"query":"query { getChart }"}'
Query

getClientAssets

Public query documented by the Awaken skill.

Schema signature
getClientAssets(clientId: ID!, hideSpamAssets: Boolean): ClientAssetsResponse!
curl
curl https://api.awaken.tax/graphql \
-H "content-type: application/json" \
-H "x-api-key: $AWAKEN_API_KEY" \
--data '{"query":"query { getClientAssets }"}'
Query

getClientAssetsOptions

Public query documented by the Awaken skill.

Schema signature
getClientAssetsOptions(clientId: ID!, hideSpamAssets: Boolean, limit: Int, page: Int): ClientAssetsResponse!
curl
curl https://api.awaken.tax/graphql \
-H "content-type: application/json" \
-H "x-api-key: $AWAKEN_API_KEY" \
--data '{"query":"query { getClientAssetsOptions }"}'
Query

getPortfolioNFTs

Public query documented by the Awaken skill.

Schema signature
getPortfolioNFTs(ascending: Boolean, clientId: ID!, collectionId: String, collectionsOnly: Boolean, generationId: ID, limit: Int, onlyIncludedAccountIds: [ID!], page: Int, search: String, sort: PortfolioSortColumnEnum, summaryOnly: Boolean): PortfolioNFTPage!
curl
curl https://api.awaken.tax/graphql \
-H "content-type: application/json" \
-H "x-api-key: $AWAKEN_API_KEY" \
--data '{"query":"query { getPortfolioNFTs }"}'
Query

getPortfolioV2

Public query documented by the Awaken skill.

Schema signature
getPortfolioV2( ascending: Boolean assetKey: String clientId: ID! includeCoins: Boolean includeDefi: Boolean includeNFTs: Boolean includePerps: Boolean includePredictions: Boolean includeSpam: Boolean limit: Int onlyIncludedAccountIds: [ID!] page: Int prefetch: Boolean provider: String search: String sort: PortfolioSortColumnEnum type: AssetTypeEnum useCache: Boolean ): PortfolioResponseV2!
curl
curl https://api.awaken.tax/graphql \
-H "content-type: application/json" \
-H "x-api-key: $AWAKEN_API_KEY" \
--data '{"query":"query { getPortfolioV2 }"}'
Query

getPortfolioValue

Public query documented by the Awaken skill.

Schema signature
getPortfolioValue(clientId: ID!, useCacheIfAvailable: Boolean): GetPortfolioValueResponse!
curl
curl https://api.awaken.tax/graphql \
-H "content-type: application/json" \
-H "x-api-key: $AWAKEN_API_KEY" \
--data '{"query":"query { getPortfolioValue }"}'
Query

getTaxFormReconciliationProceedsByAsset

Public query documented by the Awaken skill.

Schema signature
getTaxFormReconciliationProceedsByAsset(clientId: ID!, taxFormId: ID!): [ReconciliationProceedsByAssetRow!]!
curl
curl https://api.awaken.tax/graphql \
-H "content-type: application/json" \
-H "x-api-key: $AWAKEN_API_KEY" \
--data '{"query":"query { getTaxFormReconciliationProceedsByAsset }"}'
Mutation

updateAsset

Public mutation documented by the Awaken skill.

Schema signature
updateAsset(assetId: ID!, coingeckoId: String, contractAddress: String, description: String, iconImageUrl: String, imageUrl: String, isHidden: Boolean, isSpam: Boolean, isWorthless: Boolean, name: String, overrideCurrentValue: Float, symbol: String, type: AssetTypeEnum, useAwakenPrice: Boolean): Asset!
curl
curl https://api.awaken.tax/graphql \
-H "content-type: application/json" \
-H "x-api-key: $AWAKEN_API_KEY" \
--data '{"query":"mutation { updateAsset }"}'
Mutation

upsertNftAsset

Public mutation documented by the Awaken skill.

Schema signature
upsertNftAsset(assetKey: String!, clientId: ID!, contractAddress: String!, imageUrl: String, isHidden: Boolean, isSpam: Boolean, isWorthless: Boolean, name: String!, overrideCurrentValue: Float, provider: String!, tokenId: String, useAwakenPrice: Boolean): [Asset!]!
curl
curl https://api.awaken.tax/graphql \
-H "content-type: application/json" \
-H "x-api-key: $AWAKEN_API_KEY" \
--data '{"query":"mutation { upsertNftAsset }"}'