for the morning crowd/in case you missed it @macrocephalopod issued a standing duel challenge to all comers last night. Rumor has it if you beat him you inherit a mysterious programming package from him that adds .1 to your sharpe on any quant strategyhttps://twitter.com/macrocephalopod/status/1372338869262299136 …
-
-
Replying to @ValueHao @macrocephalopod
But can it account for variances in daylight savings time?
1 reply 0 retweets 1 like -
Uhhhh he said it could improve your risk adjusted returns, not do things that are literally impossible smh
1 reply 0 retweets 4 likes -
Replying to @macrocephalopod @cinglein
ValueHao Retweeted ValueHao
had to do it to emhttps://twitter.com/ValueHao/status/1372616810114203653 …
ValueHao added,
1 reply 0 retweets 2 likes -
Replying to @ValueHao @macrocephalopod
I wonder if a universal calendar app/library would be a good startup idea? Datetimes seem to be a huge pain for everyone, but also something that theoretically ought to be easy to scale/automate.
1 reply 0 retweets 0 likes -
Replying to @cinglein @macrocephalopod
yeah I imagine it'd likely have to be a module/api and then users would specify various formats and/or data sources. Python datetime is kind of similar but isn't designed necessarily to be for finance folks if that's your angle
2 replies 0 retweets 1 like -
Even more than this I would value a single easy source for (a) day counts (b) holiday calendars (c) trading hours
1 reply 0 retweets 1 like -
Replying to @macrocephalopod @ValueHao
All that sounds doable. If this scales, even doing it manually for one-offs (idk, leap year plus lunar calendar shenanigans or something) might be worth it. Can I dm you if I make this?
1 reply 0 retweets 0 likes -
Sure, though be aware that the single biggest problem with holiday calendars/trading hours is getting the data, keeping it up to date, and providing point-in-time historical data
1 reply 0 retweets 1 like -
Like, before Nov 2020, 3rd June 2022 was not a holiday in the UK but after nov 2020 it was and the api needs to know that, and not return this as a hol if I ask for the UK holiday calendar as of Oct 2020
2 replies 0 retweets 1 like
Most places buy the calendars/trading hours data from somewhere and then write their own API over it but of course that only supports a subset of use cases and is probably full of bugs
-
-
Replying to @macrocephalopod @ValueHao
Shouldn't all that be public information though? Like, the exchange should list its trading hours and governments should list holidays?
2 replies 0 retweets 0 likes -
Replying to @cinglein @macrocephalopod
In theory yes, but in practice the reliability of any data source is gonna be shaky for a variety of reasons (assuming you’re trying to programmatically scrape or whatever) and the alternative is checking like x num of sources daily w x going dec high to be a useful api
0 replies 0 retweets 1 like
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.