dogabot

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 10 Imported by: 0

README

dogabot-sdk-go

Official Go client for the dogabot public API.

go get github.com/dogabot/dogabot-sdk-go
package main

import (
	"context"
	"fmt"
	"os"

	dogabot "github.com/dogabot/dogabot-sdk-go"
)

func main() {
	c := dogabot.New(os.Getenv("DOGABOT_API_KEY"))
	me, err := c.GetMe(context.Background())
	if err != nil {
		panic(err)
	}
	fmt.Printf("%v\n", me)
}

Writes need WithIdempotencyKey:

_, err := c.PostTerminalPlaceorder(ctx, map[string]any{
	"exchange": "hyperliquid", "symbol": "BTC", "side": "buy",
	"quantity": 0.001, "order_type": "market",
	"trading_mode": "paper", "broadcast_mode": "personal",
}, dogabot.WithIdempotencyKey("place-paper-btc-1"))

Runnable samples: examples/.

Docs: https://docs.dogabot.com/sdk/

Documentation

Overview

Official dogabot REST API SDK for Go.

Module: github.com/dogabot/dogabot-sdk-go

Index

Constants

This section is empty.

Variables

View Source
var OperationIDs = []string{}/* 120 elements not displayed */

OperationIDs lists every OpenAPI operationId mirrored by this SDK.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	StatusCode int
	Message    string
	Body       map[string]any
	Header     http.Header
}

APIError is a non-2xx API response.

func (*APIError) Error

func (e *APIError) Error() string

type Client

type Client struct {
	APIKey     string
	BaseURL    string
	HTTPClient *http.Client
	MaxRetries int
	UserAgent  string
}

Client is the dogabot REST API client.

func New

func New(apiKey string, opts ...ClientOption) *Client

New creates a Client. apiKey may be empty if DOGABOT_API_KEY is set via env in callers; pass the key explicitly for clarity.

func (*Client) DeleteBotsById

func (c *Client) DeleteBotsById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)

DeleteBotsById calls deleteBotsById.

func (*Client) DeleteCredentialsById

func (c *Client) DeleteCredentialsById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)

DeleteCredentialsById calls deleteCredentialsById.

func (*Client) DeleteEmittersById

func (c *Client) DeleteEmittersById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)

DeleteEmittersById calls deleteEmittersById.

func (*Client) DeleteFollowersById

func (c *Client) DeleteFollowersById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)

DeleteFollowersById calls deleteFollowersById.

func (*Client) DeletePortfoliosById

func (c *Client) DeletePortfoliosById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)

DeletePortfoliosById calls deletePortfoliosById.

func (*Client) DeleteTagsById

func (c *Client) DeleteTagsById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)

DeleteTagsById calls deleteTagsById.

func (*Client) GetAiChatConversations

func (c *Client) GetAiChatConversations(ctx context.Context, opts ...RequestOption) (any, error)

GetAiChatConversations calls getAiChatConversations.

func (*Client) GetAiChatConversationsById

func (c *Client) GetAiChatConversationsById(ctx context.Context, id any, opts ...RequestOption) (any, error)

GetAiChatConversationsById calls getAiChatConversationsById.

func (*Client) GetAiChatQuota

func (c *Client) GetAiChatQuota(ctx context.Context, opts ...RequestOption) (any, error)

GetAiChatQuota calls getAiChatQuota.

func (*Client) GetBacktestBulkBatches

func (c *Client) GetBacktestBulkBatches(ctx context.Context, opts ...RequestOption) (any, error)

GetBacktestBulkBatches calls getBacktestBulkBatches.

func (*Client) GetBacktestBulkBatchesByBatch_id

func (c *Client) GetBacktestBulkBatchesByBatch_id(ctx context.Context, batch_id any, opts ...RequestOption) (any, error)

GetBacktestBulkBatchesByBatch_id calls getBacktestBulkBatchesByBatch_id.

func (*Client) GetBacktestBulkSeed

func (c *Client) GetBacktestBulkSeed(ctx context.Context, opts ...RequestOption) (any, error)

GetBacktestBulkSeed calls getBacktestBulkSeed.

func (*Client) GetBacktestByJob_id

func (c *Client) GetBacktestByJob_id(ctx context.Context, jobID any, opts ...RequestOption) (any, error)

GetBacktestByJob_id calls getBacktestByJob_id.

func (*Client) GetBacktestQuota

func (c *Client) GetBacktestQuota(ctx context.Context, opts ...RequestOption) (any, error)

GetBacktestQuota calls getBacktestQuota.

func (*Client) GetBacktestSignalsByJob_id

func (c *Client) GetBacktestSignalsByJob_id(ctx context.Context, jobID any, opts ...RequestOption) (any, error)

GetBacktestSignalsByJob_id calls getBacktestSignalsByJob_id.

func (*Client) GetBacktests

func (c *Client) GetBacktests(ctx context.Context, opts ...RequestOption) (any, error)

GetBacktests calls getBacktests.

func (*Client) GetBacktestsSummary

func (c *Client) GetBacktestsSummary(ctx context.Context, opts ...RequestOption) (any, error)

GetBacktestsSummary calls getBacktestsSummary.

func (*Client) GetBots

func (c *Client) GetBots(ctx context.Context, opts ...RequestOption) (any, error)

GetBots calls getBots.

func (*Client) GetBotsById

func (c *Client) GetBotsById(ctx context.Context, id any, opts ...RequestOption) (any, error)

GetBotsById calls getBotsById.

func (*Client) GetBotsPnlseriesById

func (c *Client) GetBotsPnlseriesById(ctx context.Context, id any, opts ...RequestOption) (any, error)

GetBotsPnlseriesById calls getBotsPnlseriesById.

func (*Client) GetBotsPositionById

func (c *Client) GetBotsPositionById(ctx context.Context, id any, opts ...RequestOption) (any, error)

GetBotsPositionById calls getBotsPositionById.

func (*Client) GetCredentials

func (c *Client) GetCredentials(ctx context.Context, opts ...RequestOption) (any, error)

GetCredentials calls getCredentials.

func (*Client) GetDatafeedHistory

func (c *Client) GetDatafeedHistory(ctx context.Context, opts ...RequestOption) (any, error)

GetDatafeedHistory calls getDatafeedHistory.

func (*Client) GetEmitters

func (c *Client) GetEmitters(ctx context.Context, opts ...RequestOption) (any, error)

GetEmitters calls getEmitters.

func (*Client) GetEmittersById

func (c *Client) GetEmittersById(ctx context.Context, id any, opts ...RequestOption) (any, error)

GetEmittersById calls getEmittersById.

func (*Client) GetEmittersCurated

func (c *Client) GetEmittersCurated(ctx context.Context, opts ...RequestOption) (any, error)

GetEmittersCurated calls getEmittersCurated.

func (*Client) GetEmittersPnlseriesById

func (c *Client) GetEmittersPnlseriesById(ctx context.Context, id any, opts ...RequestOption) (any, error)

GetEmittersPnlseriesById calls getEmittersPnlseriesById.

func (*Client) GetEmittersPositionById

func (c *Client) GetEmittersPositionById(ctx context.Context, id any, opts ...RequestOption) (any, error)

GetEmittersPositionById calls getEmittersPositionById.

func (*Client) GetEmittersSummaryById

func (c *Client) GetEmittersSummaryById(ctx context.Context, id any, opts ...RequestOption) (any, error)

GetEmittersSummaryById calls getEmittersSummaryById.

func (*Client) GetExchangeBalances

func (c *Client) GetExchangeBalances(ctx context.Context, opts ...RequestOption) (any, error)

GetExchangeBalances calls getExchangeBalances.

func (*Client) GetExchangeIncome

func (c *Client) GetExchangeIncome(ctx context.Context, opts ...RequestOption) (any, error)

GetExchangeIncome calls getExchangeIncome.

func (*Client) GetExchangeMarginsummary

func (c *Client) GetExchangeMarginsummary(ctx context.Context, opts ...RequestOption) (any, error)

GetExchangeMarginsummary calls getExchangeMarginsummary.

func (*Client) GetExchangeOpenablenotional

func (c *Client) GetExchangeOpenablenotional(ctx context.Context, opts ...RequestOption) (any, error)

GetExchangeOpenablenotional calls getExchangeOpenablenotional.

func (*Client) GetExchangeOrders

func (c *Client) GetExchangeOrders(ctx context.Context, opts ...RequestOption) (any, error)

GetExchangeOrders calls getExchangeOrders.

func (*Client) GetExchangePositions

func (c *Client) GetExchangePositions(ctx context.Context, opts ...RequestOption) (any, error)

GetExchangePositions calls getExchangePositions.

func (*Client) GetExchangeTrades

func (c *Client) GetExchangeTrades(ctx context.Context, opts ...RequestOption) (any, error)

GetExchangeTrades calls getExchangeTrades.

func (*Client) GetExchanges

func (c *Client) GetExchanges(ctx context.Context, opts ...RequestOption) (any, error)

GetExchanges calls getExchanges.

func (*Client) GetFollowers

func (c *Client) GetFollowers(ctx context.Context, opts ...RequestOption) (any, error)

GetFollowers calls getFollowers.

func (*Client) GetFollowersById

func (c *Client) GetFollowersById(ctx context.Context, id any, opts ...RequestOption) (any, error)

GetFollowersById calls getFollowersById.

func (*Client) GetFollowersPnlseriesById

func (c *Client) GetFollowersPnlseriesById(ctx context.Context, id any, opts ...RequestOption) (any, error)

GetFollowersPnlseriesById calls getFollowersPnlseriesById.

func (*Client) GetFollowersPositionById

func (c *Client) GetFollowersPositionById(ctx context.Context, id any, opts ...RequestOption) (any, error)

GetFollowersPositionById calls getFollowersPositionById.

func (*Client) GetFollowersSummaryById

func (c *Client) GetFollowersSummaryById(ctx context.Context, id any, opts ...RequestOption) (any, error)

GetFollowersSummaryById calls getFollowersSummaryById.

func (*Client) GetFundingrate

func (c *Client) GetFundingrate(ctx context.Context, opts ...RequestOption) (any, error)

GetFundingrate calls getFundingrate.

func (*Client) GetMarketOrderbook

func (c *Client) GetMarketOrderbook(ctx context.Context, opts ...RequestOption) (any, error)

GetMarketOrderbook calls getMarketOrderbook.

func (*Client) GetMarketTrades

func (c *Client) GetMarketTrades(ctx context.Context, opts ...RequestOption) (any, error)

GetMarketTrades calls getMarketTrades.

func (*Client) GetMarketplaceSearch

func (c *Client) GetMarketplaceSearch(ctx context.Context, opts ...RequestOption) (any, error)

GetMarketplaceSearch calls getMarketplaceSearch.

func (*Client) GetMarketplaceSellersByHandle

func (c *Client) GetMarketplaceSellersByHandle(ctx context.Context, handle any, opts ...RequestOption) (any, error)

GetMarketplaceSellersByHandle calls getMarketplaceSellersByHandle.

func (*Client) GetMarkets

func (c *Client) GetMarkets(ctx context.Context, opts ...RequestOption) (any, error)

GetMarkets calls getMarkets.

func (*Client) GetMarketsAssetprofile

func (c *Client) GetMarketsAssetprofile(ctx context.Context, opts ...RequestOption) (any, error)

GetMarketsAssetprofile calls getMarketsAssetprofile.

func (*Client) GetMarkettypes

func (c *Client) GetMarkettypes(ctx context.Context, opts ...RequestOption) (any, error)

GetMarkettypes calls getMarkettypes.

func (*Client) GetMe

func (c *Client) GetMe(ctx context.Context, opts ...RequestOption) (any, error)

GetMe calls getMe.

func (*Client) GetMeEmitters

func (c *Client) GetMeEmitters(ctx context.Context, opts ...RequestOption) (any, error)

GetMeEmitters calls getMeEmitters.

func (*Client) GetMeOrders

func (c *Client) GetMeOrders(ctx context.Context, opts ...RequestOption) (any, error)

GetMeOrders calls getMeOrders.

func (*Client) GetMePositionlegs

func (c *Client) GetMePositionlegs(ctx context.Context, opts ...RequestOption) (any, error)

GetMePositionlegs calls getMePositionlegs.

func (*Client) GetMePositions

func (c *Client) GetMePositions(ctx context.Context, opts ...RequestOption) (any, error)

GetMePositions calls getMePositions.

func (*Client) GetMeSignals

func (c *Client) GetMeSignals(ctx context.Context, opts ...RequestOption) (any, error)

GetMeSignals calls getMeSignals.

func (*Client) GetMeStatistics

func (c *Client) GetMeStatistics(ctx context.Context, opts ...RequestOption) (any, error)

GetMeStatistics calls getMeStatistics.

func (*Client) GetMeStatisticsBytag

func (c *Client) GetMeStatisticsBytag(ctx context.Context, opts ...RequestOption) (any, error)

GetMeStatisticsBytag calls getMeStatisticsBytag.

func (*Client) GetOrders

func (c *Client) GetOrders(ctx context.Context, opts ...RequestOption) (any, error)

GetOrders calls getOrders.

func (*Client) GetPortfolios

func (c *Client) GetPortfolios(ctx context.Context, opts ...RequestOption) (any, error)

GetPortfolios calls getPortfolios.

func (*Client) GetPortfoliosById

func (c *Client) GetPortfoliosById(ctx context.Context, id any, opts ...RequestOption) (any, error)

GetPortfoliosById calls getPortfoliosById.

func (*Client) GetPortfoliosPnlseriesById

func (c *Client) GetPortfoliosPnlseriesById(ctx context.Context, id any, opts ...RequestOption) (any, error)

GetPortfoliosPnlseriesById calls getPortfoliosPnlseriesById.

func (*Client) GetPortfoliosPositionsById

func (c *Client) GetPortfoliosPositionsById(ctx context.Context, id any, opts ...RequestOption) (any, error)

GetPortfoliosPositionsById calls getPortfoliosPositionsById.

func (*Client) GetSignals

func (c *Client) GetSignals(ctx context.Context, opts ...RequestOption) (any, error)

GetSignals calls getSignals.

func (*Client) GetTags

func (c *Client) GetTags(ctx context.Context, opts ...RequestOption) (any, error)

GetTags calls getTags.

func (*Client) GetTerminalOrdercapabilities

func (c *Client) GetTerminalOrdercapabilities(ctx context.Context, opts ...RequestOption) (any, error)

GetTerminalOrdercapabilities calls getTerminalOrdercapabilities.

func (*Client) GetTerminalOrders

func (c *Client) GetTerminalOrders(ctx context.Context, opts ...RequestOption) (any, error)

GetTerminalOrders calls getTerminalOrders.

func (*Client) GetTerminalOrdersByclientorderidByClient_order_id

func (c *Client) GetTerminalOrdersByclientorderidByClient_order_id(ctx context.Context, clientOrderID any, opts ...RequestOption) (any, error)

GetTerminalOrdersByclientorderidByClient_order_id calls getTerminalOrdersByclientorderidByClient_order_id.

func (*Client) GetTerminalPositions

func (c *Client) GetTerminalPositions(ctx context.Context, opts ...RequestOption) (any, error)

GetTerminalPositions calls getTerminalPositions.

func (*Client) GetTerminalSymbolrules

func (c *Client) GetTerminalSymbolrules(ctx context.Context, opts ...RequestOption) (any, error)

GetTerminalSymbolrules calls getTerminalSymbolrules.

func (*Client) GetTicker

func (c *Client) GetTicker(ctx context.Context, opts ...RequestOption) (any, error)

GetTicker calls getTicker.

func (*Client) PatchBotsById

func (c *Client) PatchBotsById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)

PatchBotsById calls patchBotsById.

func (*Client) PatchEmittersById

func (c *Client) PatchEmittersById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)

PatchEmittersById calls patchEmittersById.

func (*Client) PatchFollowersById

func (c *Client) PatchFollowersById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)

PatchFollowersById calls patchFollowersById.

func (*Client) PatchPortfoliosById

func (c *Client) PatchPortfoliosById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)

PatchPortfoliosById calls patchPortfoliosById.

func (*Client) PatchTagsById

func (c *Client) PatchTagsById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)

PatchTagsById calls patchTagsById.

func (*Client) PostAiChatConversations

func (c *Client) PostAiChatConversations(ctx context.Context, body any, opts ...RequestOption) (any, error)

PostAiChatConversations calls postAiChatConversations.

func (*Client) PostAiChatConversationsMessagesById

func (c *Client) PostAiChatConversationsMessagesById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)

PostAiChatConversationsMessagesById calls postAiChatConversationsMessagesById.

func (*Client) PostAiChatConversationsToolsConfirmByIdCall_id

func (c *Client) PostAiChatConversationsToolsConfirmByIdCall_id(ctx context.Context, id any, callID any, body any, opts ...RequestOption) (any, error)

PostAiChatConversationsToolsConfirmByIdCall_id calls postAiChatConversationsToolsConfirmByIdCall_id.

func (*Client) PostAutomationsSummary

func (c *Client) PostAutomationsSummary(ctx context.Context, body any, opts ...RequestOption) (any, error)

PostAutomationsSummary calls postAutomationsSummary.

func (*Client) PostBacktest

func (c *Client) PostBacktest(ctx context.Context, body any, opts ...RequestOption) (any, error)

PostBacktest calls postBacktest.

func (*Client) PostBacktestBulk

func (c *Client) PostBacktestBulk(ctx context.Context, body any, opts ...RequestOption) (any, error)

PostBacktestBulk calls postBacktestBulk.

func (*Client) PostBacktestBulkBatchesCancelByBatch_id

func (c *Client) PostBacktestBulkBatchesCancelByBatch_id(ctx context.Context, batch_id any, opts ...RequestOption) (any, error)

PostBacktestBulkBatchesCancelByBatch_id calls postBacktestBulkBatchesCancelByBatch_id.

func (*Client) PostBacktestBulkBatchesRerunByBatch_id

func (c *Client) PostBacktestBulkBatchesRerunByBatch_id(ctx context.Context, batch_id any, opts ...RequestOption) (any, error)

PostBacktestBulkBatchesRerunByBatch_id calls postBacktestBulkBatchesRerunByBatch_id.

func (*Client) PostBacktestCancelByJob_id

func (c *Client) PostBacktestCancelByJob_id(ctx context.Context, jobID any, opts ...RequestOption) (any, error)

PostBacktestCancelByJob_id calls postBacktestCancelByJob_id.

func (*Client) PostBots

func (c *Client) PostBots(ctx context.Context, body any, opts ...RequestOption) (any, error)

PostBots calls postBots.

func (*Client) PostBotsBooksById

func (c *Client) PostBotsBooksById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)

PostBotsBooksById calls postBotsBooksById.

func (*Client) PostBotsStartById

func (c *Client) PostBotsStartById(ctx context.Context, id any, opts ...RequestOption) (any, error)

PostBotsStartById calls postBotsStartById.

func (*Client) PostBotsStopById

func (c *Client) PostBotsStopById(ctx context.Context, id any, opts ...RequestOption) (any, error)

PostBotsStopById calls postBotsStopById.

func (*Client) PostBotsSummary

func (c *Client) PostBotsSummary(ctx context.Context, body any, opts ...RequestOption) (any, error)

PostBotsSummary calls postBotsSummary.

func (*Client) PostCredentials

func (c *Client) PostCredentials(ctx context.Context, body any, opts ...RequestOption) (any, error)

PostCredentials calls postCredentials.

func (*Client) PostCredentialsDefaultById

func (c *Client) PostCredentialsDefaultById(ctx context.Context, id any, opts ...RequestOption) (any, error)

PostCredentialsDefaultById calls postCredentialsDefaultById.

func (*Client) PostEmitters

func (c *Client) PostEmitters(ctx context.Context, body any, opts ...RequestOption) (any, error)

PostEmitters calls postEmitters.

func (*Client) PostEmittersStartById

func (c *Client) PostEmittersStartById(ctx context.Context, id any, opts ...RequestOption) (any, error)

PostEmittersStartById calls postEmittersStartById.

func (*Client) PostEmittersStopById

func (c *Client) PostEmittersStopById(ctx context.Context, id any, opts ...RequestOption) (any, error)

PostEmittersStopById calls postEmittersStopById.

func (*Client) PostEmittersSummary

func (c *Client) PostEmittersSummary(ctx context.Context, body any, opts ...RequestOption) (any, error)

PostEmittersSummary calls postEmittersSummary.

func (*Client) PostExchangeCancelorder

func (c *Client) PostExchangeCancelorder(ctx context.Context, body any, opts ...RequestOption) (any, error)

PostExchangeCancelorder calls postExchangeCancelorder.

func (*Client) PostExchangeCancelorders

func (c *Client) PostExchangeCancelorders(ctx context.Context, body any, opts ...RequestOption) (any, error)

PostExchangeCancelorders calls postExchangeCancelorders.

func (*Client) PostExchangeLeverage

func (c *Client) PostExchangeLeverage(ctx context.Context, body any, opts ...RequestOption) (any, error)

PostExchangeLeverage calls postExchangeLeverage.

func (*Client) PostFollowers

func (c *Client) PostFollowers(ctx context.Context, body any, opts ...RequestOption) (any, error)

PostFollowers calls postFollowers.

func (*Client) PostFollowersBooksById

func (c *Client) PostFollowersBooksById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)

PostFollowersBooksById calls postFollowersBooksById.

func (*Client) PostFollowersStartById

func (c *Client) PostFollowersStartById(ctx context.Context, id any, opts ...RequestOption) (any, error)

PostFollowersStartById calls postFollowersStartById.

func (*Client) PostFollowersStopById

func (c *Client) PostFollowersStopById(ctx context.Context, id any, opts ...RequestOption) (any, error)

PostFollowersStopById calls postFollowersStopById.

func (*Client) PostFollowersSummary

func (c *Client) PostFollowersSummary(ctx context.Context, body any, opts ...RequestOption) (any, error)

PostFollowersSummary calls postFollowersSummary.

func (*Client) PostMarketsSymbolcorrelation

func (c *Client) PostMarketsSymbolcorrelation(ctx context.Context, body any, opts ...RequestOption) (any, error)

PostMarketsSymbolcorrelation calls postMarketsSymbolcorrelation.

func (*Client) PostMarketsSymbolfeebreakeven

func (c *Client) PostMarketsSymbolfeebreakeven(ctx context.Context, body any, opts ...RequestOption) (any, error)

PostMarketsSymbolfeebreakeven calls postMarketsSymbolfeebreakeven.

func (*Client) PostMarketsSymbolvolatility

func (c *Client) PostMarketsSymbolvolatility(ctx context.Context, body any, opts ...RequestOption) (any, error)

PostMarketsSymbolvolatility calls postMarketsSymbolvolatility.

func (*Client) PostMeEmittersSummary

func (c *Client) PostMeEmittersSummary(ctx context.Context, body any, opts ...RequestOption) (any, error)

PostMeEmittersSummary calls postMeEmittersSummary.

func (*Client) PostPortfolios

func (c *Client) PostPortfolios(ctx context.Context, body any, opts ...RequestOption) (any, error)

PostPortfolios calls postPortfolios.

func (*Client) PostPortfoliosStartById

func (c *Client) PostPortfoliosStartById(ctx context.Context, id any, opts ...RequestOption) (any, error)

PostPortfoliosStartById calls postPortfoliosStartById.

func (*Client) PostPortfoliosStopById

func (c *Client) PostPortfoliosStopById(ctx context.Context, id any, opts ...RequestOption) (any, error)

PostPortfoliosStopById calls postPortfoliosStopById.

func (*Client) PostPortfoliosSummary

func (c *Client) PostPortfoliosSummary(ctx context.Context, body any, opts ...RequestOption) (any, error)

PostPortfoliosSummary calls postPortfoliosSummary.

func (*Client) PostTags

func (c *Client) PostTags(ctx context.Context, body any, opts ...RequestOption) (any, error)

PostTags calls postTags.

func (*Client) PostTerminalCancelorder

func (c *Client) PostTerminalCancelorder(ctx context.Context, body any, opts ...RequestOption) (any, error)

PostTerminalCancelorder calls postTerminalCancelorder.

func (*Client) PostTerminalPlaceorder

func (c *Client) PostTerminalPlaceorder(ctx context.Context, body any, opts ...RequestOption) (any, error)

PostTerminalPlaceorder calls postTerminalPlaceorder.

func (*Client) PutBotsTagsById

func (c *Client) PutBotsTagsById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)

PutBotsTagsById calls putBotsTagsById.

func (*Client) PutCredentialsById

func (c *Client) PutCredentialsById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)

PutCredentialsById calls putCredentialsById.

func (*Client) PutEmittersTagsById

func (c *Client) PutEmittersTagsById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)

PutEmittersTagsById calls putEmittersTagsById.

func (*Client) PutFollowersTagsById

func (c *Client) PutFollowersTagsById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)

PutFollowersTagsById calls putFollowersTagsById.

func (*Client) PutPortfoliosTagsById

func (c *Client) PutPortfoliosTagsById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)

PutPortfoliosTagsById calls putPortfoliosTagsById.

type ClientOption

type ClientOption func(*Client)

ClientOption configures a Client.

func WithBaseURL

func WithBaseURL(u string) ClientOption

WithBaseURL sets the API base URL.

func WithHTTPClient

func WithHTTPClient(h *http.Client) ClientOption

WithHTTPClient sets a custom HTTP client.

func WithMaxRetries

func WithMaxRetries(n int) ClientOption

WithMaxRetries sets retries for 429/5xx.

type RequestOption

type RequestOption func(*requestOptions)

RequestOption mutates a single request.

func WithHeaders

func WithHeaders(h map[string]string) RequestOption

WithHeaders merges extra headers.

func WithIdempotencyKey

func WithIdempotencyKey(key string) RequestOption

WithIdempotencyKey sets Idempotency-Key (required for writes).

func WithQuery

func WithQuery(q url.Values) RequestOption

WithQuery sets query parameters.

Directories

Path Synopsis
examples
get_me command
Print the authenticated account (GET /api/v1/me).
Print the authenticated account (GET /api/v1/me).
get_ticker command
Fetch a ticker with query params (GET /api/v1/ticker).
Fetch a ticker with query params (GET /api/v1/ticker).
list_markets command
List markets with optional filters (GET /api/v1/markets).
List markets with optional filters (GET /api/v1/markets).
place_paper_order command
Place a tiny paper market order (Idempotency-Key required).
Place a tiny paper market order (Idempotency-Key required).

Jump to

Keyboard shortcuts

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