glassesDevelopers

For programmatic traders and developers, please ask us for access to our Github repo. We will soon publish the whole front-end code and all SDKs. Until we are able, please ask us for private access.

See Developers for SDKs.

Pretty Quick Start

Please read Trade Only Access, i.e. Owner/Trader Separation before you start writing production code, otherwise your nonce management will be hell. Most production setups use a multi-sig (i.e. Safe contract) or offline key as account Owner and designate 2 or more keys as trade-only keys. Currently, trading via trade-only keys is only available programmatically. In the near future, the UI will be updated to handle this perspective as well; you can set your keys with this delegated access in the UI. This codearrow-up-right will be audited in the near future to securely automate depositing and withdrawing as well.

To save on gas costs and improve uptime, batch your orders into a single transaction. It is most common to batch a cancel and new order together to "reprice" limit orders. You can batch orders across markets and even across other venues on MegaETH. Order batching is not necessary for testing; it is important to be aware of before starting on your production code.

MegaETH Mini-Blocks

Mini-blocks allow MegaETH to operate at 10ms block times. You need to use them for high frequency trading. Read Mini-block docsarrow-up-right.

Swap & Router Integration

swap_router = 0x94b6706fa26a4f3dcf501ff25e1e4628b75adc69

Last updated

Was this helpful?