评分: Empty Star Empty Star Empty Star Empty Star Empty Star
Doing something wiith fxbook API - anybody know how?
Elkart

从……加入成为会员 Aug 01, 2009  941个发言 Elkart (Elkart) Nov 07 2010 at 12:35 (最后编辑时间Nov 07 2010 at 12:41 )
The idea was to get the xml feed for my statement, so I can plonk it in a box.

I have a rss feeder in http://www.rssinclude.com now they would want this from the API:

https://www.myfxbook.com/api/get-open-trades.xml?sessiDSL07vu14QxHWErTIAFrH40&id=12345

But it won't work as I have login first like so:

https://www.myfxbook.com/api/login.xml?email=elvis@yahoo.com&password=letsboogie

Chang beer is evil.
Elkart

从……加入成为会员 Aug 01, 2009  941个发言 Elkart (Elkart) Nov 07 2010 at 14:01
Let me rephrase that slightly,

I presume I can do this in a html editor? If I can't I'm out of my league...

Chang beer is evil.
aj90151

从……加入成为会员 Mar 07, 2010  56个发言 aj90151 Nov 07 2010 at 16:04
Elkart - you'll need some kind of ajax script (you can use some framework like jquery or protoytpe) invoke the API url and then parse the JSON.

Take a look here :

http://viralpatel.net/blogs/2009/04/jquery-ajax-tutorial-example-ajax-jquery-development.html

...
aj90151

从……加入成为会员 Mar 07, 2010  56个发言 aj90151 Nov 07 2010 at 16:05
p.s - yes it can be done in html editor

...
Elkart

从……加入成为会员 Aug 01, 2009  941个发言 Elkart (Elkart) Nov 07 2010 at 17:49
K - thanks man.

I don't think I'll delve into it. Thought I'd amuse myself for a while by trying to do something constructive, but it looks like a whole 'thing'.

Chang beer is evil.
dodgesparks

从……加入成为会员 Dec 09, 2010  217个发言 edward (dodgesparks) Jan 08 2011 at 17:46
i would probably complicate things unnecessarily, as usual.

first, it looks like they want for you to request a sessionid.

so, call up this page in your browser:

http://www.myfxbook.com/api/login.xml?email=dodgesparks@yahoo.com&password=MYPASSWORD

upon calling up that webpage, you will receive back the following:

<?xml versi'1.0' encoding='UTF-8' ?>
- <response error='false' message=''>
  <session>zB3cupCbawTJVlSPA11024680</session>
  </response>

extract the sessionid from that mess and then call up your history, and then using that sessionid,
callup this page:

http://www.myfxbook.com/api/get-history.xml?sessizB3cupCbawTJVlSPA11024680&id=123456

请登入账户再评论。
FOMC Minutes (4 min)
Bank of England remains split along familiar ...(4 min ago)
EURUSD 1.28638 GBPUSD 1.50576
USDJPY 103.318 USDCAD 1.03616
工具 社区 评论 平台 公司 支持
经济日历 社区 交易商 Widget 小工具 关于 常见问题
Forex Market 系统 专业人士 功能 部落格 帮助
Forex Volatility Most Popular Systems 信号提供者 API 推特 联系我们
Forex Correlation 策略 VPS Services 移动版 Facebook 错误回报!
外汇经纪商点差 比赛 EA Programming 翻译    
Forex Broker Quotes Forex Charts PAMM Brokers RSS    
Forex Broker Swaps 社区展望 Rebate Programs      
串流外汇新闻   Trading Platforms      
Forex Broker Volume          
COT Data New          

网站地图  |   合作条款  |   隐私权政策
©2012 Myfxbook Ltd. All Rights Reserved.
HIGH RISK WARNING: Foreign exchange trading carries a high level of risk that may not be suitable for all investors. Leverage creates additional risk and loss exposure. Before you decide to trade foreign exchange, carefully consider your investment objectives, experience level, and risk tolerance. You could lose some or all of your initial investment; do not invest money that you cannot afford to lose. Educate yourself on the risks associated with foreign exchange trading, and seek advice from an independent financial or tax advisor if you have any questions. Any data and information is provided 'as is' solely for informational purposes, and is not intended for trading purposes or advice.