/okex

OKEX CLI for API v5

Primary LanguageGo

OKEX API V5

include RESTFul and Websocket API

Environments

export OK_ACCESS_KEY={your-access-key}
export OK_ACCESS_SECRET={your-access-secret}
export OK_ACCESS_PASSPHRASE={your-passphrase}

Balance

make && ./okex balance

Buy Co-currency

Buy with market price

# default use USDT
make && ./okex buy PEPE 2000000

Buy with limit price

# default use USDT
make && ./okex buy --order-type limit --price 0.00000693 PEPE 2000000

Sell Co-currency

Sell with market order

# default use USDT
make && ./okex sell PEPE 2000000

Sell with limit order

# default use USDT
make && ./okex sell --order-type limit --price 0.0000073 PEPE 2000000