Skip to content

Commit

Permalink
add bitget scraper.
Browse files Browse the repository at this point in the history
  • Loading branch information
jppade committed Sep 18, 2024
1 parent d00ca53 commit f1df15e
Show file tree
Hide file tree
Showing 6 changed files with 472 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/exchange-scrapers/collector/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/diadata-org/diadata/exchange-scrapers/collector
go 1.19

require (
github.com/diadata-org/diadata v1.4.524
github.com/diadata-org/diadata v1.4.529
github.com/segmentio/kafka-go v0.4.35
github.com/sirupsen/logrus v1.9.3
)
Expand Down
70 changes: 70 additions & 0 deletions config/Bitget.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"Coins": [
{
"Symbol": "ALPH",
"ForeignName": "ALPHUSDT",
"Exchange": "Bitget",
"Ignore": false
},
{
"Symbol": "BTC",
"ForeignName": "BTCUSDT",
"Exchange": "Bitget",
"Ignore": false
},
{
"Symbol": "DAI",
"ForeignName": "DAIUSDT",
"Exchange": "Bitget",
"Ignore": false
},
{
"Symbol": "DOT",
"ForeignName": "DOTUSDT",
"Exchange": "Bitget",
"Ignore": false
},
{
"Symbol": "DOT",
"ForeignName": "DOTUSDC",
"Exchange": "Bitget",
"Ignore": false
},
{
"Symbol": "ETH",
"ForeignName": "ETHUSDT",
"Exchange": "Bitget",
"Ignore": false
},
{
"Symbol": "SOL",
"ForeignName": "SOLUSDT",
"Exchange": "Bitget",
"Ignore": false
},
{
"Symbol": "SYK",
"ForeignName": "SYKUSDT",
"Exchange": "Bitget",
"Ignore": false
},
{
"Symbol": "USDC",
"ForeignName": "USDCEUR",
"Exchange": "Bitget",
"Ignore": false
},
{
"Symbol": "USDT",
"ForeignName": "USDTEUR",
"Exchange": "Bitget",
"Ignore": false
},
{
"Symbol": "XRP",
"ForeignName": "XRPUSDT",
"Exchange": "Bitget",
"Ignore": false
}
]
}
70 changes: 70 additions & 0 deletions config/gitcoinverified/Bitget.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"Tokens": [
{
"Symbol": "ALPH",
"Exchange": "Bitget",
"Blockchain": "Alephium",
"Address": "tgx7VNFoP9DJiFMFgXXtafQZkUvyEdDHT9ryamHJYrjq"
},
{
"Symbol": "BTC",
"Exchange": "Bitget",
"Blockchain": "Bitcoin",
"Address": "0x0000000000000000000000000000000000000000"
},
{
"Symbol": "DAI",
"Exchange": "Bitget",
"Blockchain": "Ethereum",
"Address": "0x6B175474E89094C44Da98b954EedeAC495271d0F"
},
{
"Symbol": "DOT",
"Exchange": "Bitget",
"Blockchain": "Polkadot",
"Address": "0x0000000000000000000000000000000000000000"
},
{
"Symbol": "ETH",
"Exchange": "Bitget",
"Blockchain": "Ethereum",
"Address": "0x0000000000000000000000000000000000000000"
},
{
"Symbol": "EUR",
"Exchange": "Bitget",
"Blockchain": "Fiat",
"Address": "978"
},
{
"Symbol": "SOL",
"Exchange": "Bitget",
"Blockchain": "Solana",
"Address": "0x0000000000000000000000000000000000000000"
},
{
"Symbol": "SYK",
"Exchange": "Bitget",
"Blockchain": "Arbitrum",
"Address": "0xACC51FFDeF63fB0c014c882267C3A17261A5eD50"
},
{
"Symbol": "USDC",
"Exchange": "Bitget",
"Blockchain": "Ethereum",
"Address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
},
{
"Symbol": "USDT",
"Exchange": "Bitget",
"Blockchain": "Ethereum",
"Address": "0xdAC17F958D2ee523a2206206994597C13D831ec7"
},
{
"Symbol": "XRP",
"Exchange": "Bitget",
"Blockchain": "Ripple",
"Address": "0x0000000000000000000000000000000000000000"
}
]
}
1 change: 1 addition & 0 deletions pkg/dia/Config.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ const (
ThenaExchange = "Thena"
ThenaV3Exchange = "ThenaV3"
AyinExchange = "Ayin"
BitgetExchange = "Bitget"
// FinageForex = "FinageForex"
)

Expand Down
6 changes: 4 additions & 2 deletions pkg/dia/scraper/exchange-scrapers/APIScraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,10 @@ func NewAPIScraper(exchange string, scrape bool, key string, secret string, relD
return NewUniswapScraper(Exchanges[dia.ThenaExchange], scrape, relDB)
case dia.ThenaV3Exchange:
return NewUniswapV3Scraper(Exchanges[dia.ThenaV3Exchange], scrape, relDB)
// case dia.FinageForex:
// return NewFinageForexScraper(Exchanges[dia.FinageForex], scrape, relDB, key, secret)
// case dia.FinageForex:
// return NewFinageForexScraper(Exchanges[dia.FinageForex], scrape, relDB, key, secret)
case dia.BitgetExchange:
return NewBitgetScraper(Exchanges[dia.BitgetExchange], scrape, relDB)

case dia.MultiChain:
return NewBridgeSwapScraper(Exchanges[dia.MultiChain], scrape, relDB)
Expand Down
Loading

0 comments on commit f1df15e

Please sign in to comment.