make your ftx smart
- copy
input.json.default
toinput.json
and install npm pacakges
# npm install
npm install
# copy input.json.default to input.json
cp input.json.default input.json
- modfied
input.json
, paste yourapiKey
andsecrectKey
(generate your api key here)
{
"apiKey": "{YOUR-API-KEY}",
"secretKey": "{YOUR-SECRECT-KEY}"
}
- run
npm run earn_current
to get your earning count
# run `npm run earn_current` to get your earning count
npm run earn_current
result included all sub-accounts
- run
npm run lending_offer
to send lending offers
# run `npm run lending_offer` to send lending offers
npm run lending_offer
this script will send all remains USD to lending offer.
runnpm run lending_offer -- --subAccount={YOUR-SUB_ACCOUNT-NAME}
to work in subAccount