Skip to content

fix(gate): repair get_starting_time for spot and return milliseconds - #665

Open
takinanton wants to merge 1 commit into
jesse-ai:masterfrom
takinanton:fix-gate-starting-time
Open

takinanton wants to merge 1 commit into
jesse-ai:masterfrom
takinanton:fix-gate-starting-time

Conversation

@takinanton

Copy link
Copy Markdown

Gate spot get_starting_time sent contract where the spot candlesticks endpoint wants currency_pair so every call came back 400 MISSING_REQUIRED_PARAM and the importer quietly fell back to the requested start. It also read the row as a dict but spot rows are lists. The futures lookup worked but returned seconds while the importer compares milliseconds so an early start was never clipped to the listing. Both now return the first weekly candle in ms and there is a regression test next to the other starting time tests. Checked live on BTC-USDT where spot went from the 400 to 1514764800000 and futures from 1574035200 to 1574035200000.

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

Successfully merging this pull request may close these issues.

1 participant