From 25b214680be8990928cb8583d404463ad3901c9b Mon Sep 17 00:00:00 2001 From: jppade Date: Mon, 23 Oct 2023 08:13:26 +0200 Subject: [PATCH 1/3] remove aca pair from kucoin scraper. --- config/KuCoin.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/config/KuCoin.json b/config/KuCoin.json index 6b12444ff..d8e61b8d1 100644 --- a/config/KuCoin.json +++ b/config/KuCoin.json @@ -24,12 +24,6 @@ "Exchange": "KuCoin", "Ignore": false }, - { - "Symbol": "ACA", - "ForeignName": "ACA-USDT", - "Exchange": "KuCoin", - "Ignore": false - }, { "Symbol": "ADA", "ForeignName": "ADA-BTC", From e5a92fdc7b333a70f27539955888e513547fdede Mon Sep 17 00:00:00 2001 From: jppade Date: Tue, 24 Oct 2023 10:25:42 +0200 Subject: [PATCH 2/3] add some storj markets to trades scrapers. --- config/Binance.json | 2 +- config/BitMart.json | 6 ++++++ config/CoinBase.json | 6 ++++++ config/Kraken.json | 6 ++++++ config/MEXC.json | 6 ++++++ config/gitcoinverified/BitMart.json | 6 ++++++ config/gitcoinverified/CoinBase.json | 6 ++++++ config/gitcoinverified/Kraken.json | 6 ++++++ config/gitcoinverified/MEXC.json | 6 ++++++ 9 files changed, 49 insertions(+), 1 deletion(-) diff --git a/config/Binance.json b/config/Binance.json index 3aee2ec55..6940f16f3 100644 --- a/config/Binance.json +++ b/config/Binance.json @@ -986,7 +986,7 @@ }, { "Exchange": "Binance", - "ForeignName": "STORJETH", + "ForeignName": "STORJUSDT", "Ignore": false, "Symbol": "STORJ" }, diff --git a/config/BitMart.json b/config/BitMart.json index f039399d7..e8aa873aa 100644 --- a/config/BitMart.json +++ b/config/BitMart.json @@ -1,5 +1,11 @@ { "Coins": [ + { + "Exchange": "BitMart", + "ForeignName": "STORJ_USDT", + "Ignore": false, + "Symbol": "STORJ" + }, { "Exchange": "BitMart", "ForeignName": "KAVA_USDT", diff --git a/config/CoinBase.json b/config/CoinBase.json index c0fdc3f4b..49e14d7bb 100644 --- a/config/CoinBase.json +++ b/config/CoinBase.json @@ -180,6 +180,12 @@ "Ignore": false, "Symbol": "DAI" }, + { + "Exchange": "CoinBase", + "ForeignName": "STORJ-USD", + "Ignore": false, + "Symbol": "STORJ" + }, { "Exchange": "CoinBase", "ForeignName": "UST-USD", diff --git a/config/Kraken.json b/config/Kraken.json index 7422e811c..eda8fb19f 100644 --- a/config/Kraken.json +++ b/config/Kraken.json @@ -138,6 +138,12 @@ "Ignore": false, "Symbol": "SDN" }, + { + "Exchange": "Kraken", + "ForeignName": "STORJUSD", + "Ignore": false, + "Symbol": "STORJ" + }, { "Exchange": "Kraken", "ForeignName": "SYNUSD", diff --git a/config/MEXC.json b/config/MEXC.json index 8cb08e901..a65c73b83 100644 --- a/config/MEXC.json +++ b/config/MEXC.json @@ -498,6 +498,12 @@ "Exchange": "MEXC", "Ignore": false }, + { + "Symbol": "STORJ", + "ForeignName": "STORJUSDT", + "Exchange": "MEXC", + "Ignore": false + }, { "Symbol": "SYN", "ForeignName": "SYNUSDT", diff --git a/config/gitcoinverified/BitMart.json b/config/gitcoinverified/BitMart.json index bd030a881..8aa8c7a9c 100644 --- a/config/gitcoinverified/BitMart.json +++ b/config/gitcoinverified/BitMart.json @@ -360,6 +360,12 @@ "Blockchain": "Ethereum", "Address": "0x090185f2135308BaD17527004364eBcC2D37e5F6" }, + { + "Symbol": "STORJ", + "Exchange": "BitMart", + "Blockchain": "Ethereum", + "Address": "0xB64ef51C888972c908CFacf59B47C1AfBC0Ab8aC" + }, { "Symbol": "SYN", "Exchange": "BitMart", diff --git a/config/gitcoinverified/CoinBase.json b/config/gitcoinverified/CoinBase.json index 5e9d46317..4ab636b46 100644 --- a/config/gitcoinverified/CoinBase.json +++ b/config/gitcoinverified/CoinBase.json @@ -96,6 +96,12 @@ "Blockchain": "Ethereum", "Address": "0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE" }, + { + "Symbol": "STORJ", + "Exchange": "CoinBase", + "Blockchain": "Ethereum", + "Address": "0xB64ef51C888972c908CFacf59B47C1AfBC0Ab8aC" + }, { "Symbol": "QUICK", "Exchange": "CoinBase", diff --git a/config/gitcoinverified/Kraken.json b/config/gitcoinverified/Kraken.json index a6ffeb34c..10da65228 100644 --- a/config/gitcoinverified/Kraken.json +++ b/config/gitcoinverified/Kraken.json @@ -96,6 +96,12 @@ "Blockchain": "Shiden", "Address": "0x0000000000000000000000000000000000000000" }, + { + "Symbol": "STORJ", + "Exchange": "Kraken", + "Blockchain": "Ethereum", + "Address": "0xB64ef51C888972c908CFacf59B47C1AfBC0Ab8aC" + }, { "Symbol": "SYN", "Exchange": "Kraken", diff --git a/config/gitcoinverified/MEXC.json b/config/gitcoinverified/MEXC.json index 583161ff9..29bd4b560 100644 --- a/config/gitcoinverified/MEXC.json +++ b/config/gitcoinverified/MEXC.json @@ -462,6 +462,12 @@ "Blockchain": "Ethereum", "Address": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84" }, + { + "Symbol": "STORJ", + "Exchange": "MEXC", + "Blockchain": "Ethereum", + "Address": "0xB64ef51C888972c908CFacf59B47C1AfBC0Ab8aC" + }, { "Symbol": "TKB", "Exchange": "MEXC", From 22beef27b293cda0b22e27b505de0130649dbc81 Mon Sep 17 00:00:00 2001 From: jppade Date: Mon, 30 Oct 2023 17:30:58 +0100 Subject: [PATCH 3/3] amend fantom bridge. --- cmd/services/tradesBlockService/go.mod | 2 +- internal/pkg/tradesBlockService/tradesBlockService.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/services/tradesBlockService/go.mod b/cmd/services/tradesBlockService/go.mod index 07df8eca7..e7b1e699f 100644 --- a/cmd/services/tradesBlockService/go.mod +++ b/cmd/services/tradesBlockService/go.mod @@ -3,7 +3,7 @@ module github.com/diadata-org/diadata/services/tradesBlockService go 1.17 require ( - github.com/diadata-org/diadata v1.4.360 + github.com/diadata-org/diadata v1.4.408 github.com/segmentio/kafka-go v0.4.35 github.com/sirupsen/logrus v1.8.1 ) diff --git a/internal/pkg/tradesBlockService/tradesBlockService.go b/internal/pkg/tradesBlockService/tradesBlockService.go index 89df0bd63..aefc55c47 100644 --- a/internal/pkg/tradesBlockService/tradesBlockService.go +++ b/internal/pkg/tradesBlockService/tradesBlockService.go @@ -489,11 +489,11 @@ func buildBridge(t dia.Trade) dia.Asset { } } if basetoken.Blockchain == dia.FANTOM && (t.Source == dia.SpookyswapExchange || t.Source == dia.SpiritswapExchange || t.Source == dia.BeetsExchange || t.Source == dia.SushiSwapExchangeFantom) { - if basetoken.Address == "0x04068DA6C83AFCFA0e13ba15A6696662335D5B75" { + if basetoken.Address == "0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83" { basetoken = dia.Asset{ - Symbol: "USDC", - Address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", - Blockchain: dia.ETHEREUM, + Symbol: "FTM", + Address: "0x0000000000000000000000000000000000000000", + Blockchain: dia.FANTOM, } } }