Rev 797 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 797 | Rev 798 | ||
|---|---|---|---|
| Line 57... | Line 57... | ||
| 57 | 57 | ||
| 58 | writer.write("data;hora;open;high;low;close;volume;wap;count"); |
58 | writer.write("data;hora;open;high;low;close;volume;wap;count"); |
| 59 | writer.newLine(); |
59 | writer.newLine(); |
| 60 | 60 | ||
| 61 | CompletableFuture<List<Bar>> fut = ibkr.prepararFutureHistorico(reqId); |
61 | CompletableFuture<List<Bar>> fut = ibkr.prepararFutureHistorico(reqId); |
| 62 | /*
|
- | |
| - | 62 | ||
| 63 | ibkr.getClient().reqHistoricalData(
|
63 | ibkr.getClient().reqHistoricalData( |
| 64 | reqId,
|
64 | reqId, |
| 65 | contract,
|
65 | contract, |
| 66 | endDateTime,
|
66 | endDateTime, |
| 67 | durationStr,
|
67 | durationStr, |
| Line 70... | Line 70... | ||
| 70 | 1,
|
70 | 1,
|
| 71 | 2,
|
71 | 2,
|
| 72 | false,
|
72 | false,
|
| 73 | (List<TagValue>) null
|
73 | (List<TagValue>) null |
| 74 | );
|
74 | ); |
| 75 | */
|
- | |
| 76 | 75 | ||
| - | 76 | /*
|
|
| 77 | ibkr.getClient().reqHistoricalData( |
77 | ibkr.getClient().reqHistoricalData(
|
| 78 | reqId, |
78 | reqId,
|
| 79 | contract, |
79 | contract,
|
| 80 | endDateTime, |
80 | endDateTime,
|
| 81 | durationStr, |
81 | durationStr,
|
| Line 84... | Line 84... | ||
| 84 | 1,
|
84 | 1,
|
| 85 | 2,
|
85 | 2,
|
| 86 | false,
|
86 | false,
|
| 87 | null
|
87 | null
|
| 88 | ); |
88 | );
|
| 89 | - | ||
| - | 89 | */
|
|
| 90 | 90 | ||
| 91 | 91 | ||
| 92 | List<Bar> bars = fut.get(60, TimeUnit.SECONDS); |
92 | List<Bar> bars = fut.get(60, TimeUnit.SECONDS); |
| 93 | 93 | ||
| 94 | ZoneId zoneId = ZoneId.of("America/Maceio"); |
94 | ZoneId zoneId = ZoneId.of("America/Maceio"); |