Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

serum-vial

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serum-vial - npm Package Compare versions

Comparing version 0.8.5 to 0.9.0

4

dist/consts.d.ts
export declare const OPS: readonly ["subscribe", "unsubscribe"];
export declare const CHANNELS: readonly ["level3", "level2", "level1", "trades"];
declare const TRADES_MESSAGE_TYPES: readonly ["recent_trades", "trade"];
declare const LEVEL1_MESSAGE_TYPES: readonly ["recent_trades", "trade", "quote"];
declare const LEVEL2_MESSAGE_TYPES: readonly ["l2snapshot", "l2update", "recent_trades", "trade"];
declare const LEVEL1_MESSAGE_TYPES: readonly ["quote"];
declare const LEVEL2_MESSAGE_TYPES: readonly ["l2snapshot", "l2update"];
declare const LEVEL3_MESSAGE_TYPES: readonly ["l3snapshot", "open", "fill", "change", "done"];

@@ -7,0 +7,0 @@ export declare const MESSAGE_TYPES_PER_CHANNEL: {

@@ -7,4 +7,4 @@ "use strict";

const TRADES_MESSAGE_TYPES = ['recent_trades', 'trade'];
const LEVEL1_MESSAGE_TYPES = ['recent_trades', 'trade', 'quote'];
const LEVEL2_MESSAGE_TYPES = ['l2snapshot', 'l2update', 'recent_trades', 'trade'];
const LEVEL1_MESSAGE_TYPES = ['quote'];
const LEVEL2_MESSAGE_TYPES = ['l2snapshot', 'l2update'];
const LEVEL3_MESSAGE_TYPES = ['l3snapshot', 'open', 'fill', 'change', 'done'];

@@ -11,0 +11,0 @@ exports.MESSAGE_TYPES_PER_CHANNEL = {

{
"name": "serum-vial",
"version": "0.8.5",
"version": "0.9.0",
"engines": {

@@ -5,0 +5,0 @@ "node": ">=15"

<img src="https://raw.githubusercontent.com/tardis-dev/serum-vial/master/logo.svg">
# serum-vial: real-time WS market data API for Serum
[![Version](https://img.shields.io/npm/v/serum-vial.svg?color=05aac5)](https://www.npmjs.org/package/serum-vial)
[![Docker version](https://img.shields.io/docker/v/tardisdev/serum-vial/latest?label=Docker&color=05aac5)](https://hub.docker.com/r/tardisdev/serum-vial)
# serum-vial: real-time WS market data API for Serum DEX
<br/>

@@ -12,3 +12,3 @@

We all know that Serum DEX is awesome, but since it's a new ecosystem, some tooling around it may not be so convenient especially from centralized exchanges APIs users perspective. Serum-vial which is a real-time WebSocket market data API server for Serum DEX hopes to alleviate some of those issues by offering:
We all know that Serum DEX is awesome, but since it's a new ecosystem, tooling around it may not be so convenient especially from centralized exchanges APIs users perspective. Serum-vial which is a real-time WebSocket market data API server for Serum DEX hopes to alleviate some of those issues by offering:

@@ -19,5 +19,5 @@ - **familiar experience for centralized exchanges APIs users**

- **incremental L2 order book updates** - instead of decoding Serum market `asks` and `bids` accounts for each account change in order to detect order book changes, receive [initial L2 snapshot](#l2snapshot) and [incremental updates](#l2update) as JSON messages real-time over WebSocket connection
- **incremental L2 order book updates** - instead of decoding Serum market `asks` and `bids` accounts for each account change in order to detect order book updates, receive [initial L2 snapshot](#l2snapshot) and [incremental updates](#l2update) as JSON messages real-time over WebSocket connection
- **tick-by-tick trades** - instead of decoding `eventQueue` account data which can be large (>1MB) and in practice it's hard to consume real-time directly from Solana RPC node due to it's size, receive individual [`trade`](#trade) messages real-time over WebSocket connection
- **tick-by-tick trades** - instead of decoding `eventQueue` account data which is quite large (> 1MB) and in practice it's hard to consume real-time directly from Solana RPC node due to it's size, receive individual [`trade`](#trade) messages real-time over WebSocket connection

@@ -201,3 +201,3 @@ - **real-time L3 data** - receive the most granular updates on individual order level: [`open`](#open), [`change`](#change), [`fill`](#fill) and [`done`](#done) messages for every order that Serum DEX processes

op: 'subscribe',
channel: 'level2',
channel: 'trades',
markets: ['BTC/USDC']

@@ -299,4 +299,2 @@ }

- [`recent_trades`](#recent_trades)
- [`trade`](#trade)
- [`quote`](#quote)

@@ -308,4 +306,2 @@

- [`l2update`](#l2update)
- [`recent_trades`](#recent_trades)
- [`trade`](#trade)

@@ -878,3 +874,3 @@ - `level3`

![architecture diagram](https://user-images.githubusercontent.com/51779538/112196249-20567d00-8c0b-11eb-86c9-409c1de75c41.png)
![architecture diagram](https://user-images.githubusercontent.com/51779538/112750634-f4037d80-8fc9-11eb-8ce3-a0798b6790e8.png)

@@ -881,0 +877,0 @@ <br/>

@@ -5,4 +5,4 @@ export const OPS = ['subscribe', 'unsubscribe'] as const

const TRADES_MESSAGE_TYPES = ['recent_trades', 'trade'] as const
const LEVEL1_MESSAGE_TYPES = ['recent_trades', 'trade', 'quote'] as const
const LEVEL2_MESSAGE_TYPES = ['l2snapshot', 'l2update', 'recent_trades', 'trade'] as const
const LEVEL1_MESSAGE_TYPES = ['quote'] as const
const LEVEL2_MESSAGE_TYPES = ['l2snapshot', 'l2update'] as const
const LEVEL3_MESSAGE_TYPES = ['l3snapshot', 'open', 'fill', 'change', 'done'] as const

@@ -9,0 +9,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc