Represents quotation of the relative value of asset against another asset. Similar to 'currency pair' used to determine value of currencies.

For example: 1 EUR / 1.25 USD where: 1 EUR is an asset specified as a base 1.25 USD us an asset specified as a qute

can determine value of EUR against USD.

### Hierarchy

- Price

## Index

### Constructors

- constructor

### Properties

- base
- quote

### Methods

- convert
- toString
- from

## Constructors

### constructor

- new Price(base: Asset, quote: Asset): Price

- - Defined in steem/asset.ts:192

  #### Parameters

  - ##### base: Asset

    represents a value of the price object to be expressed relatively to quote asset. Cannot have amount == 0 if you want to build valid price.

  - ##### quote: Asset

    represents an relative asset. Cannot have amount == 0, otherwise asertion fail.

    Both base and quote shall have different symbol defined.

  #### Returns Price

## Properties

### base

base: Asset

- Defined in steem/asset.ts:202

represents a value of the price object to be expressed relatively to quote asset. Cannot have amount == 0 if you want to build valid price.

### quote

quote: Asset

- Defined in steem/asset.ts:202

represents an relative asset. Cannot have amount == 0, otherwise asertion fail.

Both base and quote shall have different symbol defined.

## Methods

### convert

- convert(asset: Asset): Asset

- - Defined in steem/asset.ts:218

  Return a new Asset with the price converted between the symbols in the pair. Throws if passed asset symbol is not base or quote.

  #### Parameters

  - ##### asset: Asset

  #### Returns Asset

### toString

- toString(): string

- - Defined in steem/asset.ts:210

  Return a string representation of this price pair.

  #### Returns string

### Static from

- from(value: Price | object): Price

- - Defined in steem/asset.ts:186

  Convenience to create new Price.

  #### Parameters

  - ##### value: Price | object

  #### Returns Price

Generated using TypeDoc