https://github.com/apachecn-archive/goex

https://github.com/apachecn-archive/goex

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (2.2%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: apachecn-archive
  • License: mit
  • Language: Go
  • Default Branch: v2.0
  • Size: 932 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 3 years ago · Last pushed about 3 years ago
Metadata Files
Readme License

README.md

Introduction

  • 统一并标准化各个数字资产交易平台的接口
  • 某些功能组件做到可插拔化,方便开发者二次开发

goex

donate

  • [BTC] 1GoEXwVvXG7kNdQSFaUNF35A3izHojLGxP
  • [USDT-TRC20] TGoExC6xvzE4wSA9cYZnwcPaXEjibA5Vtc

example

```golang package main

import ( goexv2 "github.com/nntaoli-project/goex/v2" "github.com/nntaoli-project/goex/v2/logger" "github.com/nntaoli-project/goex/v2/model" "github.com/nntaoli-project/goex/v2/options" "log" )

func main() { logger.SetLevel(logger.DEBUG) //设置日志输出级别 //goexv2.DefaultHttpCli.SetProxy("socks5://127.0.0.1:1080") //socks代理 goexv2.DefaultHttpCli.SetTimeout(5) // 5 second

_, _, err := goexv2.OKx.Spot.GetExchangeInfo() //建议调用
if err != nil {
    panic(err)
}
btcUSDTCurrencyPair := goexv2.OKx.Spot.NewCurrencyPair(model.BTC, model.USDT)//建议这样构建CurrencyPair

//共有api调用
log.Println(goexv2.OKx.Spot.GetTicker(btcUSDTCurrencyPair))

//私有API调用
okxPrvApi := goexv2.OKx.Spot.NewPrvApi(
    options.WithApiKey(""), 
    options.WithApiSecretKey(""), 
    options.WithPassphrase(""))

//创建订单
order, _, err := okxPrvApi.CreateOrder(btcUSDTCurrencyPair, 0.01, 18000, model.Spot_Buy, model.OrderType_Limit)
log.Println(err)
log.Println(order)

} ```

Owner

  • Name: ApacheCN 归档
  • Login: apachecn-archive
  • Kind: organization
  • Email: wizard.z@qq.com

防止重要项目丢失而设立的归档

GitHub Events

Total
Last Year

Dependencies

go.mod go
  • github.com/andybalholm/brotli v1.0.4
  • github.com/buger/jsonparser v1.1.1
  • github.com/google/go-cmp v0.5.9
  • github.com/google/uuid v1.3.0
  • github.com/klauspost/compress v1.15.9
  • github.com/nntaoli/go-tools v0.0.0-20221201051842-679aa56bfd2a
  • github.com/spf13/cast v1.5.0
  • github.com/valyala/bytebufferpool v1.0.0
  • github.com/valyala/fasthttp v1.44.0
  • golang.org/x/net v0.4.0
  • golang.org/x/text v0.5.0
go.sum go
  • github.com/andybalholm/brotli v1.0.4
  • github.com/buger/jsonparser v1.1.1
  • github.com/frankban/quicktest v1.14.3
  • github.com/google/go-cmp v0.5.9
  • github.com/google/uuid v1.3.0
  • github.com/klauspost/compress v1.15.9
  • github.com/kr/pretty v0.3.0
  • github.com/kr/text v0.2.0
  • github.com/nntaoli/go-tools v0.0.0-20221201051842-679aa56bfd2a
  • github.com/rogpeppe/go-internal v1.6.1
  • github.com/spf13/cast v1.5.0
  • github.com/valyala/bytebufferpool v1.0.0
  • github.com/valyala/fasthttp v1.44.0
  • github.com/valyala/tcplisten v1.0.0
  • golang.org/x/crypto v0.0.0-20220214200702-86341886e292
  • golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2
  • golang.org/x/net v0.0.0-20220906165146-f3363e06e74c
  • golang.org/x/net v0.4.0
  • golang.org/x/sys v0.0.0-20201119102817-f84b799fce68
  • golang.org/x/sys v0.0.0-20210423082822-04245dca01da
  • golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1
  • golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10
  • golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
  • golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
  • golang.org/x/text v0.3.6
  • golang.org/x/text v0.3.7
  • golang.org/x/text v0.5.0
  • golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e