Building Trading Bots Using Java

  • Shekhar Varshney

Table of contents

  1. Front Matter
    Pages i-xiii
  2. Shekhar Varshney
    Pages 1-25
  3. Shekhar Varshney
    Pages 27-45
  4. Shekhar Varshney
    Pages 47-60
  5. Shekhar Varshney
    Pages 61-73
  6. Shekhar Varshney
    Pages 75-95
  7. Shekhar Varshney
    Pages 97-158
  8. Shekhar Varshney
    Pages 159-173
  9. Shekhar Varshney
    Pages 175-201
  10. Shekhar Varshney
    Pages 203-218
  11. Shekhar Varshney
    Pages 219-229
  12. Shekhar Varshney
    Pages 231-241
  13. Shekhar Varshney
    Pages 243-261
  14. Shekhar Varshney
    Pages 263-276
  15. Back Matter
    Pages 277-281

About this book


This book will take you on an exciting journey of building an automated currency trading bot from scratch. On this journey, you will learn not only about the nitty-gritty of automated trading, but with the help of numerous code samples, have a closer look at Java, Spring Framework, Event Driven programming and other open source APIs, notably Google's Guava API.

And of course, it will all be test driven with unit testing coverage. The central theme of the book is to aim to create a framework which can facilitate automated trading on most of the brokerage platforms, with minimum changes.

At the end of the journey, we should have a working trading bot, with a sample implementation using the OANDA REST API, which is free to use. Over the course of this book, you will learn the following:

  • What is a trading bot
  • What are trade-able instruments and how to apply bots to them
  • How to track and use market data events
  • How to place orders and trades
  • How to work with trade/order and account events


Java bots trading finance capital invest stocks bonds ai

Authors and affiliations

  • Shekhar Varshney
    • 1
  1. 1.GrangesSwitzerland

Bibliographic information

Industry Sectors
Finance, Business & Banking
IT & Software