@reactivemarkets/switchboard-api
Version:
Generated api for Reactive Markets Switchboard network
36 lines (35 loc) • 1.69 kB
TypeScript
import * as flatbuffers from 'flatbuffers';
import { SecurityType as SecurityType } from './Enum_generated.js';
export declare class Market {
bb: flatbuffers.ByteBuffer | null;
bb_pos: number;
__init(i: number, bb: flatbuffers.ByteBuffer): Market;
static getRootAsMarket(bb: flatbuffers.ByteBuffer, obj?: Market): Market;
static getSizePrefixedRootAsMarket(bb: flatbuffers.ByteBuffer, obj?: Market): Market;
/**
* Instrument symbol.
*/
symbol(): string | null;
symbol(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
/**
* Exchange or venue symbol.
*/
venue(): string | null;
venue(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
/**
* Tenor symbol, defaults to SP.
*/
tenor(): string | null;
tenor(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
/**
* Security Type. defaults to Spot.
*/
securityType(): SecurityType;
static startMarket(builder: flatbuffers.Builder): void;
static addSymbol(builder: flatbuffers.Builder, symbolOffset: flatbuffers.Offset): void;
static addVenue(builder: flatbuffers.Builder, venueOffset: flatbuffers.Offset): void;
static addTenor(builder: flatbuffers.Builder, tenorOffset: flatbuffers.Offset): void;
static addSecurityType(builder: flatbuffers.Builder, securityType: SecurityType): void;
static endMarket(builder: flatbuffers.Builder): flatbuffers.Offset;
static createMarket(builder: flatbuffers.Builder, symbolOffset: flatbuffers.Offset, venueOffset: flatbuffers.Offset, tenorOffset: flatbuffers.Offset, securityType: SecurityType): flatbuffers.Offset;
}