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

Building Trading Bots Using Java [2016]

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

  • FFT(快速傅里叶变换)的FPGA实现
    文档中包括FFT的算法推导,FFT算法的量化以及FPGA的实现
    2020-12-08下载
    积分:1
  • 基于KDtree的三维点云算法
    研究一种高效空间索引方法来管理海量点云数据,研究点云数据的管理和处理方法。
    2020-11-27下载
    积分:1
  • 台达DVP的PLC序密码破解方法
    用WinHex软件打开台达PLC程序(DVP格式),修改并保存破解了程序和项目密码。
    2020-11-28下载
    积分:1
  • 基于FPGA的逻辑分析仪设计源码
    本设计基于FPGA实现了一个简易逻辑分析仪的基本功能,具有16个采样通道,通过开关可以进行采样触发模式的选择,采样频率高低的控制,通过VGA接口将采集到的数据传送到显示屏上,能较为准确的显示逻辑电平时序的变化。
    2020-12-11下载
    积分:1
  • 非线性降维的经典算法Isomap
    非线性降维的经典算法Isomap,详细的说明了具体步骤,打包的。用作实验测试,学习isomap算法非常有用。同时包含了posesSelected.mat文件。
    2020-12-10下载
    积分:1
  • bpsk 调制与解调实现
    介绍了 针对于 2psk 的调制与解调 用matlab做的2PSK调制与解调系统的仿真,程序很完整
    2021-05-07下载
    积分:1
  • FPGA实现sobel边缘检测
    这个一个关于实现将图片转成灰度图像,再由灰度图片实现sobel边缘检测算法处理图片的一个工程,工程完成下载可直接使用里面注释详细
    2020-12-03下载
    积分:1
  • springboot+mybatis+maven+mysql
    springboot+mysql+maven+mysql+jdk1.8实现增删改查 web端实现登录和注册
    2021-05-07下载
    积分:1
  • 数电课设计-数字电子钟
    数字钟是一种用数字电路技术实现时、分、秒计时的装置,与机械式时钟相比具有更高的准确性和直观性,且无机械装置,具有更更长的使用寿命,因此得到了广泛的使用。数字钟从原理上讲是一种典型的数字电路,其中包括了组合逻辑电路和时序电路。设计指标 ① 时间以12小时为一个周期;② 显示时、分、秒;③ 具有校时功能,可以分别对时及分进行单独校时,使其校正到标准时间;④ 计时过程具有报时功能,当时间到达整点前10秒进行蜂鸣报时;⑤ 为了保证计时的稳定及准确须由晶体振荡器提供表针时间基准信号。
    2021-05-07下载
    积分:1
  • 阵列信号处理ppt(西北工业大学)
    西工大整列信号处理课件,完整版,师兄留下来的资料,欢迎下载!●●●●●●●●0相关的重要学术刊物IEEE Transactions on Signal ProcessingIEEE Transactions on Antennas and Propagationo IEEE Transactions on aerospace and electronicSystemso IEEE Journal of Oceanic EngineeringJournal of the Acoustical Society of America●电子学报●声学学报丽归潭杨益新●●●●●●●●●●●●相关的重要学术会议●●●IEEE Sensor Array and Multichannel SignalProcessing Workshop-SaMIEEE Workshop On Statistical Signal ProcessingSSP(Formerly IEEE Workshop On Statistical SignalAnd Array Processing- SSAP). IEEE International Conference on acousticsSpeech, and Signal Processing-ICASSPWorkshop on Adaptive Sensor Array ProcessingASAP(Lincoln Laboratory-MIT)MTS/IEEE Oceans Conference百归杨益新●●●●内容安排●●●●0课次1—引言课次8一最优波束形成课次2一阵列和空间滤波器课次9一自适应波束形成课次3-线性阵列和孔径课次10一目标方位估计(1)课次4一线阵波束优化设计课次11—目标方位估计(2)课次5一平面阵列和孔径课次12一匹配场处理、智能天线课次6一空时过程的特征课次13一课程设计讲解课次7一仿真算例分析课次14—闭卷考试丽归潭杨益新●●●●●●●阵列信号处理●●●●●●●●考虑的信号和噪声不仅有肘城依赖性,也有空城依赖性●将信号和噪声表征为空一时过程●研究多维空一时域的检测和估计问题处理器空域部分连续空域→孔径离散空域→阵列(基阵)酉归贯杨益新●●●●●●●●0Signal #I●●●●Signal #2Interference▲ZNoiseFieldc阵列结构(阵特性及阵形)°信号的空间和时间特性千扰的空间和时间特性ArrayProcessor阵列处理的目的丽归潭杨益新●●●●●●●阵列结构(阵元特性及阵形)●●●●●●●●●阵元特性:各向同性(omni- directiona或 isotropic)各向异性( directiona|)●阵列几何形状(阵元的物理位置):线阵平面阵体积阵●阵元分布:等间距(均匀分布)不等间距(非均匀分布)随机分布酉归贯杨益新●●●●信号的空间和时间特性●●●●0●●●●●时域上已知信号信号有未知参数信号有已知结构(例如,BPSK)随机信号●空域上(最感兴趣的)已知方向上的平面波信号未知方向上的平面波信号空间散布的信号丽归潭杨益新●●●●●●●●●●●●●噪声(或干扰)的空间和时间特性●●●噪声源分类:自噪声:阵元之间统计独立,可减小但不能消除;外部噪声源产生的噪声:需用时空特性表征●时域上有未知参数的信号随机信号●空域上已知方向上的一个或多个平面波未知方向上的一个或多个平面波空间散布的干扰酉归贯杨益新●●●●●●●●0阵列信号处理的目的存在噪声和干扰时,检测信号;●存在噪声和干扰时,解调信号并估计信息波形;●从多个路径上有通讯信号到达时,检测信息序列;●存在噪声时,估计多个平面波信号的到达角;●构造入射信号和噪声场的时域和空域谱估计;●将信号发射到一个特定的空间位置上●还有其它应用场合丽归潭杨益新●●●●●●●阵列信号处理的两个主要方面●●●●●●●●●波束形成●参数估计5040Direction of Arrival(Deg)酉归贯杨益新●●●●阵列信号处理的主要应用领域●●●●0●●●●●声呐●雷达●射电天文●通信●地震学语音处理医学诊断和治疗丽归潭杨益新●●●●●●●●声呐●●●●●●●●百归杨益新被动声呐●●●●●●●●0●0Detectionthreshold(D7Ambient nose(ND)DirectivTransmission lossindex(T)Source level (SL)丽归潭杨益新典型被动声呐阵列●●●●●●●●●●●扩展式声呐浮标酉归贯杨益新典型被动声呐阵列●●●●●●●●0●●●●业)击潜艇噪声测量用阵列丽归潭杨益新●●●●主动声呐●●●●●●●●●threshold(DnAmbient noise(NL)VolumereverberationDirectrindexSourceTransmissioSource level (SL)Ambient noise(NL)loss (ILST)Target strength(IS)Bottom reverberation百归杨益新
    2021-05-06下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载