OBJECT

Amount

link GraphQL Schema definition

  • type Amount {
  • # Big decimal in string format or "NaN" string value. "NaN" string indicates that
  • # TrustVault failed to get amount value
  • value: String
  • # could be the asset symbol or fiat currency
  • currency: String!
  • # Timestamp represents how stale the data is
  • # NOTE:
  • # timestamp is either the timestamp when the amount of the asset is queried
  • # or if converted from another currency the timestamp of the conversion rate used
  • timestamp: String
  • # convert the value to another currency
  • # NOTE: currently only supports asset -> fiat / assets -> assets
  • #
  • # Arguments
  • # currency:
  • in(currency: String!): Amount!
  • }