Skip to content

Instantly share code, notes, and snippets.

@tiero
Last active February 1, 2022 18:08
Show Gist options
  • Save tiero/8831b6274a1412bd89f21489a3a3e80e to your computer and use it in GitHub Desktop.
Save tiero/8831b6274a1412bd89f21489a3a3e80e to your computer and use it in GitHub Desktop.
How to check TDEX providers liquidity with BloomRPC

How to check TDEX providers liquidity with BloomRPC

Requirements

Provider endpoint

You need to know the provider endpoint first. A public list of providers can be found here

This endpoint will expose TDEX protocol APIs, such as Markets and Balances useful to check which trading pairs are listed and which liquidity they have.

TDEX Developers provide an open source tor proxy for Onion providers, to be able to consume easily providers that run behind TOR, in any situation (browser, mobile, terminal etc...)

Anytime you want to call an .onion endpoint from BloomRPC, call like this proxy.tdex.network/<onion_endpoint_without_dot_onion>

  • xxx[...].onion > proxy.tdex.network/xxx[...]

Get liquidity

  1. Open BloomRPC and load the downloaded trade.proto with the green plus button. You shoudl see the following

Screenshot 2022-02-01 at 18 52 27

  1. Fill the endpoint, select TLS (Server Certificate) and switch GRPC slider (shoudl appear WEB).

Screenshot 2022-02-01 at 18 58 26

  1. Click on Markets, Now hit the Play button

Screenshot 2022-02-01 at 18 56 05

  1. Click on Balances, add a market object fetched from previous response and hit Play button

Screenshot 2022-02-01 at 18 58 51

Example with an onion eendpoint

Screenshot 2022-02-01 at 19 03 35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment