The NYC electric code is based on the National Electric Code from a few years earlier. Everywhere else uses the National Electric Code which is like $150.
The NEC is also free online (with registration). The NYC amendments are also available starting on page 30 of "Local Law 39 of 2011" linked from the page.
> 27-3025 The New York city amendments to the 2008 National Electrical Code. The
following New York City amendments to the 2008 National Electrical Code are hereby adopted as
set forth in this section. In the event of conflicts between technical provisions, the more restrictive
shall apply:
2008 NEC New York City Amendment
https://www.nyc.gov/site/buildings/codes/electrical-code.pag...