Stage 5: Bar Data

Time Bar Requests

1.  Send Logon message with valid credentials.

2.  Receive LogonResult with result_code='SUCCESS'.

3.  Send InformationRequest with symbol_resolution_request for symbol=’ F.US.ZUC’.

4.  Receive InformationReport with SymbolResolutionReport with status_code=’SUCCESS’ and contract_metadata for the symbol.

5.  Send TimeBarRequest with request_type=GET, bar_unit=YEAR, and valid from_utc_time and to_utc_time.

6.  Receive TimeBarReport with status_code='SUCCESS' and list of TimeBars.

7.  Send TimeBarRequest with request_type=GET and bar_unit=SEMI_ANNUAL, and valid from_utc_time and to_utc_time.

8.  Receive TimeBarReport with status_code='SUCCESS' and list of TimeBars.

9.  Send InformationRequest with symbol_resolution_request for symbol=’F.US.ZUC’.

10. Receive InformationReport with SymbolResolutionReport with status_code=’SUCCESS’ and contract_metadata for the symbol.

11. Send TimeBarRequest with request_type=GET and bar_unit= QUARTER, and valid from_utc_time and to_utc_time.

12. Receive TimeBarReport with status_code='SUCCESS' and list of TimeBars.

13. Send TimeBarRequest with request_type=GET and bar_unit= MONTH and valid from_utc_time and to_utc_time.

14. Receive TimeBarReport with status_code='SUCCESS' and list of TimeBars.

15. Send TimeBarRequest with request_type=GET and bar_unit= WEEK and valid from_utc_time and to_utc_time.

16. Receive TimeBarReport with status_code='SUCCESS' and list of TimeBars.

17. Send TimeBarRequest with request_type=GET and bar_unit= DAY, and valid from_utc_time and to_utc_time.

18. Receive TimeBarReport with status_code='SUCCESS' and list of TimeBars.

19. Send TimeBarRequest with request_type=GET and bar_unit= HOUR and units_number=1, and valid from_utc_time and to_utc_time.

20. Receive TimeBarReport with status_code='SUCCESS' and list of TimeBars.

21. Send TimeBarRequest with request_type=GET and bar_unit= MIN and units_number=1, and valid from_utc_time and to_utc_time.

22. Receive TimeBarReport with status_code='SUCCESS' and list of TimeBars.

23. Send Logoff message.

Up to Current Time Bar Requests

1.  Send Logon message with valid credentials.

2.  Receive LogonResult with result_code='SUCCESS'.

3.  Send InformationRequest with symbol_resolution_request for symbol=’ F.US.ZUC’.

4.  Receive InformationReport with SymbolResolutionReport with status_code=’SUCCESS’ and contract_metadata for the symbol.

5.  Send TimeBarRequest with request_type=GET and bar_unit=YEAR, and valid from_utc_time.

6.  Receive TimeBarReport with status_code='SUCCESS' and list of TimeBars.

7.  Send TimeBarRequest with request_type=GET and bar_unit= SEMI_ANNUAL, and valid from_utc_time.

8.  Receive TimeBarReport with status_code='SUCCESS' and list of TimeBars.

9.  Send InformationRequest with symbol_resolution_request for symbol=’F.US.ZUI’.

10. Receive InformationReport with SymbolResolutionReport with status_code=’SUCCESS’ and contract_metadata for the symbol

11. Send TimeBarRequest with request_type=GET and bar_unit= QUARTER, and valid from_utc_time.

12. Receive TimeBarReport with status_code='SUCCESS' and list of TimeBars.

13. Send TimeBarRequest with request_type=GET and bar_unit= MONTH, and valid from_utc_time.

14. Receive TimeBarReport with status_code='SUCCESS' and list of TimeBars.

15. Send TimeBarRequest with request_type=GET and bar_unit= WEEK, and valid from_utc_time.

16. Receive TimeBarReport with status_code='SUCCESS' and list of TimeBars.

17. Send TimeBarRequest with request_type=GET and bar_unit= DAY, and valid from_utc_time.

18. Receive TimeBarReport with status_code='SUCCESS' and list of TimeBars.

19. Send TimeBarRequest with request_type=GET and bar_unit= HOUR and units_number=1, and valid from_utc_time.

20. Receive TimeBarReport with status_code='SUCCESS' and list of TimeBars.

21. Send TimeBarRequest with request_type=GET and bar_unit= MIN and units_number=1, and valid from_utc_time.

22. Receive TimeBarReport with status_code='SUCCESS' and list of TimeBars.

23. Send Logoff message.

Drop Time Bar Requests

1.  Send Logon message with valid credentials.

2.  Receive LogonResult with result_code='SUCCESS'.

3.  Send InformationRequest with symbol_resolution_request for symbol=’F.US.ZUC’.

4.  Receive InformationReport with SymbolResolutionReport with status_code=’SUCCESS’ and contract_metadata for the symbol.

5.  Send TimeBarRequest with request_type=SUBSCRIBE and bar_unit= MIN and valid from_utc_time.

6.  Send TimeBarRequest with request_type=DROP and request_id of the previous request.

7.  Receive TimeBarReport with status_code='DROPPED'.

8.  Send Logoff message.