{"modulePath":"github.com/phonegapX/QuantBot","version":"v0.0.0-20181103064614-d060b71a9acb","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package BigoneAPI\n\n## Constants\n\n```go\nconst (\n\tAPI_BASE_URL = \"https://big.one/api/v2\"\n\tTICKER_URI   = API_BASE_URL + \"/markets/%s/ticker\"\n\tDEPTH_URI    = API_BASE_URL + \"/markets/%s/depth\"\n\tACCOUNT_URI  = API_BASE_URL + \"/viewer/accounts\"\n\tORDERS_URI   = API_BASE_URL + \"/viewer/orders\"\n)\n```\n\n## Functions\n\n```go\nfunc HttpGet(client *http.Client, reqUrl string, headers map[string]string, result interface{}) error\n```\n\n```go\nfunc HttpPostForm(client *http.Client, reqUrl string, postData map[string]string, headers map[string]string) ([]byte, error)\n```\n\n```go\nfunc NewHttpRequest(client *http.Client, reqType string, reqUrl string, postData string, requstHeaders map[string]string) ([]byte, error)\n```\n\n## Types\n\n```go\ntype AccountResp struct {\n\tErrors []struct {\n\t\tCode      int `json:\"code\"`\n\t\tLocations []struct {\n\t\t\tColumn int `json:\"column\"`\n\t\t\tLine   int `json:\"line\"`\n\t\t} `json:\"locations\"`\n\t\tMessage string   `json:\"message\"`\n\t\tPath    []string `json:\"path\"`\n\t} `json:\"errors\"`\n\n\tData []struct {\n\t\tAssetID       string `json:\"asset_id\"`\n\t\tAssetUUID     string `json:\"asset_uuid\"`\n\t\tBalance       string `json:\"balance\"`\n\t\tLockedBalance string `json:\"locked_balance\"`\n\t} `json:\"data\"`\n}\n```\n\n```go\ntype Bigone struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New(client *http.Client, api_key, secret_key string) *Bigone\n```\n\n```go\nfunc (bo *Bigone) CancelOrder(orderId string, currencyPair string) (*CancelOrderResp, error)\n```\n\n```go\nfunc (bo *Bigone) GetAccount() (*AccountResp, error)\n```\n\n```go\nfunc (bo *Bigone) GetDepth(currencyPair string) (*DepthResp, error)\n```\n\n```go\nfunc (bo *Bigone) GetOrderHistorys(currencyPair string) (*OrderListResp, error)\n```\n\n```go\nfunc (bo *Bigone) GetTicker(currencyPair string) (*TickerResp, error)\n```\n\n```go\nfunc (bo *Bigone) GetUnfinishOrders(currencyPair string) (*OrderListResp, error)\n```\n\n```go\nfunc (bo *Bigone) LimitBuy(amount, price string, currencyPair string) (*PlaceOrderResp, error)\n```\n\n```go\nfunc (bo *Bigone) LimitSell(amount, price string, currencyPair string) (*PlaceOrderResp, error)\n```\n\n```go\nfunc (bo *Bigone) MarketBuy(amount, price string, currencyPair string) (*PlaceOrderResp, error)\n```\n\n```go\nfunc (bo *Bigone) MarketSell(amount, price string, currencyPair string) (*PlaceOrderResp, error)\n```\n\n```go\ntype CancelOrderResp struct {\n\tErrors []struct {\n\t\tCode      int `json:\"code\"`\n\t\tLocations []struct {\n\t\t\tColumn int `json:\"column\"`\n\t\t\tLine   int `json:\"line\"`\n\t\t} `json:\"locations\"`\n\t\tMessage string   `json:\"message\"`\n\t\tPath    []string `json:\"path\"`\n\t} `json:\"errors\"`\n\n\tData struct {\n\t\tID           string `json:\"id\"`\n\t\tMarketUUID   string `json:\"market_uuid\"`\n\t\tPrice        string `json:\"price\"`\n\t\tAmount       string `json:\"amount\"`\n\t\tFilledAmount string `json:\"filled_amount\"`\n\t\tAvgDealPrice string `json:\"avg_deal_price\"`\n\t\tSide         string `json:\"side\"`\n\t\tState        string `json:\"state\"`\n\t}\n}\n```\n\n```go\ntype DepthResp struct {\n\tErrors []struct {\n\t\tCode      int `json:\"code\"`\n\t\tLocations []struct {\n\t\t\tColumn int `json:\"column\"`\n\t\t\tLine   int `json:\"line\"`\n\t\t} `json:\"locations\"`\n\t\tMessage string   `json:\"message\"`\n\t\tPath    []string `json:\"path\"`\n\t} `json:\"errors\"`\n\n\tData struct {\n\t\tMarketID string `json:\"market_id\"`\n\t\tBids     []struct {\n\t\t\tPrice      string `json:\"price\"`\n\t\t\tOrderCount int    `json:\"order_count\"`\n\t\t\tAmount     string `json:\"amount\"`\n\t\t} `json:\"bids\"`\n\t\tAsks []struct {\n\t\t\tPrice      string `json:\"price\"`\n\t\t\tOrderCount int    `json:\"order_count\"`\n\t\t\tAmount     string `json:\"amount\"`\n\t\t} `json:\"asks\"`\n\t}\n}\n```\n\n```go\ntype OrderListResp struct {\n\tErrors []struct {\n\t\tCode      int `json:\"code\"`\n\t\tLocations []struct {\n\t\t\tColumn int `json:\"column\"`\n\t\t\tLine   int `json:\"line\"`\n\t\t} `json:\"locations\"`\n\t\tMessage string   `json:\"message\"`\n\t\tPath    []string `json:\"path\"`\n\t} `json:\"errors\"`\n\n\tData struct {\n\t\tEdges []struct {\n\t\t\tCursor string `json:\"cursor\"`\n\t\t\tNode   struct {\n\t\t\t\tAmount       string `json:\"amount\"`\n\t\t\t\tAvgDealPrice string `json:\"avg_deal_price\"`\n\t\t\t\tFilledAmount string `json:\"filled_amount\"`\n\t\t\t\tID           string `json:\"id\"`\n\t\t\t\tInsertedAt   string `json:\"inserted_at\"`\n\t\t\t\tMarketID     string `json:\"market_id\"`\n\t\t\t\tMarketUUID   string `json:\"market_uuid\"`\n\t\t\t\tPrice        string `json:\"price\"`\n\t\t\t\tSide         string `json:\"side\"`\n\t\t\t\tState        string `json:\"state\"`\n\t\t\t\tUpdatedAt    string `json:\"updated_at\"`\n\t\t\t} `json:\"node\"`\n\t\t} `json:\"edges\"`\n\t\tPageInfo struct {\n\t\t\tEndCursor       string `json:\"end_cursor\"`\n\t\t\tHasNextPage     bool   `json:\"has_next_page\"`\n\t\t\tHasPreviousPage bool   `json:\"has_previous_page\"`\n\t\t\tStartCursor     string `json:\"start_cursor\"`\n\t\t} `json:\"page_info\"`\n\t} `json:\"data\"`\n}\n```\n\n```go\ntype PlaceOrderResp struct {\n\tErrors []struct {\n\t\tCode      int `json:\"code\"`\n\t\tLocations []struct {\n\t\t\tColumn int `json:\"column\"`\n\t\t\tLine   int `json:\"line\"`\n\t\t} `json:\"locations\"`\n\t\tMessage string   `json:\"message\"`\n\t\tPath    []string `json:\"path\"`\n\t} `json:\"errors\"`\n\n\tData struct {\n\t\tAmount       string `json:\"amount\"`\n\t\tAvgDealPrice string `json:\"avg_deal_price\"`\n\t\tFilledAmount string `json:\"filled_amount\"`\n\t\tID           string `json:\"id\"`\n\t\tInsertedAt   string `json:\"inserted_at\"`\n\t\tMarketID     string `json:\"market_id\"`\n\t\tMarketUUID   string `json:\"market_uuid\"`\n\t\tPrice        string `json:\"price\"`\n\t\tSide         string `json:\"side\"`\n\t\tState        string `json:\"state\"`\n\t\tUpdatedAt    string `json:\"updated_at\"`\n\t} `json:\"data\"`\n}\n```\n\n```go\ntype TickerResp struct {\n\tErrors []struct {\n\t\tCode      int `json:\"code\"`\n\t\tLocations []struct {\n\t\t\tColumn int `json:\"column\"`\n\t\t\tLine   int `json:\"line\"`\n\t\t} `json:\"locations\"`\n\t\tMessage string   `json:\"message\"`\n\t\tPath    []string `json:\"path\"`\n\t} `json:\"errors\"`\n\n\tData struct {\n\t\tAsk struct {\n\t\t\tAmount string `json:\"amount\"`\n\t\t\tPrice  string `json:\"price\"`\n\t\t} `json:\"ask\"`\n\t\tBid struct {\n\t\t\tAmount string `json:\"amount\"`\n\t\t\tPrice  string `json:\"price\"`\n\t\t} `json:\"bid\"`\n\t\tClose           string `json:\"close\"`\n\t\tDailyChange     string `json:\"daily_change\"`\n\t\tDailyChangePerc string `json:\"daily_change_perc\"`\n\t\tHigh            string `json:\"high\"`\n\t\tLow             string `json:\"low\"`\n\t\tMarketID        string `json:\"market_id\"`\n\t\tMarketUUID      string `json:\"market_uuid\"`\n\t\tOpen            string `json:\"open\"`\n\t\tVolume          string `json:\"volume\"`\n\t} `json:\"data\"`\n}\n```\n\n","path":"github.com/phonegapX/QuantBot/api/BigoneAPI","name":"BigoneAPI","synopsis":"","isRedistributable":true}
