Text this: Endogenous market structures and financial development