algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
Loading...
Searching...
No Matches
algotradelib::us Namespace Reference

The US equity price grid that the Alpaca adapter attaches to instruments, in brokers/common/us.hpp. More...

Functions

PriceRule equity_price_rule ()
 Returns the US equity price grid: $0.01 at or above $1, $0.0001 below (Regulation NMS Rule 612).

Detailed Description

The US equity price grid that the Alpaca adapter attaches to instruments, in brokers/common/us.hpp.

Function Documentation

◆ equity_price_rule()

PriceRule algotradelib::us::equity_price_rule ( )
inline

Returns the US equity price grid: $0.01 at or above $1, $0.0001 below (Regulation NMS Rule 612).

Rule 612 sets the smallest increment an order may be priced in for an NMS stock (one listed on a US national exchange); OTC equities are not covered. The half-penny tier of the 2024 amendments, for some stocks, was not checked: if it is in effect, this grid refuses an x.xx5 limit on those stocks, which is the safe direction.

Returns
The rule.

Definition at line 18 of file us.hpp.

Referenced by equity_price_rule(), and algotradelib::alpaca::AlpacaBlockingClient::instrument().