Skip to content

Commit

Permalink
Remove FTX.
Browse files Browse the repository at this point in the history
  • Loading branch information
marianogappa committed Jan 27, 2024
1 parent 55ff527 commit 30699bc
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 541 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ Universal crypto candlestick iterator library & CLI

- [x] Binance
- [x] Binance USDM Futures
- [x] FTX
- [x] Coinbase
- [x] Kucoin
- [x] Bitstamp
Expand Down
56 changes: 29 additions & 27 deletions candles/candles.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,38 @@
// package main
//
// import (
// "fmt"
// "log"
// "time"
// "encoding/json"
//
// "github.com/marianogappa/crypto-candles/candles"
// "github.com/marianogappa/crypto-candles/candles/common"
// "fmt"
// "log"
// "time"
// "encoding/json"
//
// "github.com/marianogappa/crypto-candles/candles"
// "github.com/marianogappa/crypto-candles/candles/common"
//
// )
// func main() {
// m := candles.NewMarket()
// iter, err := m.Iterator(
// common.MarketSource{Type: common.COIN, Provider: common.BINANCE, BaseAsset: "BTC", QuoteAsset: "USDT"},
// time.Now().Add(-12*time.Hour), // Start time
// 1*time.Hour, // Candlestick interval
// )
// if err != nil {
// log.Fatal(err)
// }
//
// for i := 0; i < 10; i++ {
// candlestick, err := iter.Next()
// if err != nil {
// log.Fatal(err)
// }
// bs, _ := json.Marshal(candlestick)
// fmt.Printf("%+v\n", string(bs))
// }
// }
// func main() {
// m := candles.NewMarket()
// iter, err := m.Iterator(
// common.MarketSource{Type: common.COIN, Provider: common.BINANCE, BaseAsset: "BTC", QuoteAsset: "USDT"},
// time.Now().Add(-12*time.Hour), // Start time
// 1*time.Hour, // Candlestick interval
// )
// if err != nil {
// log.Fatal(err)
// }
//
// for i := 0; i < 10; i++ {
// candlestick, err := iter.Next()
// if err != nil {
// log.Fatal(err)
// }
// bs, _ := json.Marshal(candlestick)
// fmt.Printf("%+v\n", string(bs))
// }
// }
//
// ```
package candles

Expand All @@ -55,7 +59,6 @@ import (
"github.com/marianogappa/crypto-candles/candles/cache"
"github.com/marianogappa/crypto-candles/candles/coinbase"
"github.com/marianogappa/crypto-candles/candles/common"
"github.com/marianogappa/crypto-candles/candles/ftx"
"github.com/marianogappa/crypto-candles/candles/iterator"
"github.com/marianogappa/crypto-candles/candles/kucoin"
)
Expand Down Expand Up @@ -123,7 +126,6 @@ func (m Market) CalculateCacheHitRatio() float64 {
func buildExchanges() map[string]common.Exchange {
return map[string]common.Exchange{
common.BINANCE: binance.NewBinance(),
common.FTX: ftx.NewFTX(),
common.COINBASE: coinbase.NewCoinbase(),
common.KUCOIN: kucoin.NewKucoin(),
common.BINANCEUSDMFUTURES: binanceusdmfutures.NewBinanceUSDMFutures(),
Expand Down
2 changes: 0 additions & 2 deletions candles/common/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import (
const (
// BINANCE is an enumesque string value representing the BINANCE exchange
BINANCE = "BINANCE"
// FTX is an enumesque string value representing the FTX exchange
FTX = "FTX"
// COINBASE is an enumesque string value representing the COINBASE exchange
COINBASE = "COINBASE"
// KUCOIN is an enumesque string value representing the KUCOIN exchange
Expand Down
152 changes: 0 additions & 152 deletions candles/ftx/api_klines.go

This file was deleted.

Loading

0 comments on commit 30699bc

Please sign in to comment.