Skip to content

Commit

Permalink
Kelp UI: validate dynamically retrieved values from CCXT before addin…
Browse files Browse the repository at this point in the history
…g to the optionsMetadata

addresses part of issue stellar-deprecated#67
  • Loading branch information
nikhilsaraf committed Jul 31, 2019
1 parent 7614a2d commit 85e9b35
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gui/backend/options_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ func loadOptionsMetadata() (metadata, error) {

marketsBuilder := optionsBuilder()
for tradingPair := range c.GetMarkets() {
if strings.Count(tradingPair, "/") != 1 {
log.Printf("ignoring ccxt exchange market for tradingPair on '%s' exchange because there was not exactly one '/' in the tradingPair: %s", ccxtExchangeName, tradingPair)
continue
}

marketsBuilder.ccxtMarket(tradingPair)
}
ccxtOptions.option("ccxt-"+ccxtExchangeName, displayName, dropdown(marketsBuilder))
Expand Down

0 comments on commit 85e9b35

Please sign in to comment.