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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Shannon
June 28, 2019
Technology
160
0
Share
Writing human readable tests using Scala
Shannon
June 28, 2019
More Decks by Shannon
See All by Shannon
Signify Bootcamp
signify
0
280
Event Sourcing Blockchains at TokenAnalyst
signify
0
150
The Last Frontier and Beyond
signify
0
150
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
93
Making Contracts Smart, Secure and Functional with DAML and Scala
signify
0
130
Ansible and Scala Projects
signify
0
290
Automatic differentiation in Scala by Xiayun Sun
signify
0
400
Other Decks in Technology
See All in Technology
Cortex Code君、今日から内製化支援担当ね。
coco_se
0
300
AWS DevOps Agent or Kiro の使いどころを考える_20260402
masakiokuda
0
190
自分をひらくと次のチャレンジの敷居が下がる
sudoakiy
5
1.9k
今年60歳のおっさんCBになる
kentapapa
1
320
ある製造業の会社全体のAI化に1エンジニアが挑んだ話
kitami
2
200
🀄️ on swiftc
giginet
PRO
0
180
主催・運営として"場をつくる”というアウトプットのススメ
_mossann_t
0
130
サイバーフィジカル社会とは何か / What Is a Cyber-Physical Society?
ks91
PRO
0
150
2026年度新卒技術研修 サイバーエージェントのデータベース 活用事例とパフォーマンス調査入門
cyberagentdevelopers
PRO
4
5.4k
AIペネトレーションテスト・ セキュリティ検証「AgenticSec」ご紹介資料
laysakura
0
1.6k
AIドリブン開発の実践知 ― AI-DLC Unicorn Gym実施から見えた可能性と課題
mixi_engineers
PRO
0
120
Data Enabling Team立ち上げました
sansantech
PRO
0
290
Featured
See All Featured
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Leo the Paperboy
mayatellez
6
1.6k
Docker and Python
trallard
47
3.8k
Everyday Curiosity
cassininazir
0
190
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Evolving SEO for Evolving Search Engines
ryanjones
0
170
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
23k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
430
We Have a Design System, Now What?
morganepeng
55
8.1k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
160
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
760
How to build a perfect <img>
jonoalderson
1
5.3k
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!