Skip to content

vika2603/okxos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OKXOS

This is a Go library for the OKX OS API (v6).

Go.Dev reference

Installation

go get -u github.com/imzhongqi/okxos

Example

client := client.NewClient("key", "secret", "passphrase", "projectID")

walletapi := wallet.NewWalletAPI(client)

_, err := walletapi.ListSupportedChains(context.Background())
if err != nil {
    panic(err)
}

Roadmap

  1. Wallet API
    • Wallet Account Management API
    • Transaction Broadcasting API
  2. Dex API
    • Swap API
    • Cross Chain API
    • Limit Order API
  3. Marketplace API
  4. DeFi API

API Version

This library targets the OKX OS API v6 for DEX endpoints and v5 for Wallet endpoints.

Key changes from v5 to v6:

  • Base URL: https://web3.okx.com
  • DEX endpoints use /api/v6/dex/... paths
  • chainIdchainIndex
  • slippageslippagePercent
  • priceImpactProtectionPercentagepriceImpactProtectionPercent
  • maxAutoSlippagemaxAutoSlippagePercent

Contributing

Contributions are welcome! Please feel free to submit a PR.

License

MIT

About

OKX OS client API library for Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages