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
260
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
120
Ansible and Scala Projects
signify
0
280
Automatic differentiation in Scala by Xiayun Sun
signify
0
390
Other Decks in Technology
See All in Technology
フライトコントローラPX4の中身(制御器)を覗いてみた
santana_hammer
1
140
マイクロリブート ~ACEマインドセットで実現するアジャイル~
sony
0
220
バグと向き合い、仕組みで防ぐ
____rina____
0
240
仕様駆動 x Codex で 超効率開発
ismk
2
1.3k
自己的售票系統自己做!
eddie
0
420
AI時代に必要なデータプラットフォームの要件とは by @Kazaneya_PR / 20251107
kazaneya
PRO
4
960
Sansan BIが実践する AI on BI とセマンティックレイヤー / data_summit_findy
sansan_randd
0
130
旧から新へ: 大規模ウェブクローラの Perl から Go への移行 / YAPC::Fukuoka 2025
motemen
1
500
エンジニアに定年なし! AI時代にキャリアをReboot — 学び続けて未来を創る
junjikoide
0
170
ソフトウェアテストのAI活用_ver1.50
fumisuke
0
300
Claude Code 10連ガチャ
uhyo
3
650
プログラミング言語を書く前に日本語を書く── AI 時代に求められる「言葉で考える」力/登壇資料(井田 献一朗)
hacobu
PRO
0
140
Featured
See All Featured
Optimizing for Happiness
mojombo
379
70k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.1k
Unsuck your backbone
ammeep
671
58k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
9
970
GitHub's CSS Performance
jonrohan
1032
470k
Being A Developer After 40
akosma
91
590k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1k
Making Projects Easy
brettharned
120
6.4k
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
Gamification - CAS2011
davidbonilla
81
5.5k
Building Flexible Design Systems
yeseniaperezcruz
329
39k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
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!