登录
首页 » Others » Building Trading Bots Using Java [2016]

Building Trading Bots Using Java [2016]

于 2020-12-07 发布
0 246
下载积分: 1 下载次数: 0

代码说明:

Building Trading Bots Using JavaEnglish | 6 Jan. 2017 | ISBN: 1484225198 | 300 Pages | PDF | 6.22 MBBuild an automated currency trading bot from scratch with java. In this book, you will learn about the nitty-gritty of automated trading and have a closer look at Java, the Spring Framework, event-Building Trading Bots Using Javahekhar VarshneyGrangesSwitzerlandISBN13(pbk):978-1-4842-2519-6ISBN-13(electronic): 978-1-4842-2520-2DOI10.1007/978-1-4842-2520-2Library of Congress Control Number: 2016961228Copyright o 2016 by Shekhar VarshneyThis work is subject to copyright All rights are reserved by the Publisher, whether the wholeor part of the material is concerned, specifically the rights of translation, reprinting, reuse ofillustrations, recitation, broadcasting, reproduction on microfilms or in any other physicalway, and transmission or information storage and retrieval, electronic adaptation, computersoftware, or by similar or dissimilar methodology now known or hereafter developedTrademarked names, logos, and images may appear in this book. Rather than use a trademarksymbol with every occurrence of a trademarked name, logo, or image we use the names, logos,nd images only in an editorial fashion and to the benefit of the trademark owner, with nointention of infringement of the trademarkThe use in this publication of trade names, trademarks, service marks, and similar terms, even ifthey are not identified as such, is not to be taken as an expression of opinion as to whetheror notthey are subject to proprietary rightsWhile the advice and information in this book are believed to be true and accurate at thedate of publication, neither the authors nor the editors nor the publisher can accept any legalresponsibility for any errors or omissions that may be made. The publisher makes no warranty,express or implied, with respect to the material contained hereinManaging Director: Welmoed SpahrLead Editor: Steve AnglinEditorial Board: Steve Anglin, Pramila Balan, Laura Berendson, Aaron Black, Louise Corrigan,Jonathan gennick, Robert Hutchinson, Celestin Suresh John, Nikhil KarkalJames Markham, Susan McDermott, Matthew Moodie, Natalie Pao, Gwenan SpearingCoordinating Editor: Mark PowersCopy Editor: Kezia EndsleyCompositor: SPi GlobalIndexer: SPi GlobaArtist: SPi GlobalDistributed to the book trade worldwide by Springer Science+ Business Media New York,233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax(201)348-4505e-mailorders-ny@springer-sbm.comorvisitwww.springeronline.com.ApressMedia,Llcisa California LlC and the sole member(owner) is Springer Science Business Media FinanceInc(SSBM Finance Inc). SSBM Finance Inc is a Delaware corporationForinformationontranslationspleasee-mailrights@apress.comorvisitwww.apress.comApress and friends of ed books may be purchased in bulk for academic, corporate, or promotionaluse eBook versions and licenses are also available for most titles For more information referenceourSpecialbUlkSales-ebookLicensingwebpageatwww.apress.com/bulk-salesAny source code or other supplementary materials referenced by the author in this text areavailabletoreadersatwww.apress.com.Fordetailedinformationabouthowtolocateyourbookssourcecodegotowww.apress.com/source-code/.ReaderscanalsoaccesssourcecodeatSpringerlink in the Supplementary Material section for each chapter.Printed on acid-free paperedicated to the angels in my lifemy mother, my wife Preshita, and my two daughters Mihika and anyaLast but not the least, my college professor, Dr. Rajat Moona,who sowed the seeds of computer programming in my dnaContents at a glanceAbout the authorChapter 1: Introduction to Trading Bota.Chapter 2: Account Management27Chapter 3: Tradeable Instruments47Chapter 4: Event Streaming: Market Data EventsChapter 5: Historic Instrument Market Data aeEERaar75Chapter 6: Placing Orders and trades97Chapter 7: Event Streaming: Trade/Order/Account Events159Chapter 8: Integration with Twitter aamna■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■175Chapter 9: Implementing Strategies.am.203Chapter 10: Heartbeating ammmmmmmmmmmn 219Chapter 11: E-Mail Notifications ammmmatmmammmmmmmnmamman 231Chapter 12: Configuration, Deployment, and Running the Bot 243Chapter 13: Unit Testing■■■■■■■■■■■■口■■■■■■■■■■■■■■■■■■■口■■■■■■■■■■■■■■■■■■口■■■■■263Index…277ContentsAbout the author,i币Chapter 1: Introduction to Trading Bot m mmmemmIRD■■■■■■■■■■■■■■■■■■■■■■■■■What Is a Trading Bot?Why do We need a trading bot?...3The capabilities of the Trading BotDesign goalsCode organization and software Stack Used .OANDA REST API as Reference Implementation.m....ammann. 8Opening an oanda practice Account80 ANDA JS0 N Keys…………Constructor Dependencies for OANDA Implementations15Event-Driven architectureG0 ogle eventBus…18Provider helper Interface20Trading Config class.........mmonann......mtnonnn.......tnn 22Obtaining the Source Code.aaeeaaaee... 24Try It Yourself section..aaaaaa.. 24Chapter 2: Account Managementa27Account provider interface31A Concrete Implementation for AccountDataProvider32Encapsulating Everything Behind a Generic AccountlnfoService37Try It yourself43VIlCONTENTSChapter 3: Tradeable Instruments47InstrumentA Concrete Implementation for InstrumentDataProvider52Encapsulating Everything Behind a Generic Instrumentservice56Try It yourself58Chapter 4: Event Streaming: Market Data Events mmmmmmmmmm. 61Streaming Market Data Interface.A Concrete Implementation for MarketData StreamingService .m..63Downstream Market data event disseminationMarketEventcallback……69Try It Yourself,…70Chapter 5: Historic Instrument Market Data mmmmmmmm 75How to read a candlestick75Enum Defining the Candlestick Granularity76Define pojo to hold candlestick information77Historical Data Provider Interface79A Concrete Implementation for HistoricMarketDataProvidern81Discussion An Alternate Database Implementation85Candlesticks for Moving Average Calculations....88MovingAverage calculation Service89Try lt YourselfChapter 6: Placing Orders and Trades■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■97Order pojo definition98Order Management provider Interface101A Concrete Implementation for Order ManagementProvider,103A Simple orderInfoService,115CONTENTSValidating Orders Before Execution: PreOrderValidationService... 116Putting It All Together in an OrderExecution Service .mmmm... 121Trade pojo definition124Trade Management provider Interface127A Concrete Implementation for TradeManagementProvider129Encapsulating Read Operations Behind TradelnfoService.....m. 136Try It yourself144Chapter 7: Event Streaming: Trade/order/Account Events m 159Streaming Event Interface161A Concrete Implementation for Events StreamingService162Try It Yourself171Chapter 8: Integration with Twitter■■■■■■■■■■■■■■■■■■■■175Creating a Twitter Application175Spring Social180Using and Configuring Spring Social180Harvesting FX Tweets181Tweetharvester Interface wmmm. 185XTWeethandler Interface,,,………AbstractFxtweethandler base class186User-Specific TweetHandlersTry lt Yourself.Chapter 9: Implementing Strategies.aa203Copy Twitter Strategy204Fade the Move Strategy210Try It Yourself214CONTENTSChapter 10: Heartbeating ammammmmmmmmmmmmmmm 219HeartBeatPayload. ..m......m. 219Streaming the Heartbeat Interface220A Concrete Implementation for HeartBeatstreamingService221HeartBeatcallback Interface223DefaultheartBeatservice223Try It Yourself226Chapter 11: E-Mail notifications n231Notification Design.EmailPayLoad poJoEmailContentgenerator interface……232Sample Implementations.EventEmailNotifier service mm...m. 235Try It Yourself.237Chapter 12: Configuration, Deployment, and running the bot m 243Configuring the Trading Bot243Core Beans configuration244Twitter-Related Beans Configuration.....................247Provider Beans Configuration248Strategies configuration…254Services Configuration254Building the Bot...,,,,,…,,……256Running the bot.....,,……259CONTENTSChapter 13: Unit Testinga263Using Mockito as a Mocking Framework.Mocking Http iNteraction..............m....................e........................ 264Mocking Streams.The versatile verify Mockit0…....,.,,…271Mocking Twitter Interaction .EclEmma Code Coverage Tool for Eclipse ide.nDDDDDDDDDm274Index■■■■■■■■■■■■■■■■■■■口En277

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • ASP.NET序设计基础教(第2版)陈长喜;例源代码+课后习源代码+上机实践源代码+课件
    本书详细阐述了开发ASP.NET Web应用程序的基础应用,从ASP.NET第一个程序的开发实践、JavaScript基础理论到内置对象、服务器控件、数据库操作技术、数据绑定技术、数据控件、数据验证技术,再到面向前台外观技术的用户控件、主题和CSS样式与站点导航,以及用系统分析与设计法开发三层架构的Web应用系统的实例,所有知识点都结合具体实例以图解的方式进行详细讲解,循序渐进地引导读者掌握ASP.NET开发。 本书可作为高等院校计算机相关专业的教材,也可以作为自学ASP.NET开发的入门教材及ASP.NET开发人员的工作参考书。
    2021-05-06下载
    积分:1
  • dspic30f4011直流电机控制
    可以控制无刷直流电机,起动,停止,开环控制和闲环控制
    2020-12-03下载
    积分:1
  • seismic unix指导全书(14章)
    seismic unix指导全书(14章) 地震勘探中重要的实验室手册
    2020-12-09下载
    积分:1
  • 形状匹配find_scaled_shape_model
    使用opencv实现halcon中算子find_scaled_shape_model的功能,具体功能参见博客https://blog.csdn.net/sillykog/article/details/83116793
    2020-11-29下载
    积分:1
  • matlab连续计算图像间的互信息值
    matlab连续计算图像间的互信息值程序~一共计算了配准前配准后的图像间的互信息值,一套数据图片760张
    2020-12-01下载
    积分:1
  • 三相桥式全控整流电路 simulink 仿真模型 mdl
    【实例简介】在工业中应用最为广泛的一种整流电路,其实质是一组共阴极与一组共阳极的三相半波可控整流电路的串联。习惯将其中阴极连接在一起的三个晶闸管(VT1、VT3、VT5)称为共阴极组;阳极连接在一起的三个晶闸管VT4、VT6、VT2)称为共阳极组。三相整流变压器采用Dy联结,由于共阳极组在电源正半周导通,流经变压器二次绕组的是正向电流,共阴极组在电源负半周导通,流经变压器二次绕组的是反向电流,因此一个周期中,变压器绕组中没有了直流磁动势,有利于减小变压器磁通、电动势中的谐波。此外,习惯上希望晶闸管按从1~6的顺序导通,为此将晶闸管按图示的顺序编号,即共阴极组中与a、b、e三相电源相接的三个晶闸管分别为VT1、VT3、VT5,共阳极组中与a、b、e三相电源相接的三个晶闸管分别为VT4、VT6、VT2。三相桥式全控整流电路必须用双窄脉冲或宽脉冲触发,其移相范围为0°~120°,最大导通角为120°。它主要用于电压控制要求高或要求逆变的场合。
    2021-11-16 00:38:15下载
    积分:1
  • 基于matlab风力发电系统的建模与仿真
    介绍了风力发电机组的基本控制要求和控制策略,在定桨距风力发电机组控制系统仿真方面作了初步的探究和研究。通过控制系统保持了风力发电机组的安全可靠运行,并实现了稳定机组输出功率和优化功率曲线的控制功能。利用控制系统使风力发电系统在规定的时间内不出故障或少出故障,并在出故障之后能够以最快的速度修复系统使之恢复正常工作。
    2020-06-17下载
    积分:1
  • 最新全国城市省市县镇街道数据库,4级,46175条,包含经纬度坐标(mysql直接导入)
    MySQL版本,压缩包中包含一个DDL和SQL文件,表结构字段如下:编码、名称、上级编码、名称简称、行政级别、地球坐标系WGS84,火星坐标系GCJ02、百度坐标系BD09;数据是目前最新的版本,取自国家统计局
    2020-11-29下载
    积分:1
  • MFC客户资源管理系统.rar
    【实例简介】本软件是采用MFC做前台开发,后台采用Access数据库进行管理 对客户信息进行增删改查。软件还包含用户管理,帮助文档等功能模块。
    2021-12-09 00:36:39下载
    积分:1
  • 简单失物招领PHP源码
    失物招领系统 广职院失物招领系统 首页 - 发布信息 -
    2020-11-29下载
    积分:1
  • 696516资源总数
  • 106459会员总数
  • 0今日下载