Prerequisites

Moby runs on Arbitrum in a self-custodial manner, so we cannot provide a private API(because it is a centralized way). Instead, you can open and close positions on your own using the following script files. Here are the instructions for preparing steps.

1. Download the script files

git clone git@github.com:letsjake/moby-trade-scripts.git

2. Installation

Unzip the scripts and run this command:

yarn install && yarn global add ts-node

3. Fill .env file

What you need to run the script is your private key of evm account and rpc provider. Please create .env with the following content. You can refer to the .env.template file.

PRIVATE_KEY= # Private key of your trading account
RPC_URL= # RPC URL of the Arbitrum mainnet

Finally, everything is all set for running the scripts. :)

Last updated