func (fs *FundingService) LoansHistory(symbol string) (*fundingloan.Snapshot, error) {
	req, err := fs.requestFactory.NewAuthenticatedRequest(common.PermissionRead, path.Join("funding/loans", symbol, "hist"))
	if err != nil {
		return nil, err
	}
	raw, err := fs.Request(req)
	if err != nil {
		return nil, err
	}
	loans, err := fundingloan.SnapshotFromRaw(raw)
	if err != nil {
		return nil, err
	}
	return loans, nil
}
Retreive all of the past in-active funding loans
see https://docs.bitfinex.com/reference#rest-auth-funding-loans-hist for more info
package rest
import (
	"encoding/json"
	"fmt"
	"path"
	"github.com/bitfinexcom/bitfinex-api-go/pkg/models/common"
	"github.com/bitfinexcom/bitfinex-api-go/pkg/models/fundingcredit"
	"github.com/bitfinexcom/bitfinex-api-go/pkg/models/fundingloan"
	"github.com/bitfinexcom/bitfinex-api-go/pkg/models/fundingoffer"
	"github.com/bitfinexcom/bitfinex-api-go/pkg/models/fundingtrade"
	"github.com/bitfinexcom/bitfinex-api-go/pkg/models/notification"
)
type KeepFundingRequest struct {
	Type string `json:"type"`
	ID   int    `json:"id"`
}
type FundingService struct {
	requestFactory
	Synchronous
}
func (fs *FundingService) Offers(symbol string) (*fundingoffer.Snapshot, error) {
	req, err := fs.requestFactory.NewAuthenticatedRequest(common.PermissionRead, path.Join("funding/offers", symbol))
	if err != nil {
		return nil, err
	}
	raw, err := fs.Request(req)
	if err != nil {
		return nil, err
	}
	offers, err := fundingoffer.SnapshotFromRaw(raw)
	if err != nil {
		return nil, err
	}
	return offers, nil
}
func (fs *FundingService) OfferHistory(symbol string) (*fundingoffer.Snapshot, error) {
	req, err := fs.requestFactory.NewAuthenticatedRequest(common.PermissionRead, path.Join("funding/offers", symbol, "hist"))
	if err != nil {
		return nil, err
	}
	raw, err := fs.Request(req)
	if err != nil {
		return nil, err
	}
	offers, err := fundingoffer.SnapshotFromRaw(raw)
	if err != nil {
		return nil, err
	}
	return offers, nil
}
func (fs *FundingService) Loans(symbol string) (*fundingloan.Snapshot, error) {
	req, err := fs.requestFactory.NewAuthenticatedRequest(common.PermissionRead, path.Join("funding/loans", symbol))
	if err != nil {
		return nil, err
	}
	raw, err := fs.Request(req)
	if err != nil {
		return nil, err
	}
	loans, err := fundingloan.SnapshotFromRaw(raw)
	if err != nil {
		return nil, err
	}
	return loans, nil
}