Code Monkey home page Code Monkey logo

egamifi's People

Contributors

egapool avatar

Watchers

 avatar

egamifi's Issues

order place直後のget orderで404 error

概要

order place直後にget orderしても404になってしまう

対策

source

internals/strategy/crossorder.go

	res, err := c.client.PlaceOrder(&orders.RequestForPlaceOrder{
		Market: c.long,
		Side:   "buy",
		Type:   "limit",
		Size:   size,
		Price:  price,
	})
	if err != nil {
		log.Fatal(err)
	}
	wait := 0
	for {
		fmt.Println("Check Order type ID ", res.ID)
		status, err := c.client.OrderStatus(&orders.RequestForOrderStatus{
			OrderID: strconv.Itoa(res.ID),
		})
		if err != nil {
			log.Fatal(err)  // <--- ここ
		}
		fmt.Println(status)
		if status.Status == "closed" {
			fmt.Println("完全約定しました", c.long)
			return status
		}
		wait++
		if wait > 10 {
			fmt.Println("約定しなかった")
			return status
		}
		time.Sleep(time.Millisecond * 100)
	}

Cli Tool化する

bot strategy daemon

// operation auto trade strategy 
$ egamifi bot crossorder

date collection

// collecting funding rate history
$ egamifi collection fr

// collect ticker history that 
$ egamifi collection ticker
$ egamifi collection tradehistory

provide api server

$ egamifi server

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.