- Beranda
- Komunitas
- Pemrograman
- XML API error on get-open-trades
Edit Komentar Anda
XML API error on get-open-trades
Menjadi Anggota Sejak Apr 18, 2011
5 postingan
May 15, 2011 at 08:16
Menjadi Anggota Sejak Apr 18, 2011
5 postingan
Hello,
Has anyone had any issues with the XML get-open-trades call giving an error "Required fields missing"?
I believe my call is well-formed. My account code and session ID are there so I don't know what could
be missing. Just before this, I make a get-my-accounts call with the same session ID and it is successful.
https://www.myfxbook.com/api/get-open-trades.xml?session=3ezZbQFNqwM7o2b9t9NQ34326=103022
Any ideas would be very helpful.
Thanks
JT
Has anyone had any issues with the XML get-open-trades call giving an error "Required fields missing"?
I believe my call is well-formed. My account code and session ID are there so I don't know what could
be missing. Just before this, I make a get-my-accounts call with the same session ID and it is successful.
https://www.myfxbook.com/api/get-open-trades.xml?session=3ezZbQFNqwM7o2b9t9NQ34326=103022
Any ideas would be very helpful.
Thanks
JT
Menjadi Anggota Sejak Jul 31, 2009
1426 postingan
May 15, 2011 at 08:22
Menjadi Anggota Sejak Jul 31, 2009
1426 postingan
You're missing the id parameter.
https://www.myfxbook.com/api/get-open-trades.xml?session=3ezZbQFNqwM7o2b9t9NQ34326&id=103022
https://www.myfxbook.com/api/get-open-trades.xml?session=3ezZbQFNqwM7o2b9t9NQ34326&id=103022
Menjadi Anggota Sejak Apr 18, 2011
5 postingan
May 15, 2011 at 14:51
Menjadi Anggota Sejak Apr 18, 2011
5 postingan
Thanks Ethan for pointing out my oversight. I did correct the parameter as you showed me
and now I get an "Invalid session." error. Very odd. Any other suggestions?
Thanks
JT
and now I get an "Invalid session." error. Very odd. Any other suggestions?
Thanks
JT
Menjadi Anggota Sejak Jul 31, 2009
1426 postingan
May 16, 2011 at 07:12
Menjadi Anggota Sejak Jul 31, 2009
1426 postingan
jtanuki posted:
Thanks Ethan for pointing out my oversight. I did correct the parameter as you showed me
and now I get an "Invalid session." error. Very odd. Any other suggestions?
Thanks
JT
The session you're using is invalid (This happens if you have logged out), so request a new session using the API.
*Penggunaan komersial dan spam tidak akan ditoleransi dan dapat mengakibatkan penutupan akun.
Tips: Memposting URL gambar/YouTube akan otomatis menyematkannya di postingan Anda!
Tips: Ketik tanda @ untuk melengkapi nama pengguna secara otomatis yang berpartisipasi dalam diskusi ini.