Open okankonur opened 7 months ago
Thanks for the idea 👍
I was thinking about this recently. I have some sketches on how to design this as a user friendly way.
I think there should be two things:
1) A method for getting the returns between two days. 2) A method for getting GETIRI1A, GETIRI3A, etc, for any given date.
Can you pass a date to this:
url=f"https://fundturkey.com.tr/api/DB/BindComparisonFundReturns",
data= {
"calismatipi": 2,
"fontip": "YAT",
"strperiod": "1,1,0,1,1,0,0",
"islemdurum": 1
}
Thanks for the response. As far as I tested, no. If you want to get returns for a given date range you use calismatipi=1
and it returns single GETIRIORANI
value like the first example in the original post.
If you want the returns for 1A, 3A, etc. you use calismatipi=2
. Passing any date parameter like bastarih
or bittarih
does not seem to change the results. It calculates according to the current date.
I agree with you on the user friendly way. I think it would be cleaner to have this functionality with other fetch methods available to end user for choosing between given date or default periods.
Hi, maybe support for fund returns comparison page can be added.
Post data sample:
Response sample:
OR
islemdurum
denotes if the fund is traded in Tefas. Also I would really appreciate if there was a way to make the same distinction for the historical data endpoint.