KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
orderbook
★ 8
Open GitHub ↗
Type safe limit order book
Download README (.md)
Explore Similar Repositories
newtab-bookmarks
:
PROJECT ABANDONED IN FAVOUR OF:
diepio
:
Diep.io autoplay bot written in python
wepy-com-selectab
:
(Deprecated)(不再维护)选择数量或者其他单选操作,可用于座位选择。wepy组件。
jwt-express-angular
:
Minimal setup for jwt with express and Angular (ngx)
python
:
No description available.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
orderbook
?
Download (.md)
# Limit order book using `safe-money` <img src="https://travis-ci.com/runeksvendsen/orderbook.svg?branch=master"> This library implements a limit order book using the `safe-money` library. It supports two types of queries on order books: 1. **Sell/buy per quote/count currency**: e.g. for the BTCUSD market, find out how many BTC you can purchase for a given amount of USD, or how many BTC you need to sell in order to earn a given USD amount 2. **Sell/buy per [slippage](https://en.wikipedia.org/wiki/Slippage_(finance))**: find out how much you can buy/sell while moving the market price up/down by the specified percentage ### About the implementation An order book is currently represented as follows: ```haskell data OrderBook (venue :: Symbol) (base :: Symbol) (quote :: Symbol) = OrderBook { obBids :: Vector (Order base quote) , obAsks :: Vector (Order base quote) } ``` that is, as a `Vector` of buy orders (bids) and sell orders (asks). The `OrderBook` type is parametized over -- using `Symbol`s, ie. type-level strings -- the **venue** (exchange) in question, as well as the **base** currency (the currency in which order *amounts* are quoted) and the **quote** currency (the currency in which order *prices* are quoted).