Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add test case #1

Open
qct opened this issue Jan 3, 2018 · 5 comments
Open

add test case #1

qct opened this issue Jan 3, 2018 · 5 comments
Assignees

Comments

@qct
Copy link
Owner

qct commented Jan 3, 2018

main test is too naive, add formal test case instead.

@qct qct self-assigned this Jan 3, 2018
@DaKoTaGeorgia
Copy link

Hello, i run with main.go tests Good Job!
but please let mek now how i can start live bitmex trading or it's need build my self?
please let me know

@qct
Copy link
Owner Author

qct commented Apr 6, 2018

@DaKoTaGeorgia
No, you don't need to build yourself.

  1. go get github.com/qct/bitmex-go
  2. import this repo like main.go:
import (
    "github.com/qct/bitmex-go/restful"
    "github.com/qct/bitmex-go/swagger"
    "golang.org/x/net/context"
    "io/ioutil"
    "log"
)
  1. then you can do live bitmex trading like what did in main.go:
orderApi := restful.NewOrderApi(apiClient.OrderApi, auth)
resp, orderId, err := orderApi.LimitBuy("XBTUSD", 1.0, 13000, "qct_f_f_")

@DaKoTaGeorgia
Copy link

yes sorry for noob questions but i now working with simple-bitmex-bot and now i run go on my macbook i run this code good but only test results... i mean when i will run your bot it will trading automatical with included logic or i need write logic myself ?

@DaKoTaGeorgia
Copy link

in you code:

orderApi := restful.NewOrderApi(apiClient.OrderApi, auth)
resp, orderId, err := orderApi.LimitBuy("XBTUSD", 1.0, 13000, "qct_f_f_")

bot placing 1 contract 13000$ (i mean how trade automatical...)

@qct
Copy link
Owner Author

qct commented Apr 9, 2018

@DaKoTaGeorgia this repo is a SDK, not a strategy, you need to write your own logic code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants