Pair Trading Lab Helpdesk & Forum

PTL Trader => Questions & Answers => Topic started by: JackBeach on August 20, 2022, 12:38:03 pm

Title: Is it possible to get the pair trade history in a CSV/JSON/TXT file?
Post by: JackBeach on August 20, 2022, 12:38:03 pm
I would like to automate the polling of the pair trade history.

Is it possible to access the info in a CSV/JSON/TXT file?
Title: Re: Is it possible to get the pair trade history in a CSV/JSON/TXT file?
Post by: admin on August 21, 2022, 04:42:03 am
This feature is not yet implemented and not planned for the near future. However the PTL Trader is open source software, you could implement it yourself or hire someone who could do it for you.
Title: Re: Is it possible to get the pair trade history in a CSV/JSON/TXT file?
Post by: JackBeach on August 21, 2022, 07:21:52 am
Thanks, Karel.

As of today, all the history is stored inside the PTL Trader code itself, or in a dedicated file?

(I couldn't find any log file instead of the one available in appdata).
Title: Re: Is it possible to get the pair trade history in a CSV/JSON/TXT file?
Post by: admin on August 25, 2022, 10:01:44 am
No, it is stored at PTL's backend and synced each time the application starts. You could actually use PTL's API to fetch the trade history. Take look at PTL Trader's source code to find the API endpoint....
Title: Re: Is it possible to get the pair trade history in a CSV/JSON/TXT file?
Post by: JackBeach on September 10, 2022, 06:51:04 am
Hi Karel,

I got it all working like a charm, thank you so much for your advise !  8)
Title: Re: Is it possible to get the pair trade history in a CSV/JSON/TXT file?
Post by: admin on September 19, 2022, 03:54:03 am
Perfect!