Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (16 sloc) 413 Bytes
package gobacktest
import (
// "fmt"
// ExchangeFeeHandler is the basic interface for managing the exchange fee
type ExchangeFeeHandler interface {
Fee() (float64, error)
// FixedExchangeFee returns a fixed exchange fee
type FixedExchangeFee struct {
ExchangeFee float64
// Fee returns the set exchange fee of the trade
func (e *FixedExchangeFee) Fee() (float64, error) {
return e.ExchangeFee, nil
You can’t perform that action at this time.