Building Trading Bots Using Java by Shekhar Varshney

By Shekhar Varshney

Build an automatic forex bot from scratch with java. during this e-book, you are going to find out about the nitty-gritty of computerized buying and selling and feature a better examine Java, the Spring Framework, event-driven programming, and different open resource APIs, particularly Google's Guava API. and naturally, improvement will all be test-driven with unit checking out assurance.

The principal subject matter of Building buying and selling Bots utilizing Java is to create a framework which could facilitate automatic buying and selling on lots of the brokerage structures, with minimal adjustments. on the finish of the adventure, you've gotten a operating buying and selling bot, with a pattern implementation utilizing the OANDA leisure API, that is loose to use.

What you will Learn

  • Find out approximately buying and selling bots
  • Discover the main points of tradeable tools and follow bots to them
  • Track and use marketplace info events
  • Place orders and trades
  • Work with trade/order and account events

Who This ebook Is For

Experienced programmers new to bots and different algorithmic buying and selling and finance techniques.

Show description

Read or Download Building Trading Bots Using Java PDF

Best java books

Java 2 Enterprise Edition Bible

Welcome to Java 2 firm variation Bible. This e-book, that's a stick to as much as Java 2 Bible, is for readers who desire to understand extra concerning the firm industry. company programming is a scorching subject nowadays, as an increasing number of businesses come to a decision they wish an internet presence to enrich their current bricks?

Component Development for the Java Platform

If you are occupied with writing elements in Java, this ebook specializes in the part prone you want to grasp. DevelopMentor leader Scientist Stuart Halloway offers extraordinary, in-depth assurance of writing, deploying, and holding Java parts. Halloway starts by way of exhibiting find out how to use, keep an eye on, and troubleshoot parts.

Java Programming: From Problem Analysis to Program Design, 4th Edition

Designed for the start programming scholar, this e-book will inspire novices whereas instructing basic programming innovations. in accordance with years of lecture room checking out, this fourth version of JAVA™ PROGRAMMING: FROM challenge research TO application layout methods programming with a spotlight on transparent causes and perform - severe elements in studying the Java language.

Tuscany SCA in Action

Tuscany SCA in motion is a finished, hands-on advisor for constructing technology-agnostic, extensible functions. through following a travel-booking instance during the ebook, you are going to the way to version, compose, installation, and deal with purposes utilizing SCA. The publication emphasizes sensible matters, like successfully utilizing Tuscany's supported bindings and protocols and integrating with typical applied sciences like Spring and JMS to save lots of improvement time and price.

Additional info for Building Trading Bots Using Java

Sample text

HashCode()); result = prime * result + ((instrumentId == null) ? instrumentPairInterestRate = instrumentPairInterestRate; } @Override public String toString() { return "TradeableInstrument [instrument=" + instrument + ", description=" + description + ", instrumentId=" + instrume\ ntId + ", pip=" + pip + ", instrumentPairInterestRate=" + instrumentPairInterestRate + "]"; } public String getInstrument() { return instrument; } 49 Chapter 3 ■ Tradeable Instruments 113 114 115 116 public double getPip() { return pip; } } The TradeableInstrument definition is fairly straightforward but has a generic T parameter, to cater to different types of instrument IDs on different brokerage platforms.

The instrumentPairInterestRate is an interesting attribute that may or may not be available on all platforms. As seen in its definition, it can capture some important information like what the charges for a given instrument are likely to be, both in the cases of buying and selling it. The finance charge,2 in brief, is an amount of currency paid by brokerage platform or due to it, for holding a trade for given pair. For example, at the time of writing a certain amount will be due to the holder of long NZDCHF trade, but vice versa an amount liable for short NZDCHF trade.

Error(e); } return null; 39 40 41 42 43 44 45 46 47 48 49 } The public method actually delegates to a private method where the main action happens. The processing starts by invoking the getSingleAccountUrl() method to prepare the URL to be sent to the OANDA REST API. We then instantiate an HttpGet request providing the URL to fetch information from. Before we trigger the request, we must not forget to set the authentication header without which the request will not be successful. setHeader(authHeader), we are now set to make the request.

Download PDF sample

Rated 4.62 of 5 – based on 32 votes