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

Building Trading Bots Using Java [2016]

于 2020-12-07 发布
0 288
下载积分: 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 个回复

  • 基于MCS51单片机温度控制系统
    常用的温度检测元件主要有热电偶、热电阻、热敏电阻等。热电偶主要是利用两种不同金属的热电效应,产生接触电势随温度变化而变化,从而达到测温的目的。测量准确,价格适中测温范围宽,线性度较好。但其输出电压受冷端温度影响,需要进行冷端温度补偿,使电路变得复杂,在本题中并非最佳方案。 热敏电阻由金属氧化物或半导体材料制成,灵敏度高、热惰性小、寿命长、价格便宜。但其测量的稳定性和复现性差,测量精度无法满足本题发挥部分0.2℃的要求。而且线性度差,需要进行查表线性拟合,大大浪费控制器的资源,因此不能选用。 热电阻是利用金属的电阻率随温度变化而变化的特性,将温度量转化成电阻量。其优点是准确度高,稳定性高,性
    2021-05-06下载
    积分:1
  • MATLAB风力发电系统仿真
    介绍风电系统中恒速恒频和变速恒频发电系统的模型搭建和仿真
    2020-05-29下载
    积分:1
  • Rsoft完全教
    Rsoft分章节教程,分步骤演示,包括并不限于:分光束常数法,第4章_时域有限差分方法(FDTD),Rsoft完全指导手册,用户手册等等。适用于入门,乃至参考查找。
    2020-12-06下载
    积分:1
  • 基于属性加权的朴素贝叶斯分类算法
    资源难得啊,花钱买的,基于属性加权的朴素贝叶斯分类算法.kdh
    2020-12-11下载
    积分:1
  • modbus协议+modbus软件开发实战指南PDF打包下载.rar
    【实例简介】学习modbus开发好资料。 【modbus协议+modbus软件开发实战指南PDF打包下载】
    2021-11-25 00:32:18下载
    积分:1
  • VBA连接postgreasql生成javaBeam
    VBA连接postgreasql生成javaBeam
    2013-08-06下载
    积分:1
  • AIM显著性检测算法 matlab代码
    AIM显著性检测算法,方便计算机视觉领域的同学们做对比实验
    2020-11-30下载
    积分:1
  • Hyres3.1工具和 ISO12233测试标板的使用
    Hyres 3.1(分辨率测试软件) 和ISO12233测试标板的使用和判读,有兴趣的童鞋可以看看。
    2020-11-28下载
    积分:1
  • LittlevGL中英文档
    LittlevGL是一个免费的开源图形库,提供了创建嵌入式GUI所需要的一切易于使用的图形元素,具有漂亮的视觉效果和低内存占用。具有功能强大的单元块,对输入设备支持较完善,同时具有低内存,采用C编写具有比较好的兼容性。中英文档是对LittlevGL文档的简单翻译,有利于快速了解LittlevGL各功能模块的应用。EXamde5.4 Button(v btn)............58Overview58Style usage...............59Notes59Example595.5 Button matrix(lv btnm)61Overview61Style usage.................,..................62Notes62Example625.6 Calendar( calendar)-……64OverviewStyle usage……看着翻Example655.7 Chart( ly chart)…67Overview..67Style usage.......:.:::::·::::::68Example…685.8 Check box lv cb)70Overview70Style usage…70Example705.9 Container(lv cont72Overview72Style usage……72NoExample735.10 Drop down list(lv ddlist)74Overview74Style usage ...74Example,…:::..:.:..:::::.aa是着着·目1着着,非着·着755.11 Gauge(Iv gauge7676Style usage76Example775.12mage(img)….,,,,,7878Style usage着看E着NotesExample795.13 Image button(| imgbtn).…………………281verview81Style usage…...,.,NotesExample,…815.14 Keyboard(Nkb)…83Style usageExample5.15List(|ist)…着着着D·音着着垂8585Style usage.........................85Notes86EXame865.16LED(l|ed)..,OverviewStyle usage....................89Notes89Example5.17Line(line)…91OverviewStyle usage.................,..................91NotesExample....................5.18 Line meter( Imeter)……93Overview..93Style usage…看着翻93Notes93Example945.19 Label (lv label)..96Overview96Style usage………………Notes97Example975.20 Message box(Iv mbox).......,,99OverviewStyle99Not100mp1005.21 Page(v page)........::::.:.:::102Overview…………,…102Style usage103Notes103Example1045.22 Preloader(lv preload):.::::::..105Overview105Style105Example1055.23 Roller(lv roller).......106Overview.…106Style usage…106ExampleE着1075.24 Slider (lv slider).108Overvie108Style usage108Notes108Example1095.25 Spinbox(Iv_ spinbox).111Overview……4111Style usage Notes111notes111Example....1115.26 Switch(lSW)…..112Overview.…4112Style usage…112Notes112Example1135.27 Tab view(Iv tabview)114Overview114Style usage…..114Notes…115Example1155.28 Text area(lvta)…116Overview116Style usage117Notes117Example1175.29 Window(lv window)119Overvie.119Style usage119Notes120camp内容表Welcome portingButton matrix (lv btnm欢迎移植Calendar (lv calendar)PC simulator ObjectsPC模拟器项目Chart(lv chart)Styles风格Check box (1v cb)Input devicesContainer(1v cont输入设备Drop down list(lv ddlist)Colors颜色Gauge(lv gauge)Fontmage (lv lmg字体Image button(lv imgbtn)Drawing绘画Keyboard (lv kb)List(lv listAnimations动画Led(lv led)Coding Style guideLine (1v line)Line meter(lv 1meter)Object typesArc(lv arc)Label(lv labe1)Bar (lv bar)Message box(1v mbox)Base object (lv obj)Page(lv pageButton(lv btn)Preloader(lv preload)Switch(lv sw)Roller (lv rollerTab view (lv tabview)Slider (lv sliderText area (lv ta)inbox (lv spinboXWindow (lv window)云图■xD62:ChecK Doeleica一Cekba check bpsELittleygl是一个免费的开源图形库,提供了创建嵌入式GU所需要的一切易于使用的图形儿素,只有漂亮的视觉效果和低内存占用。关键特性Powerful building blocks buttons, charts, lists, sliders, images, etc功能强大的单元块按钮、图表、列表、幻灯片、图片等Advanced graphics with animations, anti-aliasing, opacity, smooth scrolling先进的图形动画,反锯齿透明度,平滑滚动Various input devices touch pad, mouse, keyboard, encoder, buttons, etc各种输入设备触摸板、鼠标、键盘、编码器、按钮等。Multi-language support with UTF-8 encoding支持UTF-8编码的多语言Fully customizable graphical elements全可定制的图形元素Hardware independent to use with any microcontroller or display硬件独立于任何微控制器或显示器Scalable to operate with little memory (50 kB Flash, 10 kB RAM)可伸缩用于少量内存(50 kb flash,10 kb ram)的操作OS, External memory and GPU supported but not required支持O5、外部存储器和GPU,但也不强求Single frame buffer operation even with advances graphical effects即使有先进的图像特效,也可以进行单帧缓冲Written inc for maximal compatibility用C编写,从而具有最大的兼容性Simulator to develop on PC without embedded hardware没有嵌入式硬件的情况下也可以基于PC模拟器开发Tutorials, examples, themes for rapid development为快速丌发而准备的教程、例了及主题5
    2020-12-03下载
    积分:1
  • PNCC声特征matlab代码
    PNCC声特征提取(MFCC进阶版),matlab可执行程序;新一代的特征参量可引导更有效的语音类识别
    2020-12-04下载
    积分:1
  • 696516资源总数
  • 106913会员总数
  • 8今日下载