Skip to content

Instantly share code, notes, and snippets.

@kyp0717
Last active August 12, 2019 14:04
Show Gist options
  • Select an option

  • Save kyp0717/eb618578f3255757523754732d74d7c0 to your computer and use it in GitHub Desktop.

Select an option

Save kyp0717/eb618578f3255757523754732d74d7c0 to your computer and use it in GitHub Desktop.
List of endpoints for interactive broker client web portal
// session endpoints
const (
UrlStatus = "/iserver/auth/status"
UrlReauth = "/iserver/reauthenticate"
UrlValidate = "/sso/validate"
UrlTickle = "/tickle"
UrlLogout = "/logout"
)
// trading history endpoint
const UrlTrade = "/iserver/account/trades"
// account endpoints
const (
UrlAccounts = "/iserver/accounts"
UrlAccount = "/iserver/account"
UrlPnl = "/iserver/account/pnl/partitioned"
UrlPortfolio = "/portfolio/accounts"
)
// order endpoints
const (
UrlLiveOrder = "/iserver/account/orders"
UrlPlaceOrder = "/iserver/account/{accountId}/order"
UrlPlaceOrdersBracket = "/iserver/account/{accountId}/orders"
UrlPlaceOrderReply = "/iserver/reply/{replyid}"
UrlPreviewOrder = "/iserver/account/{accountId}/order/whatif"
UrlModifyOrder = "/iserver/account/{accountId}/order/{origCustomerOrderId}"
UrlDeleteOrder = "/iserver/account/{accountId}/order/{origCustomerOrderId}"
)
// market data endpoints
const UrlMarketData = "/iserver/marketdata/snapshot"
const UrlMarketDataHistory = "/iserver/marketdata/history"
// contract endpoints
const (
UrlCtx = "/iserver/contract"
UrlCtxInfo = UrlContract + "/{conid}/info"
UrlCtxSearch = "/iserver/secdef/search"
UrlCtxConId = "/trsrv/secdef"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment