OBJECT

Amount

link GraphQL Schema definition

  • type Amount {
  • # Big decimal in string format
  • 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 convertion rate used
  • timestamp: String
  • # convert the value to another currency
  • # NOTE: currently only supports asset -> fiat / assets -> assets
  • #
  • # Arguments
  • # currency:
  • in(currency: String!): Amount!
  • }