civet148 / okex

OKEX CLI for API v5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

OKEX CLI for API v5


Languages

Language:Go 99.7%Language:Makefile 0.3%