Edit Your Comment
attempting to access account thru JSON API - getting error: session required
會員從Sep 25, 2012開始
6帖子
Feb 22, 2018 at 22:11
會員從Sep 25, 2012開始
6帖子
Hi I posted this yesterday and it seems to have gone missing, so trying again today.
I am trying access my account data with the Webrequest and for the logon request, I am getting a message saying session is required. However, the session is not required according to the documentation and that the session is returned for further calls after.
Any ideas?
I am trying access my account data with the Webrequest and for the logon request, I am getting a message saying session is required. However, the session is not required according to the documentation and that the session is returned for further calls after.
Any ideas?
Enter Boldy
會員從Jan 05, 2016開始
1097帖子
Jul 16, 2018 at 00:49
會員從Jan 05, 2016開始
1097帖子

You need to correctly send your login information.
That is how you generate your session.
Here is the link to the API.
https://www.myfxbook.com/api
If it looks too good to be true, it's probably a scam! Let the buyer beware.
會員從Sep 25, 2012開始
6帖子
Jan 26, 2021 at 12:13
會員從Jan 19, 2021開始
7帖子
It may work for you:
Request = 'https://www.myfxbook.com/api/login.json?email=username&password=password'
response = requests.get(Request, verify = False)
data = response.json()
Session = data['session']
path = ('http://www.myfxbook.com/api/get-community-outlook.json?session=' + Session)
response = requests.get(path, verify = False)
Request = 'https://www.myfxbook.com/api/login.json?email=username&password=password'
response = requests.get(Request, verify = False)
data = response.json()
Session = data['session']
path = ('http://www.myfxbook.com/api/get-community-outlook.json?session=' + Session)
response = requests.get(path, verify = False)
會員從Dec 16, 2020開始
9帖子

*商業用途和垃圾郵件將不被容忍,並可能導致帳戶終止。
提示:發佈圖片/YouTube網址會自動嵌入到您的帖子中!
提示:鍵入@符號,自動完成參與此討論的用戶名。