Jack has been passing as a boy in the slums of Five Points, Manhattan, since running away from an orphans' home at age eight. He makes his living at petty thievery, surviving pocket watch-to-pocket watch until he discovers a talent for gambling and a pretty girl who needs his help.
Tipping the Velvet by Sara Waters, though less explicit.