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

How to open more than one market or pair? #745

Open
jomagalo opened this issue Feb 26, 2024 · 1 comment
Open

How to open more than one market or pair? #745

jomagalo opened this issue Feb 26, 2024 · 1 comment

Comments

@jomagalo
Copy link

jomagalo commented Feb 26, 2024

I also don't see a way to open a certain market. If I create multiple markets and use tdex market open it only opens the first market created, but I don't see a way to call a market or pair by name in order to open it.

I suppose there should be some command like:

tdex market open lbtc_usdt
tdex market open lbtc_eur
or
tdex market open --name lbtc_usdt
tdex market open --name lbtc_eur

But it has no effect, it only opens the first market or pair created.

In summary, with what commands can you refer to one market and another?

tdex market open -help
NAME:
   tdex operator CLI market open - open a market

USAGE:
   tdex operator CLI market open [command options] [arguments...]

OPTIONS:
   --help, -h  show help (default: false)
@tiero
Copy link
Collaborator

tiero commented Feb 27, 2024

To switch market to operate on you use:

tdex config set base_asset 144c654344aa716d6f3abcc1ca90e5641e4e2a7f633bc09fe3baf64585819a49

tdex config set quote_asset f3d1ec678811398cd2ae277cbe3849c6f6dbd72c74bc542f7c4b11ff0e820958

then all following commands will refer to that market

https://dev.tdex.network/docs/latest/provider/daemon/market_account#create-a-market

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