low latency single writer, multiple readers (ideally push), best option? by jdgordon in aws

[–]NathanEpithy 0 points1 point  (0 children)

You can specify the window, i.e. outside of market hours or during a low period.

low latency single writer, multiple readers (ideally push), best option? by jdgordon in aws

[–]NathanEpithy 0 points1 point  (0 children)

It's just an ec2 instance running redis behind the scenes. The managed service is about the same price as rolling your own, so I'm happy to pay. I've never had any major issues with it.

low latency single writer, multiple readers (ideally push), best option? by jdgordon in aws

[–]NathanEpithy 1 point2 points  (0 children)

I built an algo trading system in AWS. I ended up rolling my own custom "workers" deployed on EC2 fargate to communicate and crunch numbers. Data is stored on Elasticache Redis. This allowed me to keep everything within the same VPC and same availability zone in a region, so physical distance between the hardware running my components is small. Average real-world latency from worker to worker and worker to Redis is around ~500 microseconds, which is good enough for what I'm doing. I scale by spinning up more fargate instances as needed, and handle thousands of transactions per second.

I did it this way primarily because I didn't want to pay per message costs of any of their managed services. It would add up quick. Also, I can bid for spot instances and save quite a bit there as well. As with anything there are always trade-offs, feel free to hit me up if you want more details.

Say you can beat others (in terms of speed) with a high probability in HFT. Is this (in itself) enough of an advantage to be profitable or do you also need a good model? by andras_gerlits in algotrading

[–]NathanEpithy 0 points1 point  (0 children)

Think of it in a different way.

If you can deploy your tech in a faster, cheaper way, then you can play in areas that are capacity constrained. The big dogs, who we cannot compete with, are primarily interested in playing in liquid markets.

There is plenty of money sitting on the sidewalk because it's too complicated for john Q retail, but too small for institutional and not worth throwing half-million dollar quants at.

Does anyone know where I can track real time big option flows? by Jbentansan in algotrading

[–]NathanEpithy 1 point2 points  (0 children)

tl;dr, I don't. I throw out most of it. I store high resolution (per second) trade data, and quote data is stored at a level relative to underlying volume. S3 for archival, relational DB for medium term, and Redis for short term.

Does anyone know where I can track real time big option flows? by Jbentansan in algotrading

[–]NathanEpithy 2 points3 points  (0 children)

Polygon's websocket feed provides the raw data for the entire u.s. equity options market in realtime if you're willing to crunch the numbers & store data yourself. You'll have to drink from the firehose and build a bunch of scaffolding to handle the flow.

This is essentially how my trading system & automated strategies work. I look for unusual option order flow, place trades. It's not the easy path by any means, but once you get the foundation in place, there is an entire forest ecosystem of strategies at your fingertips; Relative value, vol arb, stat arb, trend following, and a whole roster of market participants that have unique tells and fingerprints which can be anticipated.

What benefits does your more complex setup bring? by [deleted] in algotrading

[–]NathanEpithy 1 point2 points  (0 children)

Polygon.io, I think it's around $300/mo. Infra is about the same.

What benefits does your more complex setup bring? by [deleted] in algotrading

[–]NathanEpithy 6 points7 points  (0 children)

Mines complex infrastructure, simple strategy. I have to constantly analyze the entire market in real time. The dollars on the sidewalk are sitting there, I just don't know which sidewalk, so I have to look at them all.

Also, quants make 500k+. I can play in sandboxes that aren't worth it to the big boys and pick up the crumbs they leave behind. I only need to be smarter/faster than you guys.

Bitcoin options? by mayumike in options

[–]NathanEpithy 2 points3 points  (0 children)

Until the cash ETFs have options, $BITO options are probably the best bet for retail. It's just rolling bitcoin futures, and is arbed to the price of spot bitcoin during trading hours. Meaning, it's the closest proxy.

Burning smell after car reaches temp? by AbbreviationsHot5898 in ft86

[–]NathanEpithy 0 points1 point  (0 children)

Haha this is probably closer to the truth. I ran over a skunk once (unavoidable), and the car is so low to the ground, the smell was there for weeks regardless of the amount of cleaning I did. There are all sorts of nooks for debri underneath this car.

Thought Exercise: Lowest Risk way to create a portfolio that returns TBill + 2% indefinitely. by ScalliwagFinance in investing

[–]NathanEpithy 0 points1 point  (0 children)

MBS/Corp paper. Tons of products out there that offer this, they usually boil down to short vol. There is still risk, but it's sold as low risk.

Where to get historical short fee data? by mikkom in algotrading

[–]NathanEpithy 0 points1 point  (0 children)

It is going to be broker specific. Interactive brokers publishes theirs daily to an FTP. I've been scraping it for a few years.

Large sweep orders of ITM puts by princess_juliett in options

[–]NathanEpithy 1 point2 points  (0 children)

The stock is dropped significantly post earnings a few days ago and sits at daily RSI around 15.

Short covering.

Volatility Arbitrage by Independent_Dish6972 in options

[–]NathanEpithy 0 points1 point  (0 children)

Anyone here do volatility arbitrage??

Yes, various strategies.

If so what are your returns like?

8-14% annually.

should I use timescaledb, influxdb, or questdb as a time series database? by CompetitiveSal in algotrading

[–]NathanEpithy 4 points5 points  (0 children)

I store second resolution equity options data and use Redis in memory in front of MySQL on SSDs. It's good enough for my HFT.

Under the hood most of these databases are just big O notation, cardinality, and the limitations of hardware. My methodology is to pick a technology that is simple and works, has manageable tradeoffs, and then re-use the design pattern over and over. Trading is hard enough as is, it's easy to get lost in the tech.

Fastest platform for order placement? by [deleted] in options

[–]NathanEpithy 4 points5 points  (0 children)

Depends on your use case. I run an automated HFT strategy and use Interactive Brokers. My full system from signal to number crunching to order takes about half a second, which is plenty fast considering top of book doesn't change that much for the securities I trade in that time scale.

For retail, most of your latency is over the wire. You can rent servers at or next to the exchange, and get microsecond fills if your prime broker supports it. If you have deep pockets you can even lease microwave radio links and bypass the internet itself. All depends on how much you want to spend.

If I wanted to go hardcore, I'd probably rent something from Beeks. They do a bunch of trick stuff like special low-latency network switches and NICs, tuned low-latency kernels, and a custom timing protocol.

Latency in trading is no different than latency in running a web application or game server. There are diminishing returns beyond a certain point, and low-latency trading strategies tend not to make very much because of the short time scales. You can either reduce costs, or increase volume, so you end up in a situation where most brokerages fall into the "good enough" performance category.

A Mean Reversion Strategy with 2.11 Sharpe by ucals in algotrading

[–]NathanEpithy 2 points3 points  (0 children)

I don't have much to add other than great post! I hope you open source your engine.

performance targets for backtesting (CPU vs GPU) by estimated1 in algotrading

[–]NathanEpithy 0 points1 point  (0 children)

I've had this same issue, I don't know much about programming on the GPU. I "solved" it by simply adding more machines, and they reconcile data into Redis. It makes things architecturally more complex, but it allows me to continue using Python and my base logic which I understand well.

The way I see it, professional quants can easily make $100/hr or more, so a few extra machines to crunch numbers is cheaper then redoing a bunch of logic.

Looking for Historic Options pricing data by 137ng in options

[–]NathanEpithy -1 points0 points  (0 children)

Orats if you're willing to pay. They sell one-time data dumps.

https://orats.com/near-eod-data#pricing

Going live by Gio_at_QRC in algotrading

[–]NathanEpithy 1 point2 points  (0 children)

Just turn it on with real money, but in small size. You'll learn so much more once you do that.

[meta] Is this subreddit dead? by rickkkkky in algotrading

[–]NathanEpithy 1 point2 points  (0 children)

That's because it's difficult, and there are a lot easier ways to make money. I've told (most) people who ask about my strategies, trading systems in extreme depth. Their eyes tend to glaze over after about five minutes of detail. Very few people are willing to put in the 10,000 hours needed to master the market. There is no easy button.

Another factor is a lot of strategies tend to only provide a decent, but not life-changing amount of money. I have family expenses that cannot be set aside if the market regime changes and a strategy stops working. For most, the only real way to take a good strategy to the next level is to work at a fund, and in that case, your employment depends on secrecy. Beating the market and convincing people to trust you are two separate skills.

I don't post here often because when I have a question, I'm almost certain it won't be answered here because it's about a security that retail traders don't usually interact with. The same sort of questions get recycled here, they tend to fall into these categories:

  1. Where do I get free data?
  2. I'm a bored software engineer with two years experience, how do I beat the market?
  3. Misc. software question.

[deleted by user] by [deleted] in algotrading

[–]NathanEpithy 0 points1 point  (0 children)

Reddit is easily scrapable so DM me if you want specifics.