Je viens de tester avec une simple requête sans rien autour, rien à faire je ne reçois qu'un tableau de 20 transactions !
A moins que je m'y prenne mal, est ce que quelq'un a ce problème ?
Je viens de poser la question à ig, on verra bien....
Code : #
r = requests.get(urls.transactionhistoryurl % (daydate, daydate),
headers=urls.fullheaders, proxies=personal.proxies)
Code : #
r = requests.get(urls.transactionhistoryurl % (daydate,daydate) + "?pageSize=500",
headers=urls.fullheaders, proxies=personal.proxies)
Code : #
(2015-08-04 14:51:42.2769) <-- GET https://demo-api.ig.com/gateway/deal/confirms/RUXRVHHH4Q8BWRG
BODY:
{
"status" : null,
"reason" : "SUCCESS",
"dealStatus" : "ACCEPTED",
"epic" : "coucou.D.LCO.UME.IP",
"expiry" : "-",
"dealReference" : "RUXRVHHH4Q8BWRG",
"dealId" : "DIAAAAAM574XFAG",
"affectedDeals" : [
{
"dealId" : "DIAAAAAM574XFAG",
"status" : null
}
],
"level" : 5078.2,
"size" : 1.0,
"direction" : "BUY",
"stopLevel" : null,
"limitLevel" : null,
"stopDistance" : null,
"limitDistance" : null,
"guaranteedStop" : false,
"trailingStop" : false
}
Code : #
(2015-08-04 14:51:41.3565) --> POST https://demo-api.ig.com/gateway/deal/workingorders/otc
(...)
BODY:
{
"epic" : "coucou.D.LCO.UME.IP",
"expiry" : "-",
"direction" : 0,
"size" : 1.0,
"level" : 5078.2,
"type" : "LIMIT",
"currencyCode" : "EUR",
"timeInForce" : "GOOD_TILL_DATE",
"goodTillDate" : "2015/08/04 13:56:31",
"guaranteedStop" : false,
"stopDistance" : null,
"limitDistance" : null
}
Code : #
{
"epic": "coucou.D.LCO.UME.IP",
"expiry": "-",
"direction": "BUY",
"size": "1",
"orderType": "MARKET",
"level": null,
"guaranteedStop": "false",
"stopLevel": null,
"stopDistance": null,
"trailingStop": null,
"trailingStopIncrement": null,
"forceOpen": "false",
"limitLevel": null,
"limitDistance": null,
"quoteId": null,
"currencyCode": "EUR"
}