Copy trading on DEXs is a less common feature compared to CEXs due to latency and gas constraints. Injective’s sub-second block times and low gas fees can enable automated copy trading through smart contracts.
Warp has integrated with Injective and can automate smart contract executions through a decentralized network of agents. Essentially, the user specifies the criteria under which the smart contract should execute and the agents will execute the contract accordingly.
In this case, the agents can observe the block events through dynamic logic queries to determine when a given address has executed a trade. As soon as this happens, the agents will automatically execute the same trade on behalf of the user in the next block.
In order to reduce complexity and risk, the user can delegate permissions to execute trades to the smart contract through authz. This negates the need for the smart contract to hold the capital which is more appealing to users.
EventCancelSpotOrder
, EventCancelDerivativeOrder
, EventNewSpotOrders
& EventNewDerivativeOrders
. Keep in mind that the contract should open exposure relative to the active wallet balance. If the address we’re copying, executes a trade of 3% relative to its balance, the contract should open a trade of 3% relative to the user’s balance.Achilleas Kalantzis, Integrations Engineer
Discord Username: achilleaskalantzis