restclient

package
v0.0.0-...-4f13b8d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MarketClient

type MarketClient struct {
	Endpoint *url.URL
}

func NewMarketClient

func NewMarketClient() (*MarketClient, error)

NewMarketClient REST格式行情Client

func (*MarketClient) Get

func (client *MarketClient) Get(path string, params ...map[string]interface{}) (*simplejson.Json, error)

Get Get同步请求

func (*MarketClient) HandleGet

func (client *MarketClient) HandleGet(path string, obj interface{}, params ...map[string]interface{}) (*simplejson.Json, error)

HandleGet 将Response解析到obj中

func (*MarketClient) HandlePost

func (client *MarketClient) HandlePost(path string, obj interface{}, params ...map[string]interface{}) (*simplejson.Json, error)

HandlePost 将Response解析到obj中

func (*MarketClient) Post

func (client *MarketClient) Post(path string, params ...map[string]interface{}) (*simplejson.Json, error)

Post Post同步请求

type TradeClient

type TradeClient struct {
	Endpoint *url.URL
	// contains filtered or unexported fields
}

func NewTradeClient

func NewTradeClient(accessKeyID, accessKeySecret string) (*TradeClient, error)

NewTradeClient REST格式交易Client

func (*TradeClient) Get

func (client *TradeClient) Get(path string, params ...map[string]interface{}) (*simplejson.Json, error)

Get Get同步请求

func (*TradeClient) HandleGet

func (client *TradeClient) HandleGet(path string, obj interface{}, params ...map[string]interface{}) (*simplejson.Json, error)

HandleGet 将Response解析到obj中

func (*TradeClient) HandlePost

func (client *TradeClient) HandlePost(path string, obj interface{}, params ...map[string]interface{}) (*simplejson.Json, error)

HandlePost 将Response解析到obj中

func (*TradeClient) Post

func (client *TradeClient) Post(path string, params ...map[string]interface{}) (*simplejson.Json, error)

Post Post同步请求

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL