Loading ...

韭菜二号 无法完成三角套利,哪里错了啊??? 可视化 三角 搬砖 策略

Author: bao.bateer@gmail.com, Date: 2019-06-27 14:20:18
Tags:


{"xml":"<xml xmlns=\"http://www.w3.org/1999/xhtml\">\n  <variables>\n    <variable type=\"\" id=\"9nSi3J)3G)R(13K%*IL$\">LTC资产信息</variable>\n    <variable type=\"\" id=\"dtUZ]*kPyQP#E)#+Y^k`\">BTC-USDT</variable>\n    <variable type=\"\" id=\"?#ih;HbLn9#[OZ8SntlI\">LTC-BTC</variable>\n    <variable type=\"\" id=\"JW5HbHJEFeQ26pvLe2qQ\">LTC-USDT</variable>\n    <variable type=\"\" id=\"*-l]Y8FwgVuMg!@_E_Uh\">BTC资产信息</variable>\n    <variable type=\"\" id=\"nCRJ9nxp@40jAcTXPSPe\">USDT资产信息</variable>\n    <variable type=\"\" id=\"oUKD4..HwkZ)fmoRbY$6\">当前BTC-USDT价格</variable>\n    <variable type=\"\" id=\"K]#BHCy-k!hHlGG@R+D-\">当前LTC-BTC价格</variable>\n    <variable type=\"\" id=\"|QRXMtV?m(0thumQ4*Fl\">当前LTC-USDT价格</variable>\n  </variables>\n  <block type=\"ext_Loop_Interval\" id=\"bJS!n^C8mgt{=2P;Lu`U\" x=\"-347\" y=\"11\">\n    <statement name=\"INPUT_0\">\n      <block type=\"ext_Log\" id=\"4ot_KFEU.]Xea*?wIIW]\">\n        <value name=\"VALUE\">\n          <block type=\"ext_exchange_GetName\" id=\"A7Pv1:TW*7RbOkvDoJ$+\">\n            <field name=\"INPUT_0\">0</field>\n          </block>\n        </value>\n        <next>\n          <block type=\"variables_set\" id=\"RBD4ywms?b6Cd@53lm#.\">\n            <field name=\"VAR\" id=\"dtUZ]*kPyQP#E)#+Y^k`\" variabletype=\"\">BTC-USDT</field>\n            <value name=\"VALUE\">\n              <block type=\"ext_exchange_GetCurrency\" id=\"AM|?fe@y$tlD#gdk.zmQ\">\n                <field name=\"INPUT_0\">0</field>\n              </block>\n            </value>\n            <next>\n              <block type=\"variables_set\" id=\"s.PLk/pUS2K)fXZe`81_\">\n                <field name=\"VAR\" id=\"?#ih;HbLn9#[OZ8SntlI\" variabletype=\"\">LTC-BTC</field>\n                <value name=\"VALUE\">\n                  <block type=\"ext_exchange_GetCurrency\" id=\"K{Nfzp;YYESAmZtYJb}[\">\n                    <field name=\"INPUT_0\">1</field>\n                  </block>\n                </value>\n                <next>\n                  <block type=\"variables_set\" id=\"Wpgm-Q2y4nE-XkHKeCD~\">\n                    <field name=\"VAR\" id=\"JW5HbHJEFeQ26pvLe2qQ\" variabletype=\"\">LTC-USDT</field>\n                    <value name=\"VALUE\">\n                      <block type=\"ext_exchange_GetCurrency\" id=\";$lvDfB(Lp2]w^.3SSI9\">\n                        <field name=\"INPUT_0\">2</field>\n                      </block>\n                    </value>\n                    <next>\n                      <block type=\"variables_set\" id=\"]dwCQ/ysJVEi=R[Ue`;)\">\n                        <field name=\"VAR\" id=\"*-l]Y8FwgVuMg!@_E_Uh\" variabletype=\"\">BTC资产信息</field>\n                        <value name=\"VALUE\">\n                          <block type=\"ext_exchange_GetAccount\" id=\"V$`E9:|pT}f#aU1t)Z3J\">\n                            <field name=\"INPUT_0\">0</field>\n                          </block>\n                        </value>\n                        <next>\n                          <block type=\"variables_set\" id=\"Zi#^;_irp[POYcXU:`+R\">\n                            <field name=\"VAR\" id=\"9nSi3J)3G)R(13K%*IL$\" variabletype=\"\">LTC资产信息</field>\n                            <value name=\"VALUE\">\n                              <block type=\"ext_exchange_GetAccount\" id=\":KbObVYj|gf+l:7-WSwD\">\n                                <field name=\"INPUT_0\">1</field>\n                              </block>\n                            </value>\n                            <next>\n                              <block type=\"variables_set\" id=\"6|Y!}Ex,t5/Tp/8-hL)g\">\n                                <field name=\"VAR\" id=\"nCRJ9nxp@40jAcTXPSPe\" variabletype=\"\">USDT资产信息</field>\n                                <value name=\"VALUE\">\n                                  <block type=\"ext_exchange_GetAccount\" id=\"^5u{)QF3f+v=#P1CK[q8\">\n                                    <field name=\"INPUT_0\">2</field>\n                                  </block>\n                                </value>\n                                <next>\n                                  <block type=\"ext_Log\" id=\"||T%[E@}iFCbTZHpSRI,\">\n                                    <value name=\"VALUE\">\n                                      <block type=\"text_join\" id=\",pYfZAp::p16dq0.GjDu\">\n                                        <mutation items=\"2\"></mutation>\n                                        <value name=\"ADD0\">\n                                          <block type=\"text\" id=\"zp`mmluhdu=,LOb(yYh-\">\n                                            <field name=\"TEXT\">BTC-USDT汇率</field>\n                                          </block>\n                                        </value>\n                                        <value name=\"ADD1\">\n                                          <block type=\"variables_get\" id=\"L.?pJa];P09$7PT!_|iw\">\n                                            <field name=\"VAR\" id=\"oUKD4..HwkZ)fmoRbY$6\" variabletype=\"\">当前BTC-USDT价格</field>\n                                          </block>\n                                        </value>\n                                      </block>\n                                    </value>\n                                    <next>\n                                      <block type=\"ext_Log\" id=\"}Ahea@G^9ccX_dZ{M1hC\">\n                                        <value name=\"VALUE\">\n                                          <block type=\"text_join\" id=\"`;cZgn~@sJ8vF:+MN]+l\">\n                                            <mutation items=\"2\"></mutation>\n                                            <value name=\"ADD0\">\n                                              <block type=\"text\" id=\"~-QDB$9q(4z:84I!*6Jb\">\n                                                <field name=\"TEXT\">LTC-BTC汇率</field>\n                                              </block>\n                                            </value>\n                                            <value name=\"ADD1\">\n                                              <block type=\"variables_get\" id=\"u6E19JQpCIb,EAj)}rcI\">\n                                                <field name=\"VAR\" id=\"K]#BHCy-k!hHlGG@R+D-\" variabletype=\"\">当前LTC-BTC价格</field>\n                                              </block>\n                                            </value>\n                                          </block>\n                                        </value>\n                                        <next>\n                                          <block type=\"ext_Log\" id=\"O?5^4!UBIuHocfppnh.B\">\n                                            <value name=\"VALUE\">\n                                              <block type=\"text_join\" id=\"iJqQ`^DbE{Or/m:)VJ?{\">\n                                                <mutation items=\"2\"></mutation>\n                                                <value name=\"ADD0\">\n                                                  <block type=\"text\" id=\"MCVY7of;XPtN#C@Ld[.y\">\n                                                    <field name=\"TEXT\">LTC-USDT汇率</field>\n                                                  </block>\n                                                </value>\n                                                <value name=\"ADD1\">\n                                                  <block type=\"variables_get\" id=\"z6^Z}Fi?*}R)f:{Rpy*C\">\n                                                    <field name=\"VAR\" id=\"|QRXMtV?m(0thumQ4*Fl\" variabletype=\"\">当前LTC-USDT价格</field>\n                                                  </block>\n                                                </value>\n                                              </block>\n                                            </value>\n                                            <next>\n                                              <block type=\"ext_Log\" id=\"(%Q6ec*aJC+PWH)lgs0)\">\n                                                <value name=\"VALUE\">\n                                                  <block type=\"text_join\" id=\"=U0l3PZ(1u$hcdd|t?3E\">\n                                                    <mutation items=\"2\"></mutation>\n                                                    <value name=\"ADD0\">\n                                                      <block type=\"text\" id=\"TcMmlq[LXx_x=a`9TFPW\">\n                                                        <field name=\"TEXT\">BTC数量</field>\n                                                      </block>\n                                                    </value>\n                                                    <value name=\"ADD1\">\n                                                      <block type=\"ext_AccountOf\" id=\"5.w(OmF$2{evYa=yWei$\">\n                                                        <field name=\"INPUT_0\">Stocks</field>\n                                                        <value name=\"INPUT_1\">\n                                                          <block type=\"variables_get\" id=\"13$i8.3V@fbM361DE;yV\">\n                                                            <field name=\"VAR\" id=\"*-l]Y8FwgVuMg!@_E_Uh\" variabletype=\"\">BTC资产信息</field>\n                                                          </block>\n                                                        </value>\n                                                      </block>\n                                                    </value>\n                                                  </block>\n                                                </value>\n                                                <next>\n                                                  <block type=\"ext_Log\" id=\"E3~Ox?Aucxm,$^V@_xK/\">\n                                                    <value name=\"VALUE\">\n                                                      <block type=\"text_join\" id=\"(3#(a_1[oY$T-}_#Dw#v\">\n                                                        <mutation items=\"2\"></mutation>\n                                                        <value name=\"ADD0\">\n                                                          <block type=\"text\" id=\"4.3pE{3flIC|]LqiE[jN\">\n                                                            <field name=\"TEXT\">LTC数量</field>\n                                                          </block>\n                                                        </value>\n                                                        <value name=\"ADD1\">\n                                                          <block type=\"ext_AccountOf\" id=\"~TYmj}:^|A~v`NQ)Tu+h\">\n                                                            <field name=\"INPUT_0\">Stocks</field>\n                                                            <value name=\"INPUT_1\">\n                                                              <block type=\"variables_get\" id=\"x3(wFB3h~$y2wCKo2)bv\">\n                                                                <field name=\"VAR\" id=\"9nSi3J)3G)R(13K%*IL$\" variabletype=\"\">LTC资产信息</field>\n                                                              </block>\n                                                            </value>\n                                                          </block>\n                                                        </value>\n                                                      </block>\n                                                    </value>\n                                                    <next>\n                                                      <block type=\"ext_Log\" id=\"I%YQYT?PwNLUd;r#-x1y\">\n                                                        <value name=\"VALUE\">\n                                                          <block type=\"text_join\" id=\"}6vgy?$*RxVY3)eL$lzG\">\n                                                            <mutation items=\"2\"></mutation>\n                                                            <value name=\"ADD0\">\n                                                              <block type=\"text\" id=\"=ww:o-E??tZP}IY{47$;\">\n                                                                <field name=\"TEXT\">USDT数量</field>\n                                                              </block>\n                                                            </value>\n                                                            <value name=\"ADD1\">\n                                                              <block type=\"ext_AccountOf\" id=\"`-`K?-rOF]S(;FLa,K.h\">\n                                                                <field name=\"INPUT_0\">Stocks</field>\n                                                                <value name=\"INPUT_1\">\n                                                                  <block type=\"variables_get\" id=\"_=J?ryGt^|-DiRkuZuDO\">\n                                                                    <field name=\"VAR\" id=\"nCRJ9nxp@40jAcTXPSPe\" variabletype=\"\">USDT资产信息</field>\n                                                                  </block>\n                                                                </value>\n                                                              </block>\n                                                            </value>\n                                                          </block>\n                                                        </value>\n                                                        <next>\n                                                          <block type=\"variables_set\" id=\"caHAVZWM%[m^mp`,?;(Q\">\n                                                            <field name=\"VAR\" id=\"oUKD4..HwkZ)fmoRbY$6\" variabletype=\"\">当前BTC-USDT价格</field>\n                                                            <value name=\"VALUE\">\n                                                              <block type=\"ext_TickerOf\" id=\"^LwOuMt}[+ED6lFJe;MY\">\n                                                                <field name=\"INPUT_0\">Last</field>\n                                                                <value name=\"INPUT_1\">\n                                                                  <block type=\"ext_exchange_GetTicker\" id=\"IGe|qTu5qTYTH6nG{lHU\">\n                                                                    <field name=\"INPUT_0\">0</field>\n                                                                  </block>\n                                                                </value>\n                                                              </block>\n                                                            </value>\n                                                            <next>\n                                                              <block type=\"variables_set\" id=\"u|.-tOJY~%3Yg,`0dgth\">\n                                                                <field name=\"VAR\" id=\"K]#BHCy-k!hHlGG@R+D-\" variabletype=\"\">当前LTC-BTC价格</field>\n                                                                <value name=\"VALUE\">\n                                                                  <block type=\"ext_TickerOf\" id=\"g2ppJLU+R=Ct)FWPa+0]\">\n                                                                    <field name=\"INPUT_0\">Last</field>\n                                                                    <value name=\"INPUT_1\">\n                                                                      <block type=\"ext_exchange_GetTicker\" id=\"Z.8ONyIvHFirxvK6U_5W\">\n                                                                        <field name=\"INPUT_0\">1</field>\n                                                                      </block>\n                                                                    </value>\n                                                                  </block>\n                                                                </value>\n                                                                <next>\n                                                                  <block type=\"variables_set\" id=\"S{qYv9-zMbs612^h![mn\">\n                                                                    <field name=\"VAR\" id=\"|QRXMtV?m(0thumQ4*Fl\" variabletype=\"\">当前LTC-USDT价格</field>\n                                                                    <value name=\"VALUE\">\n                                                                      <block type=\"ext_TickerOf\" id=\"AlQOFKCOu{%RU3pAtp;O\">\n                                                                        <field name=\"INPUT_0\">Last</field>\n                                                                        <value name=\"INPUT_1\">\n                                                                          <block type=\"ext_exchange_GetTicker\" id=\"k|YFg+bU]eK%q_`:v)$G\">\n                                                                            <field name=\"INPUT_0\">2</field>\n                                                                          </block>\n                                                                        </value>\n                                                                      </block>\n                                                                    </value>\n                                                                    <next>\n                                                                      <block type=\"controls_if\" id=\"n]H8,*(,PNS_x=dtUZ+Q\">\n                                                                        <mutation else=\"1\"></mutation>\n                                                                        <value name=\"IF0\">\n                                                                          <block type=\"logic_compare\" id=\"W.7GJyD_+BDnDv+,KO5[\">\n                                                                            <field name=\"OP\">GT</field>\n                                                                            <value name=\"A\">\n                                                                              <block type=\"math_arithmetic\" id=\"0kdioiPm6)Q$+0oJ:t#f\">\n                                                                                <field name=\"OP\">MULTIPLY</field>\n                                                                                <value name=\"A\">\n                                                                                  <shadow type=\"math_number\" id=\"cc~L-hbY#?hK(6uRnQp0\">\n                                                                                    <field name=\"NUM\">1</field>\n                                                                                  </shadow>\n                                                                                  <block type=\"math_arithmetic\" id=\"pdS+tt0MtIw~9ydi`@}d\">\n                                                                                    <field name=\"OP\">DIVIDE</field>\n                                                                                    <value name=\"A\">\n                                                                                      <shadow type=\"math_number\" id=\"0XLY%!aTb:sG$)b+=J/d\">\n                                                                                        <field name=\"NUM\">1</field>\n                                                                                      </shadow>\n                                                                                      <block type=\"ext_AccountOf\" id=\"..2;%E)FECO?X@Vc[2H3\">\n                                                                                        <field name=\"INPUT_0\">Stocks</field>\n                                                                                        <value name=\"INPUT_1\">\n                                                                                          <block type=\"variables_get\" id=\"9w-}A71Nd8)ib{[UyVYO\">\n                                                                                            <field name=\"VAR\" id=\"*-l]Y8FwgVuMg!@_E_Uh\" variabletype=\"\">BTC资产信息</field>\n                                                                                          </block>\n                                                                                        </value>\n                                                                                      </block>\n                                                                                    </value>\n                                                                                    <value name=\"B\">\n                                                                                      <shadow type=\"math_number\" id=\"|bx]i-@Q6$kS5|YsfOy]\">\n                                                                                        <field name=\"NUM\">1</field>\n                                                                                      </shadow>\n                                                                                      <block type=\"variables_get\" id=\")m]6G7lTBWs1nN!_54Wd\">\n                                                                                        <field name=\"VAR\" id=\"K]#BHCy-k!hHlGG@R+D-\" variabletype=\"\">当前LTC-BTC价格</field>\n                                                                                      </block>\n                                                                                    </value>\n                                                                                  </block>\n                                                                                </value>\n                                                                                <value name=\"B\">\n                                                                                  <shadow type=\"math_number\" id=\"QFdlP,p%F{zg5Ko[jJ9V\">\n                                                                                    <field name=\"NUM\">0.98</field>\n                                                                                  </shadow>\n                                                                                  <block type=\"variables_get\" id=\"u,u_hM60t$ijW7Y(%xef\">\n                                                                                    <field name=\"VAR\" id=\"|QRXMtV?m(0thumQ4*Fl\" variabletype=\"\">当前LTC-USDT价格</field>\n                                                                                  </block>\n                                                                                </value>\n                                                                              </block>\n                                                                            </value>\n                                                                            <value name=\"B\">\n                                                                              <block type=\"math_arithmetic\" id=\".kr}t9)=bAZ4f4d7`V3?\">\n                                                                                <field name=\"OP\">MULTIPLY</field>\n                                                                                <value name=\"A\">\n                                                                                  <shadow type=\"math_number\" id=\"VGdN0l9ZtPrLbg@yJ+=S\">\n                                                                                    <field name=\"NUM\">1</field>\n                                                                                  </shadow>\n                                                                                  <block type=\"math_arithmetic\" id=\"-1uf5$o/CEpK%;Dt#]-e\">\n                                                                                    <field name=\"OP\">MULTIPLY</field>\n                                                                                    <value name=\"A\">\n                                                                                      <shadow type=\"math_number\" id=\"0XLY%!aTb:sG$)b+=J/d\">\n                                                                                        <field name=\"NUM\">1</field>\n                                                                                      </shadow>\n                                                                                      <block type=\"ext_AccountOf\" id=\"t_k`$xty7!vb8)WE+fQ;\">\n                                                                                        <field name=\"INPUT_0\">Stocks</field>\n                                                                                        <value name=\"INPUT_1\">\n                                                                                          <block type=\"variables_get\" id=\"z})T-Ff^LQxo0NVFMn8H\">\n                                                                                            <field name=\"VAR\" id=\"*-l]Y8FwgVuMg!@_E_Uh\" variabletype=\"\">BTC资产信息</field>\n                                                                                          </block>\n                                                                                        </value>\n                                                                                      </block>\n                                                                                    </value>\n                                                                                    <value name=\"B\">\n                                                                                      <shadow type=\"math_number\" id=\"|bx]i-@Q6$kS5|YsfOy]\">\n                                                                                        <field name=\"NUM\">1</field>\n                                                                                      </shadow>\n                                                                                      <block type=\"variables_get\" id=\"CW227rYs!!(vBqOLQp1,\">\n                                                                                        <field name=\"VAR\" id=\"oUKD4..HwkZ)fmoRbY$6\" variabletype=\"\">当前BTC-USDT价格</field>\n                                                                                      </block>\n                                                                                    </value>\n                                                                                  </block>\n                                                                                </value>\n                                                                                <value name=\"B\">\n                                                                                  <shadow type=\"math_number\" id=\"+ccDt)ieb3=CQ%f!-HYd\">\n                                                                                    <field name=\"NUM\">0.98</field>\n                                                                                  </shadow>\n                                                                                </value>\n                                                                              </block>\n                                                                            </value>\n                                                                          </block>\n                                                                        </value>\n                                                                        <statement name=\"DO0\">\n                                                                          <block type=\"ext_Log\" id=\"R$KSRly%zX;UW$t|35D/\">\n                                                                            <value name=\"VALUE\">\n                                                                              <block type=\"ext_exchange_Trade\" id=\"|.SOzWEC7EQ:G`6rv2Ev\">\n                                                                                <field name=\"INPUT_0\">0</field>\n                                                                                <field name=\"INPUT_1\">Buy</field>\n                                                                                <value name=\"INPUT_2\">\n                                                                                  <shadow type=\"math_number\" id=\"5_~*QH~P[ZE)]w(3UXiV\">\n                                                                                    <field name=\"NUM\">0</field>\n                                                                                  </shadow>\n                                                                                  <block type=\"ext_TickerOf\" id=\"r%ji+]7JIMO~~VhtV~7[\">\n                                                                                    <field name=\"INPUT_0\">Buy</field>\n                                                                                    <value name=\"INPUT_1\">\n                                                                                      <block type=\"ext_exchange_GetTicker\" id=\"BJnktr=$]*,CBfk*X$$C\">\n                                                                                        <field name=\"INPUT_0\">1</field>\n                                                                                      </block>\n                                                                                    </value>\n                                                                                  </block>\n                                                                                </value>\n                                                                                <value name=\"INPUT_3\">\n                                                                                  <shadow type=\"math_number\" id=\"E#e^BeK#,V#Yeq+PnwtK\">\n                                                                                    <field name=\"NUM\">0</field>\n                                                                                  </shadow>\n                                                                                  <block type=\"ext_AccountOf\" id=\"x-F_-IgXvQI3i1kM|0pL\">\n                                                                                    <field name=\"INPUT_0\">Stocks</field>\n                                                                                    <value name=\"INPUT_1\">\n                                                                                      <block type=\"variables_get\" id=\"8qeKnWALCbaJK-z|?j$w\">\n                                                                                        <field name=\"VAR\" id=\"*-l]Y8FwgVuMg!@_E_Uh\" variabletype=\"\">BTC资产信息</field>\n                                                                                      </block>\n                                                                                    </value>\n                                                                                  </block>\n                                                                                </value>\n                                                                              </block>\n                                                                            </value>\n                                                                            <next>\n                                                                              <block type=\"ext_Log\" id=\"c3!zIIfWoqcxdKYQScui\">\n                                                                                <value name=\"VALUE\">\n                                                                                  <block type=\"ext_exchange_Trade\" id=\"Gcd2yWYOTJd(JwxMap@Q\">\n                                                                                    <field name=\"INPUT_0\">0</field>\n                                                                                    <field name=\"INPUT_1\">Sell</field>\n                                                                                    <value name=\"INPUT_2\">\n                                                                                      <shadow type=\"math_number\" id=\"5_~*QH~P[ZE)]w(3UXiV\">\n                                                                                        <field name=\"NUM\">0</field>\n                                                                                      </shadow>\n                                                                                      <block type=\"ext_TickerOf\" id=\"Cd^tp//xx;IsB.22P},Z\">\n                                                                                        <field name=\"INPUT_0\">Sell</field>\n                                                                                        <value name=\"INPUT_1\">\n                                                                                          <block type=\"ext_exchange_GetTicker\" id=\")-QVWkK.nbf7{21N$V|s\">\n                                                                                            <field name=\"INPUT_0\">2</field>\n                                                                                          </block>\n                                                                                        </value>\n                                                                                      </block>\n                                                                                    </value>\n                                                                                    <value name=\"INPUT_3\">\n                                                                                      <shadow type=\"math_number\" id=\"E#e^BeK#,V#Yeq+PnwtK\">\n                                                                                        <field name=\"NUM\">0</field>\n                                                                                      </shadow>\n                                                                                      <block type=\"ext_AccountOf\" id=\"fc/=O,:ZeL@[|{$qVm{y\">\n                                                                                        <field name=\"INPUT_0\">Stocks</field>\n                                                                                        <value name=\"INPUT_1\">\n                                                                                          <block type=\"variables_get\" id=\"M##!x=cQ3jZbc!PX5-x~\">\n                                                                                            <field name=\"VAR\" id=\"9nSi3J)3G)R(13K%*IL$\" variabletype=\"\">LTC资产信息</field>\n                                                                                          </block>\n                                                                                        </value>\n                                                                                      </block>\n                                                                                    </value>\n                                                                                  </block>\n                                                                                </value>\n                                                                              </block>\n                                                                            </next>\n                                                                          </block>\n                                                                        </statement>\n                                                                        <statement name=\"ELSE\">\n                                                                          <block type=\"ext_Log\" id=\"h_rLMJwGqe;hHaMShDU[\">\n                                                                            <value name=\"VALUE\">\n                                                                              <block type=\"ext_exchange_Trade\" id=\"koPFeMpV5HKP|dITTsLl\">\n                                                                                <field name=\"INPUT_0\">0</field>\n                                                                                <field name=\"INPUT_1\">Sell</field>\n                                                                                <value name=\"INPUT_2\">\n                                                                                  <shadow type=\"math_number\" id=\"5_~*QH~P[ZE)]w(3UXiV\">\n                                                                                    <field name=\"NUM\">0</field>\n                                                                                  </shadow>\n                                                                                  <block type=\"ext_TickerOf\" id=\"GwT4Y}!o;v-GOmXv*%Nd\">\n                                                                                    <field name=\"INPUT_0\">Sell</field>\n                                                                                    <value name=\"INPUT_1\">\n                                                                                      <block type=\"ext_exchange_GetTicker\" id=\"r!IrL{ZbgBJ0Z|/-,Ws|\">\n                                                                                        <field name=\"INPUT_0\">0</field>\n                                                                                      </block>\n                                                                                    </value>\n                                                                                  </block>\n                                                                                </value>\n                                                                                <value name=\"INPUT_3\">\n                                                                                  <shadow type=\"math_number\" id=\"E#e^BeK#,V#Yeq+PnwtK\">\n                                                                                    <field name=\"NUM\">0</field>\n                                                                                  </shadow>\n                                                                                  <block type=\"ext_AccountOf\" id=\"Ciq_F@rX|clYuo]heSu;\">\n                                                                                    <field name=\"INPUT_0\">Stocks</field>\n                                                                                    <value name=\"INPUT_1\">\n                                                                                      <block type=\"variables_get\" id=\"Ia$!vihoHu:2DZ7tZvdv\">\n                                                                                        <field name=\"VAR\" id=\"*-l]Y8FwgVuMg!@_E_Uh\" variabletype=\"\">BTC资产信息</field>\n                                                                                      </block>\n                                                                                    </value>\n                                                                                  </block>\n                                                                                </value>\n                                                                              </block>\n                                                                            </value>\n                                                                          </block>\n                                                                        </statement>\n                                                                        <next>\n                                                                          <block type=\"ext_Log\" id=\"Ll5I=niuvK32),([y,ig\">\n                                                                            <value name=\"VALUE\">\n                                                                              <block type=\"text\" id=\"8uHswTYU46L_B{zm--p*\">\n                                                                                <field name=\"TEXT\">结束</field>\n                                                                              </block>\n                                                                            </value>\n                                                                          </block>\n                                                                        </next>\n                                                                      </block>\n                                                                    </next>\n                                                                  </block>\n                                                                </next>\n                                                              </block>\n                                                            </next>\n                                                          </block>\n                                                        </next>\n                                                      </block>\n                                                    </next>\n                                                  </block>\n                                                </next>\n                                              </block>\n                                            </next>\n                                          </block>\n                                        </next>\n                                      </block>\n                                    </next>\n                                  </block>\n                                </next>\n                              </block>\n                            </next>\n                          </block>\n                        </next>\n                      </block>\n                    </next>\n                  </block>\n                </next>\n              </block>\n            </next>\n          </block>\n        </next>\n      </block>\n    </statement>\n    <value name=\"INPUT_1\">\n      <shadow type=\"math_number\" id=\"Yp5hq@/0]_$?Fr^:IeXn\">\n        <field name=\"NUM\">1</field>\n      </shadow>\n    </value>\n  </block>\n  <block type=\"variables_set\" id=\"|Cv|J%/;p7?6)+I[6s!5\" x=\"-239\" y=\"207\">\n    <field name=\"VAR\" id=\"9nSi3J)3G)R(13K%*IL$\" variabletype=\"\">LTC资产信息</field>\n    <value name=\"VALUE\">\n      <block type=\"ext_exchange_GetAccount\" id=\"8q]^9K97cwbc}Hf8q]U3\">\n        <field name=\"INPUT_0\">1</field>\n      </block>\n    </value>\n  </block>\n</xml>","javascript":"function main() {\n    var LTC_E8_B5_84_E4_BA_A7_E4_BF_A1_E6_81_AF, BTC_USDT, LTC_BTC, LTC_USDT, BTC_E8_B5_84_E4_BA_A7_E4_BF_A1_E6_81_AF, USDT_E8_B5_84_E4_BA_A7_E4_BF_A1_E6_81_AF, _E5_BD_93_E5_89_8DBTC_USDT_E4_BB_B7_E6_A0_BC, _E5_BD_93_E5_89_8DLTC_BTC_E4_BB_B7_E6_A0_BC, _E5_BD_93_E5_89_8DLTC_USDT_E4_BB_B7_E6_A0_BC;\n\n\n    while (true) {\n        Log(exchanges[0].GetName());\n        BTC_USDT = exchanges[0].GetCurrency();\n        LTC_BTC = exchanges[1].GetCurrency();\n        LTC_USDT = exchanges[2].GetCurrency();\n        BTC_E8_B5_84_E4_BA_A7_E4_BF_A1_E6_81_AF = _C(exchanges[0].GetAccount);\n        LTC_E8_B5_84_E4_BA_A7_E4_BF_A1_E6_81_AF = _C(exchanges[1].GetAccount);\n        USDT_E8_B5_84_E4_BA_A7_E4_BF_A1_E6_81_AF = _C(exchanges[2].GetAccount);\n        Log('BTC-USDT汇率' + String(_E5_BD_93_E5_89_8DBTC_USDT_E4_BB_B7_E6_A0_BC));\n        Log('LTC-BTC汇率' + String(_E5_BD_93_E5_89_8DLTC_BTC_E4_BB_B7_E6_A0_BC));\n        Log('LTC-USDT汇率' + String(_E5_BD_93_E5_89_8DLTC_USDT_E4_BB_B7_E6_A0_BC));\n        Log('BTC数量' + String(BTC_E8_B5_84_E4_BA_A7_E4_BF_A1_E6_81_AF.Stocks));\n        Log('LTC数量' + String(LTC_E8_B5_84_E4_BA_A7_E4_BF_A1_E6_81_AF.Stocks));\n        Log('USDT数量' + String(USDT_E8_B5_84_E4_BA_A7_E4_BF_A1_E6_81_AF.Stocks));\n        _E5_BD_93_E5_89_8DBTC_USDT_E4_BB_B7_E6_A0_BC = _C(exchanges[0].GetTicker).Last;\n        _E5_BD_93_E5_89_8DLTC_BTC_E4_BB_B7_E6_A0_BC = _C(exchanges[1].GetTicker).Last;\n        _E5_BD_93_E5_89_8DLTC_USDT_E4_BB_B7_E6_A0_BC = _C(exchanges[2].GetTicker).Last;\n        if ((BTC_E8_B5_84_E4_BA_A7_E4_BF_A1_E6_81_AF.Stocks / _E5_BD_93_E5_89_8DLTC_BTC_E4_BB_B7_E6_A0_BC) * _E5_BD_93_E5_89_8DLTC_USDT_E4_BB_B7_E6_A0_BC > BTC_E8_B5_84_E4_BA_A7_E4_BF_A1_E6_81_AF.Stocks * _E5_BD_93_E5_89_8DBTC_USDT_E4_BB_B7_E6_A0_BC * 0.98) {\n            Log(exchanges[0].Buy(_C(exchanges[1].GetTicker).Buy, BTC_E8_B5_84_E4_BA_A7_E4_BF_A1_E6_81_AF.Stocks));\n            Log(exchanges[0].Sell(_C(exchanges[2].GetTicker).Sell, LTC_E8_B5_84_E4_BA_A7_E4_BF_A1_E6_81_AF.Stocks));\n        } else {\n            Log(exchanges[0].Sell(_C(exchanges[0].GetTicker).Sell, BTC_E8_B5_84_E4_BA_A7_E4_BF_A1_E6_81_AF.Stocks));\n        }\n        Log('结束');\n        Sleep(1 * 1000);\n    }\n    LTC_E8_B5_84_E4_BA_A7_E4_BF_A1_E6_81_AF = _C(exchanges[1].GetAccount);\n}"}

More