Author Topic: Basic market maker bot for bter BTC/bitUSD available  (Read 7680 times)

0 Members and 1 Guest are viewing this topic.

Offline biophil

  • Hero Member
  • *****
  • Posts: 880
  • Professor of Computer Science
    • View Profile
    • My Academic Website
  • BitShares: biophil
Toast, have you talked to any other exchanges yet about adding bitAssets? It seems like it would be a huge plus for an exchange to know ahead of time that there will be market-maker bots running.

Sent from my SCH-S720C using Tapatalk 2

Support our research efforts to improve BitAsset price-pegging! Vote for worker 1.14.204 "201907-uccs-research-project."

Offline abelljefrry


the config.example had a missing comma after the BterConfig value.

Spread and tolerance are both percent. MaxOrder is BTC.

Fixed. Thanks Toast.

Will pump in some fund to see it in action. :D
Need a designer for your project? Hire me! I accept BTS as payment :)

View my BitShares design portfolio here : bit.ly/BitSharesPortfolio

Xeldal

  • Guest

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
Getting the same error as Xeldal

Code: [Select]
panic: invalid character '"' after object key:value pair
I recheck my config and everything seems fine. 

Oh btw, can you explain a little bit about the parameters? Are those numbers in percentage or BTC? Pardon my noobness.

the config.example had a missing comma after the BterConfig value.

Spread and tolerance are both percent. MaxOrder is BTC.
Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.

Offline abelljefrry

Getting the same error as Xeldal

Code: [Select]
panic: invalid character '"' after object key:value pair
I recheck my config and everything seems fine. 

Oh btw, can you explain a little bit about the parameters? Are those numbers in percentage or BTC? Pardon my noobness.
Need a designer for your project? Hire me! I accept BTS as payment :)

View my BitShares design portfolio here : bit.ly/BitSharesPortfolio

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
I think the readme is wrong. You need to cd into where main.go lives.
Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.

Xeldal

  • Guest
config looks good.

Also in the readme:
Quote
cd $GOPATH/src/github.com/freetradebots/market_maker

My GOPATH and GOROOT are set with
export GOROOT=/usr/local/go
export GOPATH=$PATH:$GOROOT/bin

after go get ...
../market_maker/ ends up in
usr/local/sbin/src/github.com/freetradebots/market_maker/

so the command quoted above doesn't take you anywhere.  directory doesn't exist.

Is this my error in setting GOPATH?  remnants from an earlier version?  or is the readme cd wrong?

I had much trouble getting go to get market_maker in the first place several days ago. the directions on https://golang.org/doc/install were not very helpful for my inexperience.

export PATH=$PATH:/usr/local/go/bin   seemed to do nothing, had to set a custom location with above mentioned GOROOT etc. 

Not sure if this maybe relates to the issues I'm having.

Thanks for any assistance.
« Last Edit: January 16, 2015, 10:16:49 pm by Xeldal »

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Seems like a syntax error in your config file ... please check

Xeldal

  • Guest
It was working 4 me before I updated.
I git pull'd market_maker , updated config and now get this error.

Code: [Select]
# go run main.go
panic: invalid character '"' after object key:value pair

goroutine 1 [running]:
main.check(0x7fe592d0bd90, 0xc20801e080)
        /usr/local/sbin/src/github.com/freetradebots/market_maker/main.go:17 +0x50
main.main()
        /usr/local/sbin/src/github.com/freetradebots/market_maker/main.go:27 +0x190

goroutine 2 [runnable]:
runtime.forcegchelper()
        /usr/local/go/src/runtime/proc.go:90
runtime.goexit()
        /usr/local/go/src/runtime/asm_amd64.s:2232 +0x1

goroutine 3 [runnable]:
runtime.bgsweep()
        /usr/local/go/src/runtime/mgc0.go:82
runtime.goexit()
        /usr/local/go/src/runtime/asm_amd64.s:2232 +0x1

goroutine 4 [runnable]:
runtime.runfinq()
        /usr/local/go/src/runtime/malloc.go:712
runtime.goexit()
        /usr/local/go/src/runtime/asm_amd64.s:2232 +0x1
exit status 2

I looked through your commits and don't see anything that would cause the error.  IDK

Offline clayop

  • Hero Member
  • *****
  • Posts: 2033
    • View Profile
    • Bitshares Korea
  • BitShares: clayop
Bitshares Korea - http://www.bitshares.kr
Vote for me and see Korean Bitshares community grows
delegate-clayop

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
It's still very primitive. You will have to rebalance manually via BTS and I'm sure there are a million edge cases it can't handle.

But hey with just a few BTC we brought the bitUSD/BTC volume up from 2 BTC to 70 BTC.

If traders look at vanity numbers, let's give them vanity numbers!

https://github.com/freetradebots/market_maker
Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.