
Product
Reachability for Ruby Now in Beta
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.
big-order-book
Advanced tools
An efficient order book which supports market and limit orders with fast insertion and search - Works with the BigInt type.
An efficient order book which supports market and limit orders with fast insertion and search - Works with the BigInt type.
This order book was designed with decentralized exchanges (DEXs) in mind.
const BigOrderBook = require('big-order-book');
let orderBook = new BigOrderBook();
orderBook.add({
id: `ask0`,
type: 'limit',
price: .5,
targetChain: 'lsk',
targetWalletAddress: '22245678912345678222L',
senderId: '11111111111222222222L',
side: 'ask',
size: 100
});
let result = orderBook.add({
id: `bid0`,
type: 'limit',
price: .5,
targetChain: 'clsk',
targetWalletAddress: '22245678912345678222L',
senderId: '11111111111222222222L',
side: 'bid',
value: 10
});
console.log(result);
{ taker:
{ id: 'bid0',
type: 'limit',
price: 0.5,
targetChain: 'clsk',
targetWalletAddress: '22245678912345678222L',
senderId: '11111111111222222222L',
side: 'bid',
value: 10,
valueRemaining: 0,
lastSizeTaken: 0,
lastValueTaken: 0 },
makers:
[ { id: 'ask0',
type: 'limit',
price: 0.5,
targetChain: 'lsk',
targetWalletAddress: '22245678912345678222L',
senderId: '11111111111222222222L',
side: 'ask',
size: 100,
sizeRemaining: 80,
lastSizeTaken: 20,
lastValueTaken: 10 } ],
takeSize: 20,
takeValue: 10 }
npm test
Licensed under GPLv3: http://www.gnu.org/licenses/gpl-3.0.html
FAQs
An efficient order book which supports market and limit orders with fast insertion and search - Works with the BigInt type.
We found that big-order-book demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.