Author Topic: Is it possible to get the pair trade history in a CSV/JSON/TXT file?  (Read 211 times)

JackBeach

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
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?

admin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 324
  • Karma: +12/-0
    • Pair Trading Lab
Re: Is it possible to get the pair trade history in a CSV/JSON/TXT file?
« Reply #1 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.

JackBeach

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
Re: Is it possible to get the pair trade history in a CSV/JSON/TXT file?
« Reply #2 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).

admin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 324
  • Karma: +12/-0
    • Pair Trading Lab
Re: Is it possible to get the pair trade history in a CSV/JSON/TXT file?
« Reply #3 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....

JackBeach

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
Re: Is it possible to get the pair trade history in a CSV/JSON/TXT file?
« Reply #4 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)
« Last Edit: September 10, 2022, 06:54:19 am by JackBeach »

admin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 324
  • Karma: +12/-0
    • Pair Trading Lab
Re: Is it possible to get the pair trade history in a CSV/JSON/TXT file?
« Reply #5 on: September 19, 2022, 03:54:03 am »
Perfect!