Dydx exchange is a decentralized perpetual contract exchange that runs on the L2 blockchain system and provides L1 spot/leverage/lending services. Dydx uses a hybrid infrastructure model, mainly non-custodial, on-chain settlement and off-chain low-latency matching engines with order books.