Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect timestamp returned in ticks_history response. #260

Open
AlvinKimata opened this issue Aug 4, 2024 · 0 comments
Open

Incorrect timestamp returned in ticks_history response. #260

AlvinKimata opened this issue Aug 4, 2024 · 0 comments

Comments

@AlvinKimata
Copy link

AlvinKimata commented Aug 4, 2024

When making a request to the ticks_history endpoint with a specific end parameter timestamp, the response returns the latest tick data with a different timestamp than expected. I am issuing a request from the api explorer using the details below.

{
  "ticks_history": "R_50",
  "adjust_start_time": 1,
  "count": 10,
  "end": "1640985202",
  "start": 1,
  "style": "ticks",
}

Note that the end parameter is a timestamp whose datetime format is (2022-1-1, 0:13:22 UTC). However I get a response with the latest tick data:

"history":{
  "prices":[
  0:252.6844
  1:252.7016
  2:252.7002
  3:252.6632
  4:252.6145
  5:252.6417
  6:252.6786
  7:252.7007
  8:252.6653
  9:252.662
]
  "times":[
  0:1722807384
  1:1722807386
  2:1722807388
  3:1722807390
  4:1722807392
  5:1722807394
  6:1722807396
  7:1722807398
  8:1722807400
  9:1722807402
  ]
}
  "msg_type":"history"
  "pip_size":4
  "req_id":7
}
  • Last tick timestamp: 1722807402 (2024-08-05 00:36:42 UTC)

Expected behavior: The response should return tick data with timestamps up to the specified end parameter timestamp (2022-01-01 00:13:22 UTC).

Actual behavior: The response returns the latest tick data with a different timestamp (2024-08-05 00:36:42 UTC).

Question: What could be the cause of this discrepancy?

CC @JamesK254 @chylli-deriv @balakrishna-deriv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant