|
SERVİS APİ DOKÜMANI |
Bu servis ile verilen sembolün belirli periyottaki getiri verilerini listeleyebilirsiniz.
Method | Url |
GET | {{api_url}}Sembol/SembolGetiri?Sembol={{Sembol}}&Sembol={{Sembol}}&DataType={{DataType}}&api_key={{api_key}} |
Type | Params | Values |
URL_PARAM | Sembol | string |
URL_PARAM | api_key | string |
URL_PARAM | DataType | string |
Sembol: Sembol. Hisse kısa kodu.
DataType: Dönüş cevabında alınmak istenilen değerler bu alan virgülle ayrılarak yazılır. P=Yüzde fark, A=Ağırlıklı ortalamalar, H=Yüzelsel değerler , L=Düşük değerler.
api_key: Server bilgilerinde api key değeri pre-define olarak verilmiştir.
Status | Response |
200 |
{ "yuzdeFark:"{ "gun": -0.08, "hafta": 2.03, "hafta1": 3.49, "ay": 8.22, "ay1": 14.59, "ay3": 14.19, "ay6": 24.31, "yil": 133.67, "yil1": 119.56, }, "aort:"{ "gun": 129.8553, "hafta": 128.9809, "hafta1": 127.8360, "ay": 126.4595, "ay1": 122.0266, "ay3": 116.4443, "ay6": 117.0847, "yil": 91.3295, "yil1": 89.9953, }, "yuksek:"{ "gun": 130.80, "hafta": 131.50, "hafta1": 131.50, "ay": 132.60, "ay1": 132.60, "ay3": 132.60, "ay6": 138.30, "yil": 138.30, "yil1": 138.30, }, "dusuk:"{ "gun": 128.90, "hafta": 126.60, "hafta1": 123.60, "ay": 118.10, "ay1": 108.50, "ay3": 97.20, "ay6": 97.20, "yil": 52.60, "yil1": 52.31, } } |
401 |
{ "message": { "errorText": "Bu servis için yetkiniz yok.", "errorCode": "Permission401", "isError": true, "resultText": null, "resultOk": false, "resultCode": null } } |
Örnek kullanım: {{api_url}}Sembol/SembolGetiri?Sembol=GARAN&DataType=P,A,H,L&api_key={{api_key}}