Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Writing human readable tests using Scala
Search
Shannon
June 28, 2019
Technology
0
150
Writing human readable tests using Scala
Shannon
June 28, 2019
Tweet
Share
More Decks by Shannon
See All by Shannon
Signify Bootcamp
signify
0
250
Event Sourcing Blockchains at TokenAnalyst
signify
0
140
The Last Frontier and Beyond
signify
0
130
Jon Pither
signify
0
250
How to write like Cats
signify
0
250
Kubernetes as a Streaming Data Platform with Kafka, Spark, and Scala
signify
0
82
Making Contracts Smart, Secure and Functional with DAML and Scala
signify
0
110
Ansible and Scala Projects
signify
0
280
Automatic differentiation in Scala by Xiayun Sun
signify
0
380
Other Decks in Technology
See All in Technology
大「個人開発サービス」時代に僕たちはどう生きるか
sotarok
20
10k
BPaaSにおける人と協働する前提のAIエージェント-AWS登壇資料
kentarofujii
0
140
[ JAWS-UG 東京 CommunityBuilders Night #2 ]SlackとAmazon Q Developerで 運用効率化を模索する
sh_fk2
3
430
RSCの時代にReactとフレームワークの境界を探る
uhyo
10
3.4k
なぜスクラムはこうなったのか?歴史が教えてくれたこと/Shall we explore the roots of Scrum
sanogemaru
5
1.6k
Aurora DSQLはサーバーレスアーキテクチャの常識を変えるのか
iwatatomoya
1
1k
slog.Handlerのよくある実装ミス
sakiengineer
4
140
Webブラウザ向け動画配信プレイヤーの 大規模リプレイスから得た知見と学び
yud0uhu
0
230
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
9
73k
機械学習を扱うプラットフォーム開発と運用事例
lycorptech_jp
PRO
0
250
JTCにおける内製×スクラム開発への挑戦〜内製化率95%達成の舞台裏/JTC's challenge of in-house development with Scrum
aeonpeople
0
230
ZOZOマッチのアーキテクチャと技術構成
zozotech
PRO
4
1.6k
Featured
See All Featured
Java REST API Framework Comparison - PWX 2021
mraible
33
8.8k
Fireside Chat
paigeccino
39
3.6k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
36
2.5k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Designing Experiences People Love
moore
142
24k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.5k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
112
20k
Scaling GitHub
holman
463
140k
Build The Right Thing And Hit Your Dates
maggiecrowley
37
2.9k
How STYLIGHT went responsive
nonsquared
100
5.8k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Transcript
Cryptocurrency algo-trading testing in Scala by Bruno Bonanno
A set of green tests doesn’t necessarily means that the
software does what is supposed to.
Hello! I’m Bruno Bonanno Passionate developer, open source contributor, TDD
evangelist and creator of mockito-scala.
Agenda Market book Introduction to an order book & OMS
Our demouse case Challenges Live coding Q&A
Market book BIDS ASKS
Introduction to an OMS Order Management System Exchange 1 WS
API Exchange n REST API Exchange 1 REST API Exchange n FIX API . . . . . . Orders Orders Market Reports Market Data
OMS-123: Making money with arbitrage ASK: 1 BTC = 7900
USD Get 1.27 BTC ASK: 1 ETH = 0.03 BTC Get 42.33 ETH BID: 1 ETH = 250 USD Get 10582.5 USD Start with 10000 USD
Challenges • Integration: Different APIs • Exchange reference data: min
quantity, price rounding… • Trading logic: Do not buy 100000 BTC, Fills / Partial fills / Rejection… • External problems: Network failures, Market shutting down...
Glossary • Ask: Price at which we buy • Bid:
Price at which we sell • Order: What we want to execute in the market (bid/ask, quantity, currency pair, etc) • Market Report: What the market actually executed out of our Order (execution confirmation, rejection, etc)
None
Q&A
https://github.com/bbonanno/crypto-algo-trading-demo-test Thank you!