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

binance: move binance to separate package and add lot size utility #2984

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

buck54321
Copy link
Member

A bit of a refactor and the utility described in #2960.

Copy link
Member

@JoeGruffins JoeGruffins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

./lotsizes --global
LTCBTC: 100000 litoshi (0.00100000 LTC)
LTCETH: 100000 litoshi (0.00100000 LTC)
DOGEBTC: 100000000 Sats (1.00000000 DOGE)
ETHBTC: 100000 gwei (0.000100000 ETH)
POLETH: 100000000 gwei (0.100000000 MATIC)
MATICETH: 100000000 gwei (0.100000000 MATIC)
DASHBTC: 100000 Sats (0.00100000 DASH)
MATICBTC: 100000000 gwei (0.100000000 MATIC)
DCRBTC: 100000 atoms (0.00100000 DCR)
POLBTC: 100000000 gwei (0.100000000 MATIC)
BCHBTC: 100000 Sats (0.00100000 BCH)
DGBBTC: 100000000 digiSatoshi (1.00000000 DGB)
DASHETH: 100000 Sats (0.00100000 DASH)

@JoeGruffins
Copy link
Member

I cant use test binance on simnet anymore with these changes, getting the error api error: failed to create CEX: unrecognized CEX: Binance

@buck54321
Copy link
Member Author

./lotsizes --global
LTCBTC: 100000 litoshi (0.00100000 LTC)
LTCETH: 100000 litoshi (0.00100000 LTC)
DOGEBTC: 100000000 Sats (1.00000000 DOGE)
ETHBTC: 100000 gwei (0.000100000 ETH)
POLETH: 100000000 gwei (0.100000000 MATIC)
MATICETH: 100000000 gwei (0.100000000 MATIC)
DASHBTC: 100000 Sats (0.00100000 DASH)
MATICBTC: 100000000 gwei (0.100000000 MATIC)
DCRBTC: 100000 atoms (0.00100000 DCR)
POLBTC: 100000000 gwei (0.100000000 MATIC)
BCHBTC: 100000 Sats (0.00100000 BCH)
DGBBTC: 100000000 digiSatoshi (1.00000000 DGB)
DASHETH: 100000 Sats (0.00100000 DASH)

I wonder why you don't have any USDT markets. Maybe deposits were disabled temporarily? Can someone check global again?

@buck54321
Copy link
Member Author

I cant use test binance on simnet anymore with these changes, getting the error api error: failed to create CEX: unrecognized CEX: Binance

Whoops. Fixed


func mainErr() error {
var global bool
flag.BoolVar(&global, "global", false, "use Binance Global (binance.com)")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flag should probably be "us" as global is more common, but nbd.

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

Successfully merging this pull request may close these issues.

3 participants