Dexalot Hummingbot Stepping Stones Bhag II

Dexalot India
Dexalot
Published in
5 min readJun 26, 2023

Install kare Hummingbot aur Gateway

Dexalotls kadam badhata rehta hai. Apne dekha hai kitna aasan hai Avalanche-Dexalot-Hummingbot Dminer campaign mei enter karna apne wallet ko connect karke. Ab samay hai install karne ka Hummingbot aur Gateway ko aur taiyar hone ke liye taki aap run kar sake ek bot ko Dexalot par. Hummingbot ne halli mei Docker Compose ko add kiya hai, jisse aap dono Humminbot aur Gateway ko chala sakte hai same workflow mei. Yeh bot create karne ko kafi aasan bana deta hai taki aap dexalot se connect kar sake. Follow kare yeh multipart series aur shuru kare market making Dexalot par!

Yeh tutorial aapko dikhayega Hummingbot aur Gateway kaise install kare Docker Compose on Windows WSL2 se.

Aap inhe Linux or Mac se bhi install kar sakte hai ya source se.

Step 1 — install WSL2

Microsoft ne WSL2 installation process ko reduce kar diya hai bas ek command tak Windows 11 aur Windows 10 version 2004 mei (Build 19041 and higher).

Power shell ya command prompt window khole admin privileges ke sath and run wsl.exe — install. Jab aap enter hit karenge, process khudse shuru hojaega;

  • WSL optional features ko enable kare;
  • install Ubuntu distribution by default ( select 20.04),
  • aur install latest WSL Linux kernel version apni machine par.

Jab yeh hojaye, restart kare apni machine ko — apka distribution shuru hoga jab aap phirse boot up kar denge, completing installation process.

  • Ab type kare wsl Powershell ya Command prompt mei.

Notice kare jab pehli bar WSL execute hoga, aapse ek naya default username/password banane ke liye bola jaega; yeh likh le.

WSL ke sath, aapke pass ab ek Linux Virtual Machine running hogi Windows ke under. Aap apna Ubuntu distribution access kar sakte hai start menu se.

Check out Hummingbot Windows installation page aur zada information aur help ke liye.

Step 2 — install Docker Desktop

Iss installation mei Docker Compose, Docker Engine aurDocker CLI jo Compose prerequisites hai voh installed aaye. Docker Compose ek tool hai defining aur running multi-container Docker applications ke liye. Compose ke sath, aap ek YAML file istemal karte hai configure karne ke liye apni application’s services.

Verify kare ke Docker Compose sahi se installed hai uska version check karke apne Ubuntu terminal mei:

  • docker compose version

Output yeh hona chahiye: Docker Compose version v2.17.2 ya similar.

Step3 — Clone Hummingbot’s deploy-examples repository and download its Docker image

Ubuntu khole windows par Start Menu se aur clone kare Humminbot deploy-examples repository ko root location par apni choice ki. Deploy-examples Github repository provide karti hai kafi examples se ke kaise deploy kare Hummingbot aur Gateway par, Docker Compose ko include karke.

Dexalot integrate kara ja raha hai on the development branch, toh iss branch par switch kare agar aap abhi yaha nahi hai toh.

  • git switch development

Ab yeh commands follow kare Docker image ko dalne ke liye.

  • cd deploy-examples/hummingbot_gateway_compose
  • docker compose up -d

Jab image dal jaye, jisme kuch minute lag sakte hai, aapko yeh output dikhenge:

[+] Running 3/3

⠿ Network hummingbot_gateway_compose_default Created

⠿ Container hummingbot Started

⠿ Container gateway Started

Step 4 — Set permissions, attach Hummingbot and generate certificates

Hummingbot_files aur gateway_files sub-folders ko padhne aur likhne ki permission dene ke liye, yeh command chalaye jaha aapne deploy-examples directory add kari hogi:

  • sudo chmod -R a+rw ./hummingbot_files ./gateway_files (aapko apne password ki zaroorat hogi jo apne WSL2 ke setup ke samay banaya hoga).

Ab, attach kare hummingbot instance se:

  • docker attach hummingbot

Prompts ko follow kare aur set kare apna Hummingbot password aur usse likh le. Password na bhule. Aapko voh wapas nahi milega (directions to reset your password). Agar sab sahi gaya toh aapko yeh dikhega:

Gateway certificates pane ke liye yeh commands chalaye:

  • gateway generate-certs

Apko prompt milega passphrase keliye jo certificates generate karne ke liye use hoga. Yeh GATEWAY_PASSPHRASE environment variable hai aapke docker-compose.yml file mei — write this down. Hummingbot passphrase ko use karega certificates banane ke liye aur save karega usse hummingbot_files/certs folder mei, jaha Gateway instance certificates ko dhundh lega.

Ab Hummingbot se nikal jaye isse use karke,

  • exit

aur Docker Compose project ko hata de yeh istemal karke,

  • docker compose down

Apko yeh output dikhega:

[+] Running 3/3

⠿ Container gateway Removed

⠿ Container hummingbot Removed

⠿ Network hummingbot_gateway_compose_default Removed

Step 5 — Edit your .yml file with your new certifications and recreate your project

IDE jaise ki VSCode aur Nano ko use kare edit karne ke liye docker-compose.yml file.

Edit kare voh section jo define karta hai CONFIG_FILE_NAME environment variables ko uncommenting out voh do lines jo niche mentioned hai. Add kare apna passphrase jo apne likha tha jab aap generate kar rahe the apna certificates.

Save karle edited file ko.

Ab, recreate karle Compose project:

  • cd deploy-examples/hummingbot_gateway_compose
  • docker compose up -d

Attach karle hummingbot instance ko phirse,

  • docker attach hummingbot aur enter kare apna password.

Apko ab GATEWAY:ONLINE dikhna chahiye upper-right hand corner mei.

Aapko shyd right-sided pane par kuch messages dikhenge paratu yeh necessarily critically functionality ke liye nahi hai. Hummingbot ek local client software hai jo aap apni khudki machine par chalate hai, toh uspr aapka pura control hai ke voh kaise configured hai. Koi aur apka data aur information access nahi kar sakta! Learn more about the Hummingbot interface here.

Ab aap taiyar hai connect karne ke liye Dexalot se aur shuru karne ke liye bot ko!

Jab aap Hummingbot ko explore kar le type:

  • stop
  • exit
  • docker compose down

Agar aapke pass koi bhi sawal hai ya aapko koi help chahiye, join kare official Hummingbot Discord ko aur puche help ke liye #support channel mei. Aap assistance mang sakte hai Dexalot’s Discord par bhi!

Author: Brad McFall

Editor: Dan Marcoulis

Graphics: Can Toygar

Translator: Padma Singh

Dexalot ke bare mein:

Dexalot ek revolutionary decentralized exchange hai jiska aim traditional centralized exchange ke look aur anubhav ko decentralized on-chain application mein lana hai. Iska mission vaastav mein inclusive aur transparent environment lana hai. Jaha Dexalot users crypto ko secure aur efficiently trade kar sakte hai, bina kisse slippage aur custody risk ke. Yeh blockchain industry mein sabse tej smart contracts platform Avalanche par banaya gaya hai.

Website | Twitter | Telegram | Medium |Discord

--

--