Documentation
¶
Overview ¶
Official dogabot REST API SDK for Go.
Module: github.com/dogabot/dogabot-sdk-go
Index ¶
- Variables
- type APIError
- type Client
- func (c *Client) DeleteBotsById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)
- func (c *Client) DeleteCredentialsById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)
- func (c *Client) DeleteEmittersById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)
- func (c *Client) DeleteFollowersById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)
- func (c *Client) DeletePortfoliosById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)
- func (c *Client) DeleteTagsById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)
- func (c *Client) GetAiChatConversations(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetAiChatConversationsById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) GetAiChatQuota(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetBacktestBulkBatches(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetBacktestBulkBatchesByBatch_id(ctx context.Context, batch_id any, opts ...RequestOption) (any, error)
- func (c *Client) GetBacktestBulkSeed(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetBacktestByJob_id(ctx context.Context, jobID any, opts ...RequestOption) (any, error)
- func (c *Client) GetBacktestQuota(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetBacktestSignalsByJob_id(ctx context.Context, jobID any, opts ...RequestOption) (any, error)
- func (c *Client) GetBacktests(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetBacktestsSummary(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetBots(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetBotsById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) GetBotsPnlseriesById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) GetBotsPositionById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) GetCredentials(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetDatafeedHistory(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetEmitters(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetEmittersById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) GetEmittersCurated(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetEmittersPnlseriesById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) GetEmittersPositionById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) GetEmittersSummaryById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) GetExchangeBalances(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetExchangeIncome(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetExchangeMarginsummary(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetExchangeOpenablenotional(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetExchangeOrders(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetExchangePositions(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetExchangeTrades(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetExchanges(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetFollowers(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetFollowersById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) GetFollowersPnlseriesById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) GetFollowersPositionById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) GetFollowersSummaryById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) GetFundingrate(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetMarketOrderbook(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetMarketTrades(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetMarketplaceSearch(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetMarketplaceSellersByHandle(ctx context.Context, handle any, opts ...RequestOption) (any, error)
- func (c *Client) GetMarkets(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetMarketsAssetprofile(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetMarkettypes(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetMe(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetMeEmitters(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetMeOrders(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetMePositionlegs(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetMePositions(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetMeSignals(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetMeStatistics(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetMeStatisticsBytag(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetOrders(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetPortfolios(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetPortfoliosById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) GetPortfoliosPnlseriesById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) GetPortfoliosPositionsById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) GetSignals(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetTags(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetTerminalOrdercapabilities(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetTerminalOrders(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetTerminalOrdersByclientorderidByClient_order_id(ctx context.Context, clientOrderID any, opts ...RequestOption) (any, error)
- func (c *Client) GetTerminalPositions(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetTerminalSymbolrules(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) GetTicker(ctx context.Context, opts ...RequestOption) (any, error)
- func (c *Client) PatchBotsById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)
- func (c *Client) PatchEmittersById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)
- func (c *Client) PatchFollowersById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)
- func (c *Client) PatchPortfoliosById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)
- func (c *Client) PatchTagsById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostAiChatConversations(ctx context.Context, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostAiChatConversationsMessagesById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostAiChatConversationsToolsConfirmByIdCall_id(ctx context.Context, id any, callID any, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostAutomationsSummary(ctx context.Context, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostBacktest(ctx context.Context, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostBacktestBulk(ctx context.Context, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostBacktestBulkBatchesCancelByBatch_id(ctx context.Context, batch_id any, opts ...RequestOption) (any, error)
- func (c *Client) PostBacktestBulkBatchesRerunByBatch_id(ctx context.Context, batch_id any, opts ...RequestOption) (any, error)
- func (c *Client) PostBacktestCancelByJob_id(ctx context.Context, jobID any, opts ...RequestOption) (any, error)
- func (c *Client) PostBots(ctx context.Context, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostBotsBooksById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostBotsStartById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) PostBotsStopById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) PostBotsSummary(ctx context.Context, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostCredentials(ctx context.Context, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostCredentialsDefaultById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) PostEmitters(ctx context.Context, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostEmittersStartById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) PostEmittersStopById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) PostEmittersSummary(ctx context.Context, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostExchangeCancelorder(ctx context.Context, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostExchangeCancelorders(ctx context.Context, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostExchangeLeverage(ctx context.Context, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostFollowers(ctx context.Context, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostFollowersBooksById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostFollowersStartById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) PostFollowersStopById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) PostFollowersSummary(ctx context.Context, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostMarketsSymbolcorrelation(ctx context.Context, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostMarketsSymbolfeebreakeven(ctx context.Context, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostMarketsSymbolvolatility(ctx context.Context, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostMeEmittersSummary(ctx context.Context, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostPortfolios(ctx context.Context, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostPortfoliosStartById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) PostPortfoliosStopById(ctx context.Context, id any, opts ...RequestOption) (any, error)
- func (c *Client) PostPortfoliosSummary(ctx context.Context, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostTags(ctx context.Context, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostTerminalCancelorder(ctx context.Context, body any, opts ...RequestOption) (any, error)
- func (c *Client) PostTerminalPlaceorder(ctx context.Context, body any, opts ...RequestOption) (any, error)
- func (c *Client) PutBotsTagsById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)
- func (c *Client) PutCredentialsById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)
- func (c *Client) PutEmittersTagsById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)
- func (c *Client) PutFollowersTagsById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)
- func (c *Client) PutPortfoliosTagsById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)
- type ClientOption
- type RequestOption
Constants ¶
This section is empty.
Variables ¶
var OperationIDs = []string{}/* 120 elements not displayed */
OperationIDs lists every OpenAPI operationId mirrored by this SDK.
Functions ¶
This section is empty.
Types ¶
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 ¶
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 ¶
GetAiChatQuota calls getAiChatQuota.
func (*Client) GetBacktestBulkBatches ¶
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 ¶
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 ¶
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 ¶
GetBacktests calls getBacktests.
func (*Client) GetBacktestsSummary ¶
GetBacktestsSummary calls getBacktestsSummary.
func (*Client) GetBotsById ¶
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 ¶
GetCredentials calls getCredentials.
func (*Client) GetDatafeedHistory ¶
GetDatafeedHistory calls getDatafeedHistory.
func (*Client) GetEmitters ¶
GetEmitters calls getEmitters.
func (*Client) GetEmittersById ¶
GetEmittersById calls getEmittersById.
func (*Client) GetEmittersCurated ¶
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 ¶
GetExchangeBalances calls getExchangeBalances.
func (*Client) GetExchangeIncome ¶
GetExchangeIncome calls getExchangeIncome.
func (*Client) GetExchangeMarginsummary ¶
GetExchangeMarginsummary calls getExchangeMarginsummary.
func (*Client) GetExchangeOpenablenotional ¶
func (c *Client) GetExchangeOpenablenotional(ctx context.Context, opts ...RequestOption) (any, error)
GetExchangeOpenablenotional calls getExchangeOpenablenotional.
func (*Client) GetExchangeOrders ¶
GetExchangeOrders calls getExchangeOrders.
func (*Client) GetExchangePositions ¶
GetExchangePositions calls getExchangePositions.
func (*Client) GetExchangeTrades ¶
GetExchangeTrades calls getExchangeTrades.
func (*Client) GetExchanges ¶
GetExchanges calls getExchanges.
func (*Client) GetFollowers ¶
GetFollowers calls getFollowers.
func (*Client) GetFollowersById ¶
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 ¶
GetFundingrate calls getFundingrate.
func (*Client) GetMarketOrderbook ¶
GetMarketOrderbook calls getMarketOrderbook.
func (*Client) GetMarketTrades ¶
GetMarketTrades calls getMarketTrades.
func (*Client) GetMarketplaceSearch ¶
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 ¶
GetMarkets calls getMarkets.
func (*Client) GetMarketsAssetprofile ¶
GetMarketsAssetprofile calls getMarketsAssetprofile.
func (*Client) GetMarkettypes ¶
GetMarkettypes calls getMarkettypes.
func (*Client) GetMeEmitters ¶
GetMeEmitters calls getMeEmitters.
func (*Client) GetMeOrders ¶
GetMeOrders calls getMeOrders.
func (*Client) GetMePositionlegs ¶
GetMePositionlegs calls getMePositionlegs.
func (*Client) GetMePositions ¶
GetMePositions calls getMePositions.
func (*Client) GetMeSignals ¶
GetMeSignals calls getMeSignals.
func (*Client) GetMeStatistics ¶
GetMeStatistics calls getMeStatistics.
func (*Client) GetMeStatisticsBytag ¶
GetMeStatisticsBytag calls getMeStatisticsBytag.
func (*Client) GetPortfolios ¶
GetPortfolios calls getPortfolios.
func (*Client) GetPortfoliosById ¶
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 ¶
GetSignals calls getSignals.
func (*Client) GetTerminalOrdercapabilities ¶
func (c *Client) GetTerminalOrdercapabilities(ctx context.Context, opts ...RequestOption) (any, error)
GetTerminalOrdercapabilities calls getTerminalOrdercapabilities.
func (*Client) GetTerminalOrders ¶
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 ¶
GetTerminalPositions calls getTerminalPositions.
func (*Client) GetTerminalSymbolrules ¶
GetTerminalSymbolrules calls getTerminalSymbolrules.
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 ¶
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) PostBotsBooksById ¶
func (c *Client) PostBotsBooksById(ctx context.Context, id any, body any, opts ...RequestOption) (any, error)
PostBotsBooksById calls postBotsBooksById.
func (*Client) PostBotsStartById ¶
PostBotsStartById calls postBotsStartById.
func (*Client) PostBotsStopById ¶
PostBotsStopById calls postBotsStopById.
func (*Client) PostBotsSummary ¶
PostBotsSummary calls postBotsSummary.
func (*Client) PostCredentials ¶
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 ¶
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 ¶
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 ¶
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) 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 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).
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). |