0.3.3 • Published 6 months ago

@types/parity-poe v0.3.3

Weekly downloads
22
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/parity-poe

Summary

This package contains type definitions for Parity POE (https://github.com/paritytrading/node-parity-poe).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parity-poe.

index.d.ts

// Type definitions for Parity POE 0.3
// Project: https://github.com/paritytrading/node-parity-poe
// Definitions by: Leo Vujanić <https://github.com/leovujanic>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4

/// <reference types="node" />

/**
 * Declares Parity POE message structure
 * Full reference can be found here https://github.com/paritytrading/parity/blob/master/libraries/net/doc/POE.md
 */
export interface POEMessage {
    messageType: string;
    orderId?: string | undefined;
    timestamp?: number | undefined;
    canceledQuantity?: number | undefined;
    reason?: string | undefined;
    liquidityFlag?: string | undefined;
    matchNumber?: number | undefined;
    side?: string | undefined;
    instrument?: string | undefined;
    quantity?: number | undefined;
    price?: number | undefined;
}

export function formatInbound(message: POEMessage): Buffer;

export function parseInbound(buffer: Buffer): POEMessage;

export function formatOutbound(message: POEMessage): Buffer;

export function parseOutbound(buffer: Buffer): POEMessage;

Additional Details

  • Last updated: Thu, 08 Jul 2021 20:19:17 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Leo Vujanić.

0.3.2

7 months ago

0.3.3

6 months ago

0.3.1

3 years ago

0.3.0

6 years ago