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

XASX closing auction print #248

Open
j7zAhU opened this issue Oct 13, 2022 · 3 comments
Open

XASX closing auction print #248

j7zAhU opened this issue Oct 13, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@j7zAhU
Copy link

j7zAhU commented Oct 13, 2022

Normal trading ceases at 1600 for the ASX, after which there is a dutch auction at 1610 for the final day-close print. Would it be possible to account for this somehow. Perhaps a 'match' session?

Cheers

@maread99
Copy link
Collaborator

Hi @j7zAhU.

exchange_calendars has historically only been concerned with regular trading times. Although, that's not to say that it couldn't incorporate additional timings. I suspect we'd be open to a PR suggesting a framework to register / provide such information (@gerrymanoim - ?).

I believe pandas_market_calendars now provides for something along these lines - perhaps start by having a look at how it's been implemented there?

Cheers

@maread99 maread99 added the enhancement New feature or request label Oct 23, 2022
@ValueRaider
Copy link

I've implemented a solution to this, but in another code so cannot comment on feasibility of modifying trading_index(). But happy to discuss the framework.

I add an "auction" datetime column to calendar, that's only change to schedule. Most work is in creating the trading intervals:

  • assume auction consumes 1 minute. Nothing official on end time to confirm this, maybe it's 1 second
  • map auction time to a trading interval as if it was during the session, then adjust the 'auction interval' close to match auction end time. If 'auction interval' overlaps the actual last session interval, merge them.

Merging should only happen with large periods e.g. 1h. With small periods e.g. 5m there should be a gap between close and auction.

@j7zAhU
Copy link
Author

j7zAhU commented Oct 23, 2022

The final print happens at a random time within that minute

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

No branches or pull requests

3 participants