yajsapi - JavaScript high-level API
Yagna Contributor Guide

Class: Market

yajsapi / Exports / rest/market / Market

Class: Market

rest/market.Market

Hierarchy

  • Market

Table of contents

Constructors

Properties

Methods

Constructors

constructor

  • new Market(cfg: Configuration): Market

Parameters:

Name

Type

cfg

Configuration

Returns: Market

Defined in: yajsapi/rest/market.ts:267

Properties

_api

Private _api: RequestorApi

Defined in: yajsapi/rest/market.ts:267

Methods

subscribe

subscribe(props: {}, constraints: string): Promise<Subscription>

Parameters:

Name

Type

props

{}

constraints

string

Returns: Promise<Subscription>

Defined in: yajsapi/rest/market.ts:272

subscriptions

subscriptions(): AsyncGenerator<Subscription, any, unknown>

Returns: AsyncGenerator<Subscription, any, unknown>

Defined in: yajsapi/rest/market.ts:290