Author Topic: Python script to put portions of delegate pay into markers at or below the feed  (Read 1764 times)

0 Members and 1 Guest are viewing this topic.

Offline fluxer555

  • Hero Member
  • *****
  • Posts: 749
    • View Profile
After reading again, I now see that I misunderstood the concept. Carry on

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
I don't know about this. Doesn't this make the incentives imbalanced? Doesn't this put centralized influence into the free-market system? I'm not an economist, but this doesn't seem kosher to me.

Would it be kosher if delegates did it by hand instead? Some of us want to hedge 30% for tax reasons, for example.

Delegates don't have to run this
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 fluxer555

  • Hero Member
  • *****
  • Posts: 749
    • View Profile
I don't know about this. Doesn't this make the incentives imbalanced? Doesn't this put centralized influence into the free-market system? I'm not an economist, but this doesn't seem kosher to me.


Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Source:
https://github.com/xeroc/pytshares/blob/master/exchange-delegate-pay.py

Configuration of RPC:
from https://github.com/xeroc/pytshares/blob/master/config-sample.py
put the RPC config stuff into config.py
Code: [Select]
url = "http://127.0.0.1:19988/rpc"
user = 'username'
passwd = 'pwd'
unlock = "unlockPwd"
wallet = "default"

Configuration of Script:
Code: [Select]
accountname = "delegate.xeroc"       # the delegate
exchangename = "exchange.xeroc"      # a separate account to do the market operations
payoutname = "payouts.xeroc"      # collect all funds to that account
partition = {                                  # how to split the pay .. here 50% stay BTS 25% each for EUR and USD
"USD" : .25,
"EUR" : .25,
"BTS" : .5,
} ## BTS has to be last
spread = 0.02                # put ask 2% below feed 
txfee = 0.1 # BTS
btsprecision = 1e5


I am going to run this on a weekly basis at the above settings to feed the USD and BTS markets with my 3% pay delegate.
« Last Edit: July 31, 2019, 08:39:19 am by xeroc »