Safe Haskell | None |
---|---|
Language | Haskell2010 |
- Operations
- APIKey
- Announcement
- Chat
- Execution
- Funding
- Instrument
- Insurance
- Leaderboard
- Liquidation
- Notification
- Order
- OrderBook
- Position
- Quote
- Schema
- Settlement
- Stats
- Trade
- User
- userCancelWithdrawal
- userCheckReferralCode
- userConfirm
- userConfirmEnableTFA
- userConfirmWithdrawal
- userDisableTFA
- userGet
- userGetAffiliateStatus
- userGetCommission
- userGetDepositAddress
- userGetMargin
- userGetWallet
- userGetWalletHistory
- userGetWalletSummary
- userLogout
- userLogoutAll
- userMinWithdrawalFee
- userRequestEnableTFA
- userRequestWithdrawal
- userSavePreferences
- userUpdate
- Parameter newtypes
- Auth Methods
- Custom Mime Types
Synopsis
- aPIKeyDisable :: Consumes APIKeyDisable contentType => ContentType contentType -> Accept accept -> ApiKeyId -> BitMEXRequest APIKeyDisable contentType APIKey accept
- data APIKeyDisable
- aPIKeyEnable :: Consumes APIKeyEnable contentType => ContentType contentType -> Accept accept -> ApiKeyId -> BitMEXRequest APIKeyEnable contentType APIKey accept
- data APIKeyEnable
- aPIKeyGet :: Accept accept -> BitMEXRequest APIKeyGet MimeNoContent [APIKey] accept
- data APIKeyGet
- aPIKeyNew :: Consumes APIKeyNew contentType => ContentType contentType -> Accept accept -> BitMEXRequest APIKeyNew contentType APIKey accept
- data APIKeyNew
- aPIKeyRemove :: Consumes APIKeyRemove contentType => ContentType contentType -> Accept accept -> ApiKeyId -> BitMEXRequest APIKeyRemove contentType InlineResponse200 accept
- data APIKeyRemove
- announcementGet :: Accept accept -> BitMEXRequest AnnouncementGet MimeNoContent [Announcement] accept
- data AnnouncementGet
- announcementGetUrgent :: Accept accept -> BitMEXRequest AnnouncementGetUrgent MimeNoContent [Announcement] accept
- data AnnouncementGetUrgent
- chatGet :: Accept accept -> BitMEXRequest ChatGet MimeNoContent [Chat] accept
- data ChatGet
- chatGetChannels :: Accept accept -> BitMEXRequest ChatGetChannels MimeNoContent [ChatChannels] accept
- data ChatGetChannels
- chatGetConnected :: Accept accept -> BitMEXRequest ChatGetConnected MimeNoContent ConnectedUsers accept
- data ChatGetConnected
- chatNew :: Consumes ChatNew contentType => ContentType contentType -> Accept accept -> Message -> BitMEXRequest ChatNew contentType Chat accept
- data ChatNew
- executionGet :: Accept accept -> BitMEXRequest ExecutionGet MimeNoContent [Execution] accept
- data ExecutionGet
- executionGetTradeHistory :: Accept accept -> BitMEXRequest ExecutionGetTradeHistory MimeNoContent [Execution] accept
- data ExecutionGetTradeHistory
- fundingGet :: Accept accept -> BitMEXRequest FundingGet MimeNoContent [Funding] accept
- data FundingGet
- instrumentGet :: Accept accept -> BitMEXRequest InstrumentGet MimeNoContent [Instrument] accept
- data InstrumentGet
- instrumentGetActive :: Accept accept -> BitMEXRequest InstrumentGetActive MimeNoContent [Instrument] accept
- data InstrumentGetActive
- instrumentGetActiveAndIndices :: Accept accept -> BitMEXRequest InstrumentGetActiveAndIndices MimeNoContent [Instrument] accept
- data InstrumentGetActiveAndIndices
- instrumentGetActiveIntervals :: Accept accept -> BitMEXRequest InstrumentGetActiveIntervals MimeNoContent InstrumentInterval accept
- data InstrumentGetActiveIntervals
- instrumentGetCompositeIndex :: Accept accept -> BitMEXRequest InstrumentGetCompositeIndex MimeNoContent [IndexComposite] accept
- data InstrumentGetCompositeIndex
- instrumentGetIndices :: Accept accept -> BitMEXRequest InstrumentGetIndices MimeNoContent [Instrument] accept
- data InstrumentGetIndices
- insuranceGet :: Accept accept -> BitMEXRequest InsuranceGet MimeNoContent [Insurance] accept
- data InsuranceGet
- leaderboardGet :: Accept accept -> BitMEXRequest LeaderboardGet MimeNoContent [Leaderboard] accept
- data LeaderboardGet
- liquidationGet :: Accept accept -> BitMEXRequest LiquidationGet MimeNoContent [Liquidation] accept
- data LiquidationGet
- notificationGet :: Accept accept -> BitMEXRequest NotificationGet MimeNoContent [Notification] accept
- data NotificationGet
- orderAmend :: Consumes OrderAmend contentType => ContentType contentType -> Accept accept -> BitMEXRequest OrderAmend contentType Order accept
- data OrderAmend
- orderAmendBulk :: Consumes OrderAmendBulk contentType => ContentType contentType -> Accept accept -> BitMEXRequest OrderAmendBulk contentType [Order] accept
- data OrderAmendBulk
- orderCancel :: Consumes OrderCancel contentType => ContentType contentType -> Accept accept -> BitMEXRequest OrderCancel contentType [Order] accept
- data OrderCancel
- orderCancelAll :: Consumes OrderCancelAll contentType => ContentType contentType -> Accept accept -> BitMEXRequest OrderCancelAll contentType Value accept
- data OrderCancelAll
- orderCancelAllAfter :: Consumes OrderCancelAllAfter contentType => ContentType contentType -> Accept accept -> Timeout -> BitMEXRequest OrderCancelAllAfter contentType Value accept
- data OrderCancelAllAfter
- orderClosePosition :: Consumes OrderClosePosition contentType => ContentType contentType -> Accept accept -> Symbol -> BitMEXRequest OrderClosePosition contentType Order accept
- data OrderClosePosition
- orderGetOrders :: Accept accept -> BitMEXRequest OrderGetOrders MimeNoContent [Order] accept
- data OrderGetOrders
- orderNew :: Consumes OrderNew contentType => ContentType contentType -> Accept accept -> Symbol -> BitMEXRequest OrderNew contentType Order accept
- data OrderNew
- orderNewBulk :: Consumes OrderNewBulk contentType => ContentType contentType -> Accept accept -> BitMEXRequest OrderNewBulk contentType [Order] accept
- data OrderNewBulk
- orderBookGet :: Accept accept -> Symbol -> BitMEXRequest OrderBookGet MimeNoContent [OrderBook] accept
- data OrderBookGet
- orderBookGetL2 :: Accept accept -> Symbol -> BitMEXRequest OrderBookGetL2 MimeNoContent [OrderBookL2] accept
- data OrderBookGetL2
- positionGet :: Accept accept -> BitMEXRequest PositionGet MimeNoContent [Position] accept
- data PositionGet
- positionIsolateMargin :: Consumes PositionIsolateMargin contentType => ContentType contentType -> Accept accept -> Symbol -> BitMEXRequest PositionIsolateMargin contentType Position accept
- data PositionIsolateMargin
- positionTransferIsolatedMargin :: Consumes PositionTransferIsolatedMargin contentType => ContentType contentType -> Accept accept -> Symbol -> Amount -> BitMEXRequest PositionTransferIsolatedMargin contentType Position accept
- data PositionTransferIsolatedMargin
- positionUpdateLeverage :: Consumes PositionUpdateLeverage contentType => ContentType contentType -> Accept accept -> Symbol -> Leverage -> BitMEXRequest PositionUpdateLeverage contentType Position accept
- data PositionUpdateLeverage
- positionUpdateRiskLimit :: Consumes PositionUpdateRiskLimit contentType => ContentType contentType -> Accept accept -> Symbol -> RiskLimit -> BitMEXRequest PositionUpdateRiskLimit contentType Position accept
- data PositionUpdateRiskLimit
- quoteGet :: Accept accept -> BitMEXRequest QuoteGet MimeNoContent [Quote] accept
- data QuoteGet
- quoteGetBucketed :: Accept accept -> BitMEXRequest QuoteGetBucketed MimeNoContent [Quote] accept
- data QuoteGetBucketed
- schemaGet :: Accept accept -> BitMEXRequest SchemaGet MimeNoContent Value accept
- data SchemaGet
- schemaWebsocketHelp :: Accept accept -> BitMEXRequest SchemaWebsocketHelp MimeNoContent Value accept
- data SchemaWebsocketHelp
- settlementGet :: Accept accept -> BitMEXRequest SettlementGet MimeNoContent [Settlement] accept
- data SettlementGet
- statsGet :: Accept accept -> BitMEXRequest StatsGet MimeNoContent [Stats] accept
- data StatsGet
- statsHistory2 :: Accept accept -> BitMEXRequest StatsHistory2 MimeNoContent [StatsHistory] accept
- data StatsHistory2
- statsHistoryUSD :: Accept accept -> BitMEXRequest StatsHistoryUSD MimeNoContent [StatsUSD] accept
- data StatsHistoryUSD
- tradeGet :: Accept accept -> BitMEXRequest TradeGet MimeNoContent [Trade] accept
- data TradeGet
- tradeGetBucketed :: Accept accept -> BitMEXRequest TradeGetBucketed MimeNoContent [TradeBin] accept
- data TradeGetBucketed
- userCancelWithdrawal :: Consumes UserCancelWithdrawal contentType => ContentType contentType -> Accept accept -> Token -> BitMEXRequest UserCancelWithdrawal contentType Transaction accept
- data UserCancelWithdrawal
- userCheckReferralCode :: Accept accept -> BitMEXRequest UserCheckReferralCode MimeNoContent Double accept
- data UserCheckReferralCode
- userConfirm :: Consumes UserConfirm contentType => ContentType contentType -> Accept accept -> Token -> BitMEXRequest UserConfirm contentType AccessToken accept
- data UserConfirm
- userConfirmEnableTFA :: Consumes UserConfirmEnableTFA contentType => ContentType contentType -> Accept accept -> Token -> BitMEXRequest UserConfirmEnableTFA contentType Bool accept
- data UserConfirmEnableTFA
- userConfirmWithdrawal :: Consumes UserConfirmWithdrawal contentType => ContentType contentType -> Accept accept -> Token -> BitMEXRequest UserConfirmWithdrawal contentType Transaction accept
- data UserConfirmWithdrawal
- userDisableTFA :: Consumes UserDisableTFA contentType => ContentType contentType -> Accept accept -> Token -> BitMEXRequest UserDisableTFA contentType Bool accept
- data UserDisableTFA
- userGet :: Accept accept -> BitMEXRequest UserGet MimeNoContent User accept
- data UserGet
- userGetAffiliateStatus :: Accept accept -> BitMEXRequest UserGetAffiliateStatus MimeNoContent Affiliate accept
- data UserGetAffiliateStatus
- userGetCommission :: Accept accept -> BitMEXRequest UserGetCommission MimeNoContent [UserCommission] accept
- data UserGetCommission
- userGetDepositAddress :: Accept accept -> BitMEXRequest UserGetDepositAddress MimeNoContent Text accept
- data UserGetDepositAddress
- userGetMargin :: Accept accept -> BitMEXRequest UserGetMargin MimeNoContent Margin accept
- data UserGetMargin
- userGetWallet :: Accept accept -> BitMEXRequest UserGetWallet MimeNoContent Wallet accept
- data UserGetWallet
- userGetWalletHistory :: Accept accept -> BitMEXRequest UserGetWalletHistory MimeNoContent [Transaction] accept
- data UserGetWalletHistory
- userGetWalletSummary :: Accept accept -> BitMEXRequest UserGetWalletSummary MimeNoContent [Transaction] accept
- data UserGetWalletSummary
- userLogout :: Accept accept -> BitMEXRequest UserLogout MimeNoContent res accept
- data UserLogout
- userLogoutAll :: Accept accept -> BitMEXRequest UserLogoutAll MimeNoContent Double accept
- data UserLogoutAll
- userMinWithdrawalFee :: Accept accept -> BitMEXRequest UserMinWithdrawalFee MimeNoContent Value accept
- data UserMinWithdrawalFee
- userRequestEnableTFA :: Consumes UserRequestEnableTFA contentType => ContentType contentType -> Accept accept -> BitMEXRequest UserRequestEnableTFA contentType Bool accept
- data UserRequestEnableTFA
- userRequestWithdrawal :: Consumes UserRequestWithdrawal contentType => ContentType contentType -> Accept accept -> Currency -> Amount -> Address -> BitMEXRequest UserRequestWithdrawal contentType Transaction accept
- data UserRequestWithdrawal
- userSavePreferences :: Consumes UserSavePreferences contentType => ContentType contentType -> Accept accept -> Prefs -> BitMEXRequest UserSavePreferences contentType User accept
- data UserSavePreferences
- userUpdate :: Consumes UserUpdate contentType => ContentType contentType -> Accept accept -> BitMEXRequest UserUpdate contentType User accept
- data UserUpdate
- newtype Account = Account {}
- newtype Address = Address {}
- newtype Amount = Amount {}
- newtype ApiKeyId = ApiKeyId {
- unApiKeyId :: Text
- newtype BinSize = BinSize {}
- newtype ChannelId = ChannelId {}
- newtype Cidr = Cidr {}
- newtype ClOrdId = ClOrdId {}
- newtype ClOrdLinkId = ClOrdLinkId {}
- newtype Columns = Columns {}
- newtype ContingencyType = ContingencyType {}
- newtype Count = Count {}
- newtype Country = Country {}
- newtype Currency = Currency {
- unCurrency :: Text
- newtype Depth = Depth {}
- newtype DisplayQty = DisplayQty {}
- newtype Enabled = Enabled {}
- newtype EndTime = EndTime {}
- newtype ExecInst = ExecInst {
- unExecInst :: Text
- newtype Fee = Fee {}
- newtype Filter = Filter {}
- newtype Firstname = Firstname {
- unFirstname :: Text
- newtype Lastname = Lastname {
- unLastname :: Text
- newtype LeavesQty = LeavesQty {}
- newtype Leverage = Leverage {
- unLeverage :: Double
- newtype Message = Message {}
- newtype Method = Method {}
- newtype Model = Model {}
- newtype Name = Name {}
- newtype NewPassword = NewPassword {}
- newtype NewPasswordConfirm = NewPasswordConfirm {}
- newtype OldPassword = OldPassword {}
- newtype OrdType = OrdType {}
- newtype OrderId = OrderId {}
- newtype OrderQty = OrderQty {
- unOrderQty :: Double
- newtype Orders = Orders {}
- newtype OrigClOrdId = OrigClOrdId {}
- newtype OtpToken = OtpToken {
- unOtpToken :: Text
- newtype Overwrite = Overwrite {
- unOverwrite :: Bool
- newtype ParamText = ParamText {
- unParamText :: Text
- newtype ParamType = ParamType {
- unParamType :: Text
- newtype Partial = Partial {}
- newtype PegOffsetValue = PegOffsetValue {}
- newtype PegPriceType = PegPriceType {}
- newtype Permissions = Permissions {}
- newtype PgpPubKey = PgpPubKey {
- unPgpPubKey :: Text
- newtype Prefs = Prefs {}
- newtype Price = Price {}
- newtype Quantity = Quantity {
- unQuantity :: Double
- newtype ReferralCode = ReferralCode {}
- newtype Reverse = Reverse {}
- newtype RiskLimit = RiskLimit {}
- newtype Side = Side {}
- newtype SimpleLeavesQty = SimpleLeavesQty {}
- newtype SimpleOrderQty = SimpleOrderQty {}
- newtype Start = Start {}
- newtype StartTime = StartTime {}
- newtype StopPrice = StopPrice {}
- newtype StopPx = StopPx {}
- newtype Symbol = Symbol {}
- newtype TimeInForce = TimeInForce {}
- newtype Timeout = Timeout {}
- newtype Token = Token {}
- newtype Username = Username {
- unUsername :: Text
- data AuthApiKeyApiKey = AuthApiKeyApiKey Text
- data AuthApiKeyApiNonce = AuthApiKeyApiNonce Text
- data AuthApiKeyApiSignature = AuthApiKeyApiSignature Text
- data MimeJavascript = MimeJavascript
- data MimeTextjavascript = MimeTextjavascript
- data MimeTextxml = MimeTextxml
Operations
APIKey
aPIKeyDisable
:: Consumes APIKeyDisable contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> ApiKeyId | "apiKeyId" - API Key ID (public component). |
-> BitMEXRequest APIKeyDisable contentType APIKey accept |
POST /apiKey/disable
Disable an API Key.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data APIKeyDisable Source #
Instances
Produces APIKeyDisable MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces APIKeyDisable MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces APIKeyDisable MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces APIKeyDisable MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces APIKeyDisable MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes APIKeyDisable MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes APIKeyDisable MimeJSON Source # | application/json |
Defined in BitMEX.API |
aPIKeyEnable
:: Consumes APIKeyEnable contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> ApiKeyId | "apiKeyId" - API Key ID (public component). |
-> BitMEXRequest APIKeyEnable contentType APIKey accept |
POST /apiKey/enable
Enable an API Key.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data APIKeyEnable Source #
Instances
Produces APIKeyEnable MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces APIKeyEnable MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces APIKeyEnable MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces APIKeyEnable MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces APIKeyEnable MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes APIKeyEnable MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes APIKeyEnable MimeJSON Source # | application/json |
Defined in BitMEX.API |
aPIKeyGet
:: Accept accept | request accept ( |
-> BitMEXRequest APIKeyGet MimeNoContent [APIKey] accept |
GET /apiKey
Get your API Keys.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
Instances
Produces APIKeyGet MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces APIKeyGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces APIKeyGet MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces APIKeyGet MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces APIKeyGet MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes APIKeyGet MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes APIKeyGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
HasOptionalParam APIKeyGet Reverse Source # | Optional Param "reverse" - If true, will sort results newest first. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest APIKeyGet contentType res accept -> Reverse -> BitMEXRequest APIKeyGet contentType res accept Source # (-&-) :: BitMEXRequest APIKeyGet contentType res accept -> Reverse -> BitMEXRequest APIKeyGet contentType res accept Source # |
aPIKeyNew
:: Consumes APIKeyNew contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> BitMEXRequest APIKeyNew contentType APIKey accept |
POST /apiKey
Create a new API Key.
API Keys can also be created via this Python script See the API Key Documentation for more information on capabilities.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
Instances
Produces APIKeyNew MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces APIKeyNew MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces APIKeyNew MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces APIKeyNew MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces APIKeyNew MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes APIKeyNew MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes APIKeyNew MimeJSON Source # | application/json |
Defined in BitMEX.API | |
HasOptionalParam APIKeyNew Token Source # | Optional Param "token" - OTP Token (YubiKey, Google Authenticator) |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest APIKeyNew contentType res accept -> Token -> BitMEXRequest APIKeyNew contentType res accept Source # (-&-) :: BitMEXRequest APIKeyNew contentType res accept -> Token -> BitMEXRequest APIKeyNew contentType res accept Source # | |
HasOptionalParam APIKeyNew Permissions Source # | Optional Param "permissions" - Key Permissions. All keys can read margin and position data. Additional permissions must be added. Available: ["order", "orderCancel", "withdraw"]. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest APIKeyNew contentType res accept -> Permissions -> BitMEXRequest APIKeyNew contentType res accept Source # (-&-) :: BitMEXRequest APIKeyNew contentType res accept -> Permissions -> BitMEXRequest APIKeyNew contentType res accept Source # | |
HasOptionalParam APIKeyNew Name Source # | Optional Param "name" - Key name. This name is for reference only. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest APIKeyNew contentType res accept -> Name -> BitMEXRequest APIKeyNew contentType res accept Source # (-&-) :: BitMEXRequest APIKeyNew contentType res accept -> Name -> BitMEXRequest APIKeyNew contentType res accept Source # | |
HasOptionalParam APIKeyNew Enabled Source # | Optional Param "enabled" - Set to true to enable this key on creation. Otherwise, it must be explicitly enabled via apiKeyenable. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest APIKeyNew contentType res accept -> Enabled -> BitMEXRequest APIKeyNew contentType res accept Source # (-&-) :: BitMEXRequest APIKeyNew contentType res accept -> Enabled -> BitMEXRequest APIKeyNew contentType res accept Source # | |
HasOptionalParam APIKeyNew Cidr Source # | Optional Param "cidr" - CIDR block to restrict this key to. To restrict to a single address, append "32", e.g. 207.39.29.2232. Leave blank or set to 0.0.0.00 to allow all IPs. Only one block may be set. <a href="http:software77.netcidr-101.html">More on CIDR blocks/a |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest APIKeyNew contentType res accept -> Cidr -> BitMEXRequest APIKeyNew contentType res accept Source # (-&-) :: BitMEXRequest APIKeyNew contentType res accept -> Cidr -> BitMEXRequest APIKeyNew contentType res accept Source # |
aPIKeyRemove
:: Consumes APIKeyRemove contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> ApiKeyId | "apiKeyId" - API Key ID (public component). |
-> BitMEXRequest APIKeyRemove contentType InlineResponse200 accept |
DELETE /apiKey
Remove an API Key.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data APIKeyRemove Source #
Instances
Produces APIKeyRemove MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces APIKeyRemove MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces APIKeyRemove MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces APIKeyRemove MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces APIKeyRemove MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes APIKeyRemove MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes APIKeyRemove MimeJSON Source # | application/json |
Defined in BitMEX.API |
Announcement
announcementGet
:: Accept accept | request accept ( |
-> BitMEXRequest AnnouncementGet MimeNoContent [Announcement] accept |
GET /announcement
Get site announcements.
data AnnouncementGet Source #
Instances
announcementGetUrgent
announcementGetUrgent Source #
:: Accept accept | request accept ( |
-> BitMEXRequest AnnouncementGetUrgent MimeNoContent [Announcement] accept |
GET /announcement/urgent
Get urgent (banner) announcements.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data AnnouncementGetUrgent Source #
Instances
Produces AnnouncementGetUrgent MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces AnnouncementGetUrgent MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces AnnouncementGetUrgent MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces AnnouncementGetUrgent MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces AnnouncementGetUrgent MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes AnnouncementGetUrgent MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes AnnouncementGetUrgent MimeJSON Source # | application/json |
Defined in BitMEX.API |
Chat
chatGet
:: Accept accept | request accept ( |
-> BitMEXRequest ChatGet MimeNoContent [Chat] accept |
GET /chat
Get chat messages.
Instances
Produces ChatGet MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces ChatGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces ChatGet MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces ChatGet MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces ChatGet MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes ChatGet MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes ChatGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
HasOptionalParam ChatGet Start Source # | Optional Param "start" - Starting ID for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest ChatGet contentType res accept -> Start -> BitMEXRequest ChatGet contentType res accept Source # (-&-) :: BitMEXRequest ChatGet contentType res accept -> Start -> BitMEXRequest ChatGet contentType res accept Source # | |
HasOptionalParam ChatGet Reverse Source # | Optional Param "reverse" - If true, will sort results newest first. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest ChatGet contentType res accept -> Reverse -> BitMEXRequest ChatGet contentType res accept Source # (-&-) :: BitMEXRequest ChatGet contentType res accept -> Reverse -> BitMEXRequest ChatGet contentType res accept Source # | |
HasOptionalParam ChatGet Count Source # | Optional Param "count" - Number of results to fetch. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest ChatGet contentType res accept -> Count -> BitMEXRequest ChatGet contentType res accept Source # (-&-) :: BitMEXRequest ChatGet contentType res accept -> Count -> BitMEXRequest ChatGet contentType res accept Source # | |
HasOptionalParam ChatGet ChannelId Source # | Optional Param "channelID" - Channel id. GET chatchannels for ids. Leave blank for all. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest ChatGet contentType res accept -> ChannelId -> BitMEXRequest ChatGet contentType res accept Source # (-&-) :: BitMEXRequest ChatGet contentType res accept -> ChannelId -> BitMEXRequest ChatGet contentType res accept Source # |
chatGetChannels
:: Accept accept | request accept ( |
-> BitMEXRequest ChatGetChannels MimeNoContent [ChatChannels] accept |
GET /chat/channels
Get available channels.
data ChatGetChannels Source #
Instances
Produces ChatGetChannels MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces ChatGetChannels MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces ChatGetChannels MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces ChatGetChannels MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces ChatGetChannels MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes ChatGetChannels MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes ChatGetChannels MimeJSON Source # | application/json |
Defined in BitMEX.API |
chatGetConnected
:: Accept accept | request accept ( |
-> BitMEXRequest ChatGetConnected MimeNoContent ConnectedUsers accept |
GET /chat/connected
Get connected users.
Returns an array with browser users in the first position and API users (bots) in the second position.
data ChatGetConnected Source #
Instances
Produces ChatGetConnected MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces ChatGetConnected MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces ChatGetConnected MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces ChatGetConnected MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces ChatGetConnected MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes ChatGetConnected MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes ChatGetConnected MimeJSON Source # | application/json |
Defined in BitMEX.API |
chatNew
:: Consumes ChatNew contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> Message | "message" |
-> BitMEXRequest ChatNew contentType Chat accept |
POST /chat
Send a chat message.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
Instances
Produces ChatNew MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces ChatNew MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces ChatNew MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces ChatNew MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces ChatNew MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes ChatNew MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes ChatNew MimeJSON Source # | application/json |
Defined in BitMEX.API | |
HasOptionalParam ChatNew ChannelId Source # | Optional Param "channelID" - Channel to post to. Default 1 (English). |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest ChatNew contentType res accept -> ChannelId -> BitMEXRequest ChatNew contentType res accept Source # (-&-) :: BitMEXRequest ChatNew contentType res accept -> ChannelId -> BitMEXRequest ChatNew contentType res accept Source # |
Execution
executionGet
:: Accept accept | request accept ( |
-> BitMEXRequest ExecutionGet MimeNoContent [Execution] accept |
GET /execution
Get all raw executions for your account.
This returns all raw transactions, which includes order opening and cancelation, and order status changes. It can be quite noisy. More focused information is available at `/execution/tradeHistory`. You may also use the filter
param to target your query. Specify an array as a filter value, such as `{"execType": ["Settlement", "Trade"]}` to filter on multiple values. See the FIX Spec for explanations of these fields.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data ExecutionGet Source #
Instances
Produces ExecutionGet MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces ExecutionGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces ExecutionGet MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces ExecutionGet MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces ExecutionGet MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes ExecutionGet MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes ExecutionGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
HasOptionalParam ExecutionGet Symbol Source # | Optional Param "symbol" - Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest ExecutionGet contentType res accept -> Symbol -> BitMEXRequest ExecutionGet contentType res accept Source # (-&-) :: BitMEXRequest ExecutionGet contentType res accept -> Symbol -> BitMEXRequest ExecutionGet contentType res accept Source # | |
HasOptionalParam ExecutionGet StartTime Source # | Optional Param "startTime" - Starting date filter for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest ExecutionGet contentType res accept -> StartTime -> BitMEXRequest ExecutionGet contentType res accept Source # (-&-) :: BitMEXRequest ExecutionGet contentType res accept -> StartTime -> BitMEXRequest ExecutionGet contentType res accept Source # | |
HasOptionalParam ExecutionGet Start Source # | Optional Param "start" - Starting point for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest ExecutionGet contentType res accept -> Start -> BitMEXRequest ExecutionGet contentType res accept Source # (-&-) :: BitMEXRequest ExecutionGet contentType res accept -> Start -> BitMEXRequest ExecutionGet contentType res accept Source # | |
HasOptionalParam ExecutionGet Reverse Source # | Optional Param "reverse" - If true, will sort results newest first. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest ExecutionGet contentType res accept -> Reverse -> BitMEXRequest ExecutionGet contentType res accept Source # (-&-) :: BitMEXRequest ExecutionGet contentType res accept -> Reverse -> BitMEXRequest ExecutionGet contentType res accept Source # | |
HasOptionalParam ExecutionGet Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest ExecutionGet contentType res accept -> Filter -> BitMEXRequest ExecutionGet contentType res accept Source # (-&-) :: BitMEXRequest ExecutionGet contentType res accept -> Filter -> BitMEXRequest ExecutionGet contentType res accept Source # | |
HasOptionalParam ExecutionGet EndTime Source # | Optional Param "endTime" - Ending date filter for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest ExecutionGet contentType res accept -> EndTime -> BitMEXRequest ExecutionGet contentType res accept Source # (-&-) :: BitMEXRequest ExecutionGet contentType res accept -> EndTime -> BitMEXRequest ExecutionGet contentType res accept Source # | |
HasOptionalParam ExecutionGet Count Source # | Optional Param "count" - Number of results to fetch. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest ExecutionGet contentType res accept -> Count -> BitMEXRequest ExecutionGet contentType res accept Source # (-&-) :: BitMEXRequest ExecutionGet contentType res accept -> Count -> BitMEXRequest ExecutionGet contentType res accept Source # | |
HasOptionalParam ExecutionGet Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest ExecutionGet contentType res accept -> Columns -> BitMEXRequest ExecutionGet contentType res accept Source # (-&-) :: BitMEXRequest ExecutionGet contentType res accept -> Columns -> BitMEXRequest ExecutionGet contentType res accept Source # |
executionGetTradeHistory
executionGetTradeHistory Source #
:: Accept accept | request accept ( |
-> BitMEXRequest ExecutionGetTradeHistory MimeNoContent [Execution] accept |
GET /execution/tradeHistory
Get all balance-affecting executions. This includes each trade, insurance charge, and settlement.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data ExecutionGetTradeHistory Source #
Instances
Funding
fundingGet
:: Accept accept | request accept ( |
-> BitMEXRequest FundingGet MimeNoContent [Funding] accept |
GET /funding
Get funding history.
data FundingGet Source #
Instances
Produces FundingGet MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces FundingGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces FundingGet MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces FundingGet MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces FundingGet MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes FundingGet MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes FundingGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
HasOptionalParam FundingGet Symbol Source # | Optional Param "symbol" - Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest FundingGet contentType res accept -> Symbol -> BitMEXRequest FundingGet contentType res accept Source # (-&-) :: BitMEXRequest FundingGet contentType res accept -> Symbol -> BitMEXRequest FundingGet contentType res accept Source # | |
HasOptionalParam FundingGet StartTime Source # | Optional Param "startTime" - Starting date filter for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest FundingGet contentType res accept -> StartTime -> BitMEXRequest FundingGet contentType res accept Source # (-&-) :: BitMEXRequest FundingGet contentType res accept -> StartTime -> BitMEXRequest FundingGet contentType res accept Source # | |
HasOptionalParam FundingGet Start Source # | Optional Param "start" - Starting point for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest FundingGet contentType res accept -> Start -> BitMEXRequest FundingGet contentType res accept Source # (-&-) :: BitMEXRequest FundingGet contentType res accept -> Start -> BitMEXRequest FundingGet contentType res accept Source # | |
HasOptionalParam FundingGet Reverse Source # | Optional Param "reverse" - If true, will sort results newest first. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest FundingGet contentType res accept -> Reverse -> BitMEXRequest FundingGet contentType res accept Source # (-&-) :: BitMEXRequest FundingGet contentType res accept -> Reverse -> BitMEXRequest FundingGet contentType res accept Source # | |
HasOptionalParam FundingGet Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest FundingGet contentType res accept -> Filter -> BitMEXRequest FundingGet contentType res accept Source # (-&-) :: BitMEXRequest FundingGet contentType res accept -> Filter -> BitMEXRequest FundingGet contentType res accept Source # | |
HasOptionalParam FundingGet EndTime Source # | Optional Param "endTime" - Ending date filter for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest FundingGet contentType res accept -> EndTime -> BitMEXRequest FundingGet contentType res accept Source # (-&-) :: BitMEXRequest FundingGet contentType res accept -> EndTime -> BitMEXRequest FundingGet contentType res accept Source # | |
HasOptionalParam FundingGet Count Source # | Optional Param "count" - Number of results to fetch. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest FundingGet contentType res accept -> Count -> BitMEXRequest FundingGet contentType res accept Source # (-&-) :: BitMEXRequest FundingGet contentType res accept -> Count -> BitMEXRequest FundingGet contentType res accept Source # | |
HasOptionalParam FundingGet Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest FundingGet contentType res accept -> Columns -> BitMEXRequest FundingGet contentType res accept Source # (-&-) :: BitMEXRequest FundingGet contentType res accept -> Columns -> BitMEXRequest FundingGet contentType res accept Source # |
Instrument
instrumentGet
:: Accept accept | request accept ( |
-> BitMEXRequest InstrumentGet MimeNoContent [Instrument] accept |
GET /instrument
Get instruments.
This returns all instruments and indices, including those that have settled or are unlisted. Use this endpoint if you want to query for individual instruments or use a complex filter. Use `/instrument/active` to return active instruments, or use a filter like `{"state": "Open"}`.
data InstrumentGet Source #
Instances
Produces InstrumentGet MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces InstrumentGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces InstrumentGet MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces InstrumentGet MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces InstrumentGet MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes InstrumentGet MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes InstrumentGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
HasOptionalParam InstrumentGet Symbol Source # | Optional Param "symbol" - Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InstrumentGet contentType res accept -> Symbol -> BitMEXRequest InstrumentGet contentType res accept Source # (-&-) :: BitMEXRequest InstrumentGet contentType res accept -> Symbol -> BitMEXRequest InstrumentGet contentType res accept Source # | |
HasOptionalParam InstrumentGet StartTime Source # | Optional Param "startTime" - Starting date filter for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InstrumentGet contentType res accept -> StartTime -> BitMEXRequest InstrumentGet contentType res accept Source # (-&-) :: BitMEXRequest InstrumentGet contentType res accept -> StartTime -> BitMEXRequest InstrumentGet contentType res accept Source # | |
HasOptionalParam InstrumentGet Start Source # | Optional Param "start" - Starting point for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InstrumentGet contentType res accept -> Start -> BitMEXRequest InstrumentGet contentType res accept Source # (-&-) :: BitMEXRequest InstrumentGet contentType res accept -> Start -> BitMEXRequest InstrumentGet contentType res accept Source # | |
HasOptionalParam InstrumentGet Reverse Source # | Optional Param "reverse" - If true, will sort results newest first. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InstrumentGet contentType res accept -> Reverse -> BitMEXRequest InstrumentGet contentType res accept Source # (-&-) :: BitMEXRequest InstrumentGet contentType res accept -> Reverse -> BitMEXRequest InstrumentGet contentType res accept Source # | |
HasOptionalParam InstrumentGet Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InstrumentGet contentType res accept -> Filter -> BitMEXRequest InstrumentGet contentType res accept Source # (-&-) :: BitMEXRequest InstrumentGet contentType res accept -> Filter -> BitMEXRequest InstrumentGet contentType res accept Source # | |
HasOptionalParam InstrumentGet EndTime Source # | Optional Param "endTime" - Ending date filter for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InstrumentGet contentType res accept -> EndTime -> BitMEXRequest InstrumentGet contentType res accept Source # (-&-) :: BitMEXRequest InstrumentGet contentType res accept -> EndTime -> BitMEXRequest InstrumentGet contentType res accept Source # | |
HasOptionalParam InstrumentGet Count Source # | Optional Param "count" - Number of results to fetch. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InstrumentGet contentType res accept -> Count -> BitMEXRequest InstrumentGet contentType res accept Source # (-&-) :: BitMEXRequest InstrumentGet contentType res accept -> Count -> BitMEXRequest InstrumentGet contentType res accept Source # | |
HasOptionalParam InstrumentGet Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InstrumentGet contentType res accept -> Columns -> BitMEXRequest InstrumentGet contentType res accept Source # (-&-) :: BitMEXRequest InstrumentGet contentType res accept -> Columns -> BitMEXRequest InstrumentGet contentType res accept Source # |
instrumentGetActive
:: Accept accept | request accept ( |
-> BitMEXRequest InstrumentGetActive MimeNoContent [Instrument] accept |
GET /instrument/active
Get all active instruments and instruments that have expired in <24hrs.
data InstrumentGetActive Source #
Instances
Produces InstrumentGetActive MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces InstrumentGetActive MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces InstrumentGetActive MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces InstrumentGetActive MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces InstrumentGetActive MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes InstrumentGetActive MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes InstrumentGetActive MimeJSON Source # | application/json |
Defined in BitMEX.API |
instrumentGetActiveAndIndices
instrumentGetActiveAndIndices Source #
:: Accept accept | request accept ( |
-> BitMEXRequest InstrumentGetActiveAndIndices MimeNoContent [Instrument] accept |
GET /instrument/activeAndIndices
Helper method. Gets all active instruments and all indices. This is a join of the result of indices and active.
data InstrumentGetActiveAndIndices Source #
Instances
Produces InstrumentGetActiveAndIndices MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces InstrumentGetActiveAndIndices MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces InstrumentGetActiveAndIndices MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces InstrumentGetActiveAndIndices MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces InstrumentGetActiveAndIndices MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes InstrumentGetActiveAndIndices MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes InstrumentGetActiveAndIndices MimeJSON Source # | application/json |
Defined in BitMEX.API |
instrumentGetActiveIntervals
instrumentGetActiveIntervals Source #
:: Accept accept | request accept ( |
-> BitMEXRequest InstrumentGetActiveIntervals MimeNoContent InstrumentInterval accept |
GET /instrument/activeIntervals
Return all active contract series and interval pairs.
This endpoint is useful for determining which pairs are live. It returns two arrays of strings. The first is intervals, such as `["BVOL:daily", "BVOL:weekly", "XBU:daily", "XBU:monthly", ...]`. These identifiers are usable in any query's symbol
param. The second array is the current resolution of these intervals. Results are mapped at the same index.
data InstrumentGetActiveIntervals Source #
Instances
Produces InstrumentGetActiveIntervals MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces InstrumentGetActiveIntervals MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces InstrumentGetActiveIntervals MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces InstrumentGetActiveIntervals MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces InstrumentGetActiveIntervals MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes InstrumentGetActiveIntervals MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes InstrumentGetActiveIntervals MimeJSON Source # | application/json |
Defined in BitMEX.API |
instrumentGetCompositeIndex
instrumentGetCompositeIndex Source #
:: Accept accept | request accept ( |
-> BitMEXRequest InstrumentGetCompositeIndex MimeNoContent [IndexComposite] accept |
GET /instrument/compositeIndex
Show constituent parts of an index.
Composite indices are built from multiple external price sources. Use this endpoint to get the underlying prices of an index. For example, send a symbol
of `.XBT` to get the ticks and weights of the constituent exchanges that build the ".XBT" index. A tick with reference `"BMI"` and weight null
is the composite index tick.
data InstrumentGetCompositeIndex Source #
Instances
instrumentGetIndices
:: Accept accept | request accept ( |
-> BitMEXRequest InstrumentGetIndices MimeNoContent [Instrument] accept |
GET /instrument/indices
Get all price indices.
data InstrumentGetIndices Source #
Instances
Produces InstrumentGetIndices MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces InstrumentGetIndices MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces InstrumentGetIndices MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces InstrumentGetIndices MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces InstrumentGetIndices MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes InstrumentGetIndices MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes InstrumentGetIndices MimeJSON Source # | application/json |
Defined in BitMEX.API |
Insurance
insuranceGet
:: Accept accept | request accept ( |
-> BitMEXRequest InsuranceGet MimeNoContent [Insurance] accept |
GET /insurance
Get insurance fund history.
data InsuranceGet Source #
Instances
Produces InsuranceGet MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces InsuranceGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces InsuranceGet MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces InsuranceGet MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces InsuranceGet MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes InsuranceGet MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes InsuranceGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
HasOptionalParam InsuranceGet Symbol Source # | Optional Param "symbol" - Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InsuranceGet contentType res accept -> Symbol -> BitMEXRequest InsuranceGet contentType res accept Source # (-&-) :: BitMEXRequest InsuranceGet contentType res accept -> Symbol -> BitMEXRequest InsuranceGet contentType res accept Source # | |
HasOptionalParam InsuranceGet StartTime Source # | Optional Param "startTime" - Starting date filter for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InsuranceGet contentType res accept -> StartTime -> BitMEXRequest InsuranceGet contentType res accept Source # (-&-) :: BitMEXRequest InsuranceGet contentType res accept -> StartTime -> BitMEXRequest InsuranceGet contentType res accept Source # | |
HasOptionalParam InsuranceGet Start Source # | Optional Param "start" - Starting point for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InsuranceGet contentType res accept -> Start -> BitMEXRequest InsuranceGet contentType res accept Source # (-&-) :: BitMEXRequest InsuranceGet contentType res accept -> Start -> BitMEXRequest InsuranceGet contentType res accept Source # | |
HasOptionalParam InsuranceGet Reverse Source # | Optional Param "reverse" - If true, will sort results newest first. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InsuranceGet contentType res accept -> Reverse -> BitMEXRequest InsuranceGet contentType res accept Source # (-&-) :: BitMEXRequest InsuranceGet contentType res accept -> Reverse -> BitMEXRequest InsuranceGet contentType res accept Source # | |
HasOptionalParam InsuranceGet Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InsuranceGet contentType res accept -> Filter -> BitMEXRequest InsuranceGet contentType res accept Source # (-&-) :: BitMEXRequest InsuranceGet contentType res accept -> Filter -> BitMEXRequest InsuranceGet contentType res accept Source # | |
HasOptionalParam InsuranceGet EndTime Source # | Optional Param "endTime" - Ending date filter for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InsuranceGet contentType res accept -> EndTime -> BitMEXRequest InsuranceGet contentType res accept Source # (-&-) :: BitMEXRequest InsuranceGet contentType res accept -> EndTime -> BitMEXRequest InsuranceGet contentType res accept Source # | |
HasOptionalParam InsuranceGet Count Source # | Optional Param "count" - Number of results to fetch. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InsuranceGet contentType res accept -> Count -> BitMEXRequest InsuranceGet contentType res accept Source # (-&-) :: BitMEXRequest InsuranceGet contentType res accept -> Count -> BitMEXRequest InsuranceGet contentType res accept Source # | |
HasOptionalParam InsuranceGet Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InsuranceGet contentType res accept -> Columns -> BitMEXRequest InsuranceGet contentType res accept Source # (-&-) :: BitMEXRequest InsuranceGet contentType res accept -> Columns -> BitMEXRequest InsuranceGet contentType res accept Source # |
Leaderboard
leaderboardGet
:: Accept accept | request accept ( |
-> BitMEXRequest LeaderboardGet MimeNoContent [Leaderboard] accept |
GET /leaderboard
Get current leaderboard.
data LeaderboardGet Source #
Instances
Liquidation
liquidationGet
:: Accept accept | request accept ( |
-> BitMEXRequest LiquidationGet MimeNoContent [Liquidation] accept |
GET /liquidation
Get liquidation orders.
data LiquidationGet Source #
Instances
Produces LiquidationGet MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces LiquidationGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces LiquidationGet MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces LiquidationGet MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces LiquidationGet MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes LiquidationGet MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes LiquidationGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
HasOptionalParam LiquidationGet Symbol Source # | Optional Param "symbol" - Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest LiquidationGet contentType res accept -> Symbol -> BitMEXRequest LiquidationGet contentType res accept Source # (-&-) :: BitMEXRequest LiquidationGet contentType res accept -> Symbol -> BitMEXRequest LiquidationGet contentType res accept Source # | |
HasOptionalParam LiquidationGet StartTime Source # | Optional Param "startTime" - Starting date filter for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest LiquidationGet contentType res accept -> StartTime -> BitMEXRequest LiquidationGet contentType res accept Source # (-&-) :: BitMEXRequest LiquidationGet contentType res accept -> StartTime -> BitMEXRequest LiquidationGet contentType res accept Source # | |
HasOptionalParam LiquidationGet Start Source # | Optional Param "start" - Starting point for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest LiquidationGet contentType res accept -> Start -> BitMEXRequest LiquidationGet contentType res accept Source # (-&-) :: BitMEXRequest LiquidationGet contentType res accept -> Start -> BitMEXRequest LiquidationGet contentType res accept Source # | |
HasOptionalParam LiquidationGet Reverse Source # | Optional Param "reverse" - If true, will sort results newest first. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest LiquidationGet contentType res accept -> Reverse -> BitMEXRequest LiquidationGet contentType res accept Source # (-&-) :: BitMEXRequest LiquidationGet contentType res accept -> Reverse -> BitMEXRequest LiquidationGet contentType res accept Source # | |
HasOptionalParam LiquidationGet Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest LiquidationGet contentType res accept -> Filter -> BitMEXRequest LiquidationGet contentType res accept Source # (-&-) :: BitMEXRequest LiquidationGet contentType res accept -> Filter -> BitMEXRequest LiquidationGet contentType res accept Source # | |
HasOptionalParam LiquidationGet EndTime Source # | Optional Param "endTime" - Ending date filter for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest LiquidationGet contentType res accept -> EndTime -> BitMEXRequest LiquidationGet contentType res accept Source # (-&-) :: BitMEXRequest LiquidationGet contentType res accept -> EndTime -> BitMEXRequest LiquidationGet contentType res accept Source # | |
HasOptionalParam LiquidationGet Count Source # | Optional Param "count" - Number of results to fetch. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest LiquidationGet contentType res accept -> Count -> BitMEXRequest LiquidationGet contentType res accept Source # (-&-) :: BitMEXRequest LiquidationGet contentType res accept -> Count -> BitMEXRequest LiquidationGet contentType res accept Source # | |
HasOptionalParam LiquidationGet Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest LiquidationGet contentType res accept -> Columns -> BitMEXRequest LiquidationGet contentType res accept Source # (-&-) :: BitMEXRequest LiquidationGet contentType res accept -> Columns -> BitMEXRequest LiquidationGet contentType res accept Source # |
Notification
notificationGet
:: Accept accept | request accept ( |
-> BitMEXRequest NotificationGet MimeNoContent [Notification] accept |
GET /notification
Get your current notifications.
This is an upcoming feature and currently does not return data.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data NotificationGet Source #
Instances
Produces NotificationGet MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces NotificationGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces NotificationGet MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces NotificationGet MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces NotificationGet MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes NotificationGet MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes NotificationGet MimeJSON Source # | application/json |
Defined in BitMEX.API |
Order
orderAmend
:: Consumes OrderAmend contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> BitMEXRequest OrderAmend contentType Order accept |
PUT /order
Amend the quantity or price of an open order.
Send an orderID
or origClOrdID
to identify the order you wish to amend. Both order quantity and price can be amended. Only one qty
field can be used to amend. Use the leavesQty
field to specify how much of the order you wish to remain open. This can be useful if you want to adjust your position's delta by a certain amount, regardless of how much of the order has already filled. Use the simpleOrderQty
and simpleLeavesQty
fields to specify order size in Bitcoin, rather than contracts. These fields will round up to the nearest contract. Like order placement, amending can be done in bulk. Simply send a request to `PUT apiv1orderbulk` with a JSON body of the shape: `{"orders": [{...}, {...}]}`, each object containing the fields used in this endpoint.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data OrderAmend Source #
Instances
Produces OrderAmend MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces OrderAmend MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces OrderAmend MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces OrderAmend MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces OrderAmend MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes OrderAmend MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes OrderAmend MimeJSON Source # | application/json |
Defined in BitMEX.API | |
HasOptionalParam OrderAmend StopPx Source # | Optional Param "stopPx" - Optional trigger price for |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderAmend contentType res accept -> StopPx -> BitMEXRequest OrderAmend contentType res accept Source # (-&-) :: BitMEXRequest OrderAmend contentType res accept -> StopPx -> BitMEXRequest OrderAmend contentType res accept Source # | |
HasOptionalParam OrderAmend SimpleOrderQty Source # | Optional Param "simpleOrderQty" - Optional order quantity in units of the underlying instrument (i.e. Bitcoin). |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderAmend contentType res accept -> SimpleOrderQty -> BitMEXRequest OrderAmend contentType res accept Source # (-&-) :: BitMEXRequest OrderAmend contentType res accept -> SimpleOrderQty -> BitMEXRequest OrderAmend contentType res accept Source # | |
HasOptionalParam OrderAmend SimpleLeavesQty Source # | Optional Param "simpleLeavesQty" - Optional leaves quantity in units of the underlying instrument (i.e. Bitcoin). Useful for amending partially filled orders. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderAmend contentType res accept -> SimpleLeavesQty -> BitMEXRequest OrderAmend contentType res accept Source # (-&-) :: BitMEXRequest OrderAmend contentType res accept -> SimpleLeavesQty -> BitMEXRequest OrderAmend contentType res accept Source # | |
HasOptionalParam OrderAmend Price Source # | Optional Param "price" - Optional limit price for |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderAmend contentType res accept -> Price -> BitMEXRequest OrderAmend contentType res accept Source # (-&-) :: BitMEXRequest OrderAmend contentType res accept -> Price -> BitMEXRequest OrderAmend contentType res accept Source # | |
HasOptionalParam OrderAmend PegOffsetValue Source # | Optional Param "pegOffsetValue" - Optional trailing offset from the current price for |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderAmend contentType res accept -> PegOffsetValue -> BitMEXRequest OrderAmend contentType res accept Source # (-&-) :: BitMEXRequest OrderAmend contentType res accept -> PegOffsetValue -> BitMEXRequest OrderAmend contentType res accept Source # | |
HasOptionalParam OrderAmend ParamText Source # | Optional Param "text" - Optional amend annotation. e.g. 'Adjust skew'. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderAmend contentType res accept -> ParamText -> BitMEXRequest OrderAmend contentType res accept Source # (-&-) :: BitMEXRequest OrderAmend contentType res accept -> ParamText -> BitMEXRequest OrderAmend contentType res accept Source # | |
HasOptionalParam OrderAmend OrigClOrdId Source # | Optional Param "origClOrdID" - Client Order ID. See POST /order. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderAmend contentType res accept -> OrigClOrdId -> BitMEXRequest OrderAmend contentType res accept Source # (-&-) :: BitMEXRequest OrderAmend contentType res accept -> OrigClOrdId -> BitMEXRequest OrderAmend contentType res accept Source # | |
HasOptionalParam OrderAmend OrderQty Source # | Optional Param "orderQty" - Optional order quantity in units of the instrument (i.e. contracts). |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderAmend contentType res accept -> OrderQty -> BitMEXRequest OrderAmend contentType res accept Source # (-&-) :: BitMEXRequest OrderAmend contentType res accept -> OrderQty -> BitMEXRequest OrderAmend contentType res accept Source # | |
HasOptionalParam OrderAmend OrderId Source # | Optional Param "orderID" - Order ID |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderAmend contentType res accept -> OrderId -> BitMEXRequest OrderAmend contentType res accept Source # (-&-) :: BitMEXRequest OrderAmend contentType res accept -> OrderId -> BitMEXRequest OrderAmend contentType res accept Source # | |
HasOptionalParam OrderAmend LeavesQty Source # | Optional Param "leavesQty" - Optional leaves quantity in units of the instrument (i.e. contracts). Useful for amending partially filled orders. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderAmend contentType res accept -> LeavesQty -> BitMEXRequest OrderAmend contentType res accept Source # (-&-) :: BitMEXRequest OrderAmend contentType res accept -> LeavesQty -> BitMEXRequest OrderAmend contentType res accept Source # | |
HasOptionalParam OrderAmend ClOrdId Source # | Optional Param "clOrdID" - Optional new Client Order ID, requires |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderAmend contentType res accept -> ClOrdId -> BitMEXRequest OrderAmend contentType res accept Source # (-&-) :: BitMEXRequest OrderAmend contentType res accept -> ClOrdId -> BitMEXRequest OrderAmend contentType res accept Source # |
orderAmendBulk
:: Consumes OrderAmendBulk contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> BitMEXRequest OrderAmendBulk contentType [Order] accept |
PUT /order/bulk
Amend multiple orders for the same symbol.
Similar to POST amend, but with multiple orders. `applicationjson` only. Ratelimited at 50%.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data OrderAmendBulk Source #
Instances
Produces OrderAmendBulk MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces OrderAmendBulk MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces OrderAmendBulk MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces OrderAmendBulk MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces OrderAmendBulk MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes OrderAmendBulk MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes OrderAmendBulk MimeJSON Source # | application/json |
Defined in BitMEX.API | |
HasOptionalParam OrderAmendBulk Orders Source # | Optional Param "orders" - An array of orders. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderAmendBulk contentType res accept -> Orders -> BitMEXRequest OrderAmendBulk contentType res accept Source # (-&-) :: BitMEXRequest OrderAmendBulk contentType res accept -> Orders -> BitMEXRequest OrderAmendBulk contentType res accept Source # |
orderCancel
:: Consumes OrderCancel contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> BitMEXRequest OrderCancel contentType [Order] accept |
DELETE /order
Cancel order(s). Send multiple order IDs to cancel in bulk.
Either an orderID or a clOrdID must be provided.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data OrderCancel Source #
Instances
orderCancelAll
:: Consumes OrderCancelAll contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> BitMEXRequest OrderCancelAll contentType Value accept |
DELETE /order/all
Cancels all of your orders.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data OrderCancelAll Source #
Instances
orderCancelAllAfter
:: Consumes OrderCancelAllAfter contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> Timeout | "timeout" - Timeout in ms. Set to 0 to cancel this timer. |
-> BitMEXRequest OrderCancelAllAfter contentType Value accept |
POST /order/cancelAllAfter
Automatically cancel all your orders after a specified timeout.
Useful as a dead-man's switch to ensure your orders are canceled in case of an outage. If called repeatedly, the existing offset will be canceled and a new one will be inserted in its place. Example usage: call this route at 15s intervals with an offset of 60000 (60s). If this route is not called within 60 seconds, all your orders will be automatically canceled. This is also available via WebSocket.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data OrderCancelAllAfter Source #
Instances
Produces OrderCancelAllAfter MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces OrderCancelAllAfter MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces OrderCancelAllAfter MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces OrderCancelAllAfter MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces OrderCancelAllAfter MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes OrderCancelAllAfter MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes OrderCancelAllAfter MimeJSON Source # | application/json |
Defined in BitMEX.API |
orderClosePosition
:: Consumes OrderClosePosition contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> Symbol | "symbol" - Symbol of position to close. |
-> BitMEXRequest OrderClosePosition contentType Order accept |
POST /order/closePosition
Close a position. [Deprecated, use POST /order with execInst: Close
]
If no price
is specified, a market order will be submitted to close the whole of your position. This will also close all other open orders in this symbol.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data OrderClosePosition Source #
Instances
orderGetOrders
:: Accept accept | request accept ( |
-> BitMEXRequest OrderGetOrders MimeNoContent [Order] accept |
GET /order
Get your orders.
To get open orders only, send {"open": true} in the filter param. See href="http://www.onixs.biz/fix-dictionary/5.0.SP2/msgType_D_68.html"the FIX Spec/a for explanations of these fields.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data OrderGetOrders Source #
Instances
Produces OrderGetOrders MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces OrderGetOrders MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces OrderGetOrders MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces OrderGetOrders MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces OrderGetOrders MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes OrderGetOrders MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes OrderGetOrders MimeJSON Source # | application/json |
Defined in BitMEX.API | |
HasOptionalParam OrderGetOrders Symbol Source # | Optional Param "symbol" - Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderGetOrders contentType res accept -> Symbol -> BitMEXRequest OrderGetOrders contentType res accept Source # (-&-) :: BitMEXRequest OrderGetOrders contentType res accept -> Symbol -> BitMEXRequest OrderGetOrders contentType res accept Source # | |
HasOptionalParam OrderGetOrders StartTime Source # | Optional Param "startTime" - Starting date filter for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderGetOrders contentType res accept -> StartTime -> BitMEXRequest OrderGetOrders contentType res accept Source # (-&-) :: BitMEXRequest OrderGetOrders contentType res accept -> StartTime -> BitMEXRequest OrderGetOrders contentType res accept Source # | |
HasOptionalParam OrderGetOrders Start Source # | Optional Param "start" - Starting point for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderGetOrders contentType res accept -> Start -> BitMEXRequest OrderGetOrders contentType res accept Source # (-&-) :: BitMEXRequest OrderGetOrders contentType res accept -> Start -> BitMEXRequest OrderGetOrders contentType res accept Source # | |
HasOptionalParam OrderGetOrders Reverse Source # | Optional Param "reverse" - If true, will sort results newest first. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderGetOrders contentType res accept -> Reverse -> BitMEXRequest OrderGetOrders contentType res accept Source # (-&-) :: BitMEXRequest OrderGetOrders contentType res accept -> Reverse -> BitMEXRequest OrderGetOrders contentType res accept Source # | |
HasOptionalParam OrderGetOrders Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderGetOrders contentType res accept -> Filter -> BitMEXRequest OrderGetOrders contentType res accept Source # (-&-) :: BitMEXRequest OrderGetOrders contentType res accept -> Filter -> BitMEXRequest OrderGetOrders contentType res accept Source # | |
HasOptionalParam OrderGetOrders EndTime Source # | Optional Param "endTime" - Ending date filter for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderGetOrders contentType res accept -> EndTime -> BitMEXRequest OrderGetOrders contentType res accept Source # (-&-) :: BitMEXRequest OrderGetOrders contentType res accept -> EndTime -> BitMEXRequest OrderGetOrders contentType res accept Source # | |
HasOptionalParam OrderGetOrders Count Source # | Optional Param "count" - Number of results to fetch. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderGetOrders contentType res accept -> Count -> BitMEXRequest OrderGetOrders contentType res accept Source # (-&-) :: BitMEXRequest OrderGetOrders contentType res accept -> Count -> BitMEXRequest OrderGetOrders contentType res accept Source # | |
HasOptionalParam OrderGetOrders Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderGetOrders contentType res accept -> Columns -> BitMEXRequest OrderGetOrders contentType res accept Source # (-&-) :: BitMEXRequest OrderGetOrders contentType res accept -> Columns -> BitMEXRequest OrderGetOrders contentType res accept Source # |
orderNew
:: Consumes OrderNew contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> Symbol | "symbol" - Instrument symbol. e.g. |
-> BitMEXRequest OrderNew contentType Order accept |
POST /order
Create a new order.
##### ########!OrderOrder_newBulk) if you need to place multiple orders at the same time. Bulk orders require fewer risk checks in the trading engine and thus are ratelimited at **110** the normal rate. You can also improve your reactivity to market movements while staying under your ratelimit by using the [Amend](#!OrderOrder_amend) and [Amend Bulk](#!OrderOrder_amendBulk) endpoints. This allows you to stay in the market and avoids the cancelreplace cycle. #### Tracking Your Orders If you want to keep track of order IDs yourself, set a unique clOrdID
per order. This clOrdID
will come back as a property on the order and any related executions (including on the WebSocket), and can be used to get or cancel the order. Max length is 36 characters.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
Instances
Produces OrderNew MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces OrderNew MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces OrderNew MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces OrderNew MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces OrderNew MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes OrderNew MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes OrderNew MimeJSON Source # | application/json |
Defined in BitMEX.API | |
HasOptionalParam OrderNew TimeInForce Source # | Optional Param "timeInForce" - Time in force. Valid options: Day, GoodTillCancel, ImmediateOrCancel, FillOrKill. Defaults to |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> TimeInForce -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> TimeInForce -> BitMEXRequest OrderNew contentType res accept Source # | |
HasOptionalParam OrderNew StopPx Source # | Optional Param "stopPx" - Optional trigger price for |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> StopPx -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> StopPx -> BitMEXRequest OrderNew contentType res accept Source # | |
HasOptionalParam OrderNew StopPrice Source # | Optional Param "stopPrice" - Deprecated: use |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> StopPrice -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> StopPrice -> BitMEXRequest OrderNew contentType res accept Source # | |
HasOptionalParam OrderNew SimpleOrderQty Source # | Optional Param "simpleOrderQty" - Order quantity in units of the underlying instrument (i.e. Bitcoin). |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> SimpleOrderQty -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> SimpleOrderQty -> BitMEXRequest OrderNew contentType res accept Source # | |
HasOptionalParam OrderNew Side Source # | Optional Param "side" - Order side. Valid options: Buy, Sell. Defaults to |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> Side -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> Side -> BitMEXRequest OrderNew contentType res accept Source # | |
HasOptionalParam OrderNew Quantity Source # | Optional Param "quantity" - Deprecated: use |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> Quantity -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> Quantity -> BitMEXRequest OrderNew contentType res accept Source # | |
HasOptionalParam OrderNew Price Source # | Optional Param "price" - Optional limit price for |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> Price -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> Price -> BitMEXRequest OrderNew contentType res accept Source # | |
HasOptionalParam OrderNew PegPriceType Source # | Optional Param "pegPriceType" - Optional peg price type. Valid options: LastPeg, MidPricePeg, MarketPeg, PrimaryPeg, TrailingStopPeg. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> PegPriceType -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> PegPriceType -> BitMEXRequest OrderNew contentType res accept Source # | |
HasOptionalParam OrderNew PegOffsetValue Source # | Optional Param "pegOffsetValue" - Optional trailing offset from the current price for |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> PegOffsetValue -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> PegOffsetValue -> BitMEXRequest OrderNew contentType res accept Source # | |
HasOptionalParam OrderNew ParamType Source # | Optional Param "type" - Deprecated: use |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> ParamType -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> ParamType -> BitMEXRequest OrderNew contentType res accept Source # | |
HasOptionalParam OrderNew ParamText Source # | Optional Param "text" - Optional order annotation. e.g. 'Take profit'. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> ParamText -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> ParamText -> BitMEXRequest OrderNew contentType res accept Source # | |
HasOptionalParam OrderNew OrderQty Source # | Optional Param "orderQty" - Order quantity in units of the instrument (i.e. contracts). |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> OrderQty -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> OrderQty -> BitMEXRequest OrderNew contentType res accept Source # | |
HasOptionalParam OrderNew OrdType Source # | Optional Param "ordType" - Order type. Valid options: Market, Limit, Stop, StopLimit, MarketIfTouched, LimitIfTouched, MarketWithLeftOverAsLimit, Pegged. Defaults to |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> OrdType -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> OrdType -> BitMEXRequest OrderNew contentType res accept Source # | |
HasOptionalParam OrderNew ExecInst Source # | Optional Param "execInst" - Optional execution instructions. Valid options: ParticipateDoNotInitiate, AllOrNone, MarkPrice, IndexPrice, LastPrice, Close, ReduceOnly, Fixed. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> ExecInst -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> ExecInst -> BitMEXRequest OrderNew contentType res accept Source # | |
HasOptionalParam OrderNew DisplayQty Source # | Optional Param "displayQty" - Optional quantity to display in the book. Use 0 for a fully hidden order. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> DisplayQty -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> DisplayQty -> BitMEXRequest OrderNew contentType res accept Source # | |
HasOptionalParam OrderNew ContingencyType Source # | Optional Param "contingencyType" - Optional contingency type for use with |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> ContingencyType -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> ContingencyType -> BitMEXRequest OrderNew contentType res accept Source # | |
HasOptionalParam OrderNew ClOrdLinkId Source # | Optional Param "clOrdLinkID" - Optional Client Order Link ID for contingent orders. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> ClOrdLinkId -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> ClOrdLinkId -> BitMEXRequest OrderNew contentType res accept Source # | |
HasOptionalParam OrderNew ClOrdId Source # | Optional Param "clOrdID" - Optional Client Order ID. This clOrdID will come back on the order and any related executions. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> ClOrdId -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> ClOrdId -> BitMEXRequest OrderNew contentType res accept Source # |
orderNewBulk
:: Consumes OrderNewBulk contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> BitMEXRequest OrderNewBulk contentType [Order] accept |
POST /order/bulk
Create multiple new orders for the same symbol.
This endpoint is used for placing bulk orders. Valid order types are Market, Limit, Stop, StopLimit, MarketIfTouched, LimitIfTouched, MarketWithLeftOverAsLimit, and Pegged. Each individual order object in the array should have the same properties as an individual POST order call. This endpoint is much faster for getting many orders into the book at once. Because it reduces load on BitMEX systems, this endpoint is ratelimited at `ceil(0.1 * orders)`. Submitting 10 orders via a bulk order call will only count as 1 request, 15 as 2, 32 as 4, and so on. For now, only `applicationjson` is supported on this endpoint.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data OrderNewBulk Source #
Instances
Produces OrderNewBulk MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces OrderNewBulk MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces OrderNewBulk MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces OrderNewBulk MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces OrderNewBulk MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes OrderNewBulk MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes OrderNewBulk MimeJSON Source # | application/json |
Defined in BitMEX.API | |
HasOptionalParam OrderNewBulk Orders Source # | Optional Param "orders" - An array of orders. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNewBulk contentType res accept -> Orders -> BitMEXRequest OrderNewBulk contentType res accept Source # (-&-) :: BitMEXRequest OrderNewBulk contentType res accept -> Orders -> BitMEXRequest OrderNewBulk contentType res accept Source # |
OrderBook
orderBookGet
:: Accept accept | request accept ( |
-> Symbol | "symbol" - Instrument symbol. Send a series (e.g. XBT) to get data for the nearest contract in that series. |
-> BitMEXRequest OrderBookGet MimeNoContent [OrderBook] accept |
GET /orderBook
Get current orderbook [deprecated, use orderBookL2].
data OrderBookGet Source #
Instances
Produces OrderBookGet MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces OrderBookGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces OrderBookGet MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces OrderBookGet MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces OrderBookGet MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes OrderBookGet MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes OrderBookGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
HasOptionalParam OrderBookGet Depth Source # | Optional Param "depth" - Orderbook depth. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderBookGet contentType res accept -> Depth -> BitMEXRequest OrderBookGet contentType res accept Source # (-&-) :: BitMEXRequest OrderBookGet contentType res accept -> Depth -> BitMEXRequest OrderBookGet contentType res accept Source # |
orderBookGetL2
:: Accept accept | request accept ( |
-> Symbol | "symbol" - Instrument symbol. Send a series (e.g. XBT) to get data for the nearest contract in that series. |
-> BitMEXRequest OrderBookGetL2 MimeNoContent [OrderBookL2] accept |
GET /orderBook/L2
Get current orderbook in vertical format.
data OrderBookGetL2 Source #
Instances
Position
positionGet
:: Accept accept | request accept ( |
-> BitMEXRequest PositionGet MimeNoContent [Position] accept |
GET /position
Get your positions.
See href="http://www.onixs.biz/fix-dictionary/5.0.SP2/msgType_AP_6580.html"the FIX Spec/a for explanations of these fields.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data PositionGet Source #
Instances
positionIsolateMargin
positionIsolateMargin Source #
:: Consumes PositionIsolateMargin contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> Symbol | "symbol" - Position symbol to isolate. |
-> BitMEXRequest PositionIsolateMargin contentType Position accept |
POST /position/isolate
Enable isolated margin or cross margin per-position.
Users can switch isolate margin per-position. This function allows switching margin isolation (aka fixed margin) on and off.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data PositionIsolateMargin Source #
Instances
positionTransferIsolatedMargin
positionTransferIsolatedMargin Source #
:: Consumes PositionTransferIsolatedMargin contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> Symbol | "symbol" - Symbol of position to isolate. |
-> Amount | "amount" - Amount to transfer, in Satoshis. May be negative. |
-> BitMEXRequest PositionTransferIsolatedMargin contentType Position accept |
POST /position/transferMargin
Transfer equity in or out of a position.
When margin is isolated on a position, use this function to add or remove margin from the position. Note that you cannot remove margin below the initial margin threshold.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data PositionTransferIsolatedMargin Source #
Instances
Produces PositionTransferIsolatedMargin MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces PositionTransferIsolatedMargin MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces PositionTransferIsolatedMargin MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces PositionTransferIsolatedMargin MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces PositionTransferIsolatedMargin MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes PositionTransferIsolatedMargin MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes PositionTransferIsolatedMargin MimeJSON Source # | application/json |
Defined in BitMEX.API |
positionUpdateLeverage
positionUpdateLeverage Source #
:: Consumes PositionUpdateLeverage contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> Symbol | "symbol" - Symbol of position to adjust. |
-> Leverage | "leverage" - Leverage value. Send a number between 0.01 and 100 to enable isolated margin with a fixed leverage. Send 0 to enable cross margin. |
-> BitMEXRequest PositionUpdateLeverage contentType Position accept |
POST /position/leverage
Choose leverage for a position.
Users can choose an isolated leverage. This will automatically enable isolated margin.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data PositionUpdateLeverage Source #
Instances
Produces PositionUpdateLeverage MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces PositionUpdateLeverage MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces PositionUpdateLeverage MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces PositionUpdateLeverage MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces PositionUpdateLeverage MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes PositionUpdateLeverage MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes PositionUpdateLeverage MimeJSON Source # | application/json |
Defined in BitMEX.API |
positionUpdateRiskLimit
positionUpdateRiskLimit Source #
:: Consumes PositionUpdateRiskLimit contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> Symbol | "symbol" - Symbol of position to isolate. |
-> RiskLimit | "riskLimit" - New Risk Limit, in Satoshis. |
-> BitMEXRequest PositionUpdateRiskLimit contentType Position accept |
POST /position/riskLimit
Update your risk limit.
Risk Limits limit the size of positions you can trade at various margin levels. Larger positions require more margin. Please see the Risk Limit documentation for more details.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data PositionUpdateRiskLimit Source #
Instances
Produces PositionUpdateRiskLimit MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces PositionUpdateRiskLimit MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces PositionUpdateRiskLimit MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces PositionUpdateRiskLimit MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces PositionUpdateRiskLimit MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes PositionUpdateRiskLimit MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes PositionUpdateRiskLimit MimeJSON Source # | application/json |
Defined in BitMEX.API |
Quote
quoteGet
:: Accept accept | request accept ( |
-> BitMEXRequest QuoteGet MimeNoContent [Quote] accept |
GET /quote
Get Quotes.
Instances
Produces QuoteGet MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces QuoteGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces QuoteGet MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces QuoteGet MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces QuoteGet MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes QuoteGet MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes QuoteGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
HasOptionalParam QuoteGet Symbol Source # | Optional Param "symbol" - Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGet contentType res accept -> Symbol -> BitMEXRequest QuoteGet contentType res accept Source # (-&-) :: BitMEXRequest QuoteGet contentType res accept -> Symbol -> BitMEXRequest QuoteGet contentType res accept Source # | |
HasOptionalParam QuoteGet StartTime Source # | Optional Param "startTime" - Starting date filter for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGet contentType res accept -> StartTime -> BitMEXRequest QuoteGet contentType res accept Source # (-&-) :: BitMEXRequest QuoteGet contentType res accept -> StartTime -> BitMEXRequest QuoteGet contentType res accept Source # | |
HasOptionalParam QuoteGet Start Source # | Optional Param "start" - Starting point for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGet contentType res accept -> Start -> BitMEXRequest QuoteGet contentType res accept Source # (-&-) :: BitMEXRequest QuoteGet contentType res accept -> Start -> BitMEXRequest QuoteGet contentType res accept Source # | |
HasOptionalParam QuoteGet Reverse Source # | Optional Param "reverse" - If true, will sort results newest first. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGet contentType res accept -> Reverse -> BitMEXRequest QuoteGet contentType res accept Source # (-&-) :: BitMEXRequest QuoteGet contentType res accept -> Reverse -> BitMEXRequest QuoteGet contentType res accept Source # | |
HasOptionalParam QuoteGet Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGet contentType res accept -> Filter -> BitMEXRequest QuoteGet contentType res accept Source # (-&-) :: BitMEXRequest QuoteGet contentType res accept -> Filter -> BitMEXRequest QuoteGet contentType res accept Source # | |
HasOptionalParam QuoteGet EndTime Source # | Optional Param "endTime" - Ending date filter for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGet contentType res accept -> EndTime -> BitMEXRequest QuoteGet contentType res accept Source # (-&-) :: BitMEXRequest QuoteGet contentType res accept -> EndTime -> BitMEXRequest QuoteGet contentType res accept Source # | |
HasOptionalParam QuoteGet Count Source # | Optional Param "count" - Number of results to fetch. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGet contentType res accept -> Count -> BitMEXRequest QuoteGet contentType res accept Source # (-&-) :: BitMEXRequest QuoteGet contentType res accept -> Count -> BitMEXRequest QuoteGet contentType res accept Source # | |
HasOptionalParam QuoteGet Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGet contentType res accept -> Columns -> BitMEXRequest QuoteGet contentType res accept Source # (-&-) :: BitMEXRequest QuoteGet contentType res accept -> Columns -> BitMEXRequest QuoteGet contentType res accept Source # |
quoteGetBucketed
:: Accept accept | request accept ( |
-> BitMEXRequest QuoteGetBucketed MimeNoContent [Quote] accept |
GET /quote/bucketed
Get previous quotes in time buckets.
data QuoteGetBucketed Source #
Instances
Produces QuoteGetBucketed MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces QuoteGetBucketed MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces QuoteGetBucketed MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces QuoteGetBucketed MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces QuoteGetBucketed MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes QuoteGetBucketed MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes QuoteGetBucketed MimeJSON Source # | application/json |
Defined in BitMEX.API | |
HasOptionalParam QuoteGetBucketed Symbol Source # | Optional Param "symbol" - Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGetBucketed contentType res accept -> Symbol -> BitMEXRequest QuoteGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest QuoteGetBucketed contentType res accept -> Symbol -> BitMEXRequest QuoteGetBucketed contentType res accept Source # | |
HasOptionalParam QuoteGetBucketed StartTime Source # | Optional Param "startTime" - Starting date filter for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGetBucketed contentType res accept -> StartTime -> BitMEXRequest QuoteGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest QuoteGetBucketed contentType res accept -> StartTime -> BitMEXRequest QuoteGetBucketed contentType res accept Source # | |
HasOptionalParam QuoteGetBucketed Start Source # | Optional Param "start" - Starting point for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGetBucketed contentType res accept -> Start -> BitMEXRequest QuoteGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest QuoteGetBucketed contentType res accept -> Start -> BitMEXRequest QuoteGetBucketed contentType res accept Source # | |
HasOptionalParam QuoteGetBucketed Reverse Source # | Optional Param "reverse" - If true, will sort results newest first. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGetBucketed contentType res accept -> Reverse -> BitMEXRequest QuoteGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest QuoteGetBucketed contentType res accept -> Reverse -> BitMEXRequest QuoteGetBucketed contentType res accept Source # | |
HasOptionalParam QuoteGetBucketed Partial Source # | Optional Param "partial" - If true, will send in-progress (incomplete) bins for the current time period. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGetBucketed contentType res accept -> Partial -> BitMEXRequest QuoteGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest QuoteGetBucketed contentType res accept -> Partial -> BitMEXRequest QuoteGetBucketed contentType res accept Source # | |
HasOptionalParam QuoteGetBucketed Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGetBucketed contentType res accept -> Filter -> BitMEXRequest QuoteGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest QuoteGetBucketed contentType res accept -> Filter -> BitMEXRequest QuoteGetBucketed contentType res accept Source # | |
HasOptionalParam QuoteGetBucketed EndTime Source # | Optional Param "endTime" - Ending date filter for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGetBucketed contentType res accept -> EndTime -> BitMEXRequest QuoteGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest QuoteGetBucketed contentType res accept -> EndTime -> BitMEXRequest QuoteGetBucketed contentType res accept Source # | |
HasOptionalParam QuoteGetBucketed Count Source # | Optional Param "count" - Number of results to fetch. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGetBucketed contentType res accept -> Count -> BitMEXRequest QuoteGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest QuoteGetBucketed contentType res accept -> Count -> BitMEXRequest QuoteGetBucketed contentType res accept Source # | |
HasOptionalParam QuoteGetBucketed Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGetBucketed contentType res accept -> Columns -> BitMEXRequest QuoteGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest QuoteGetBucketed contentType res accept -> Columns -> BitMEXRequest QuoteGetBucketed contentType res accept Source # | |
HasOptionalParam QuoteGetBucketed BinSize Source # | Optional Param "binSize" - Time interval to bucket by. Available options: [1m,5m,1h,1d]. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGetBucketed contentType res accept -> BinSize -> BitMEXRequest QuoteGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest QuoteGetBucketed contentType res accept -> BinSize -> BitMEXRequest QuoteGetBucketed contentType res accept Source # |
Schema
schemaGet
:: Accept accept | request accept ( |
-> BitMEXRequest SchemaGet MimeNoContent Value accept |
GET /schema
Get model schemata for data objects returned by this API.
Instances
Produces SchemaGet MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces SchemaGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces SchemaGet MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces SchemaGet MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces SchemaGet MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes SchemaGet MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes SchemaGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
HasOptionalParam SchemaGet Model Source # | Optional Param "model" - Optional model filter. If omitted, will return all models. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest SchemaGet contentType res accept -> Model -> BitMEXRequest SchemaGet contentType res accept Source # (-&-) :: BitMEXRequest SchemaGet contentType res accept -> Model -> BitMEXRequest SchemaGet contentType res accept Source # |
schemaWebsocketHelp
:: Accept accept | request accept ( |
-> BitMEXRequest SchemaWebsocketHelp MimeNoContent Value accept |
GET /schema/websocketHelp
Returns help text & subject list for websocket usage.
data SchemaWebsocketHelp Source #
Instances
Produces SchemaWebsocketHelp MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces SchemaWebsocketHelp MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces SchemaWebsocketHelp MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces SchemaWebsocketHelp MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces SchemaWebsocketHelp MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes SchemaWebsocketHelp MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes SchemaWebsocketHelp MimeJSON Source # | application/json |
Defined in BitMEX.API |
Settlement
settlementGet
:: Accept accept | request accept ( |
-> BitMEXRequest SettlementGet MimeNoContent [Settlement] accept |
GET /settlement
Get settlement history.
data SettlementGet Source #
Instances
Produces SettlementGet MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces SettlementGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces SettlementGet MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces SettlementGet MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces SettlementGet MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes SettlementGet MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes SettlementGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
HasOptionalParam SettlementGet Symbol Source # | Optional Param "symbol" - Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest SettlementGet contentType res accept -> Symbol -> BitMEXRequest SettlementGet contentType res accept Source # (-&-) :: BitMEXRequest SettlementGet contentType res accept -> Symbol -> BitMEXRequest SettlementGet contentType res accept Source # | |
HasOptionalParam SettlementGet StartTime Source # | Optional Param "startTime" - Starting date filter for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest SettlementGet contentType res accept -> StartTime -> BitMEXRequest SettlementGet contentType res accept Source # (-&-) :: BitMEXRequest SettlementGet contentType res accept -> StartTime -> BitMEXRequest SettlementGet contentType res accept Source # | |
HasOptionalParam SettlementGet Start Source # | Optional Param "start" - Starting point for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest SettlementGet contentType res accept -> Start -> BitMEXRequest SettlementGet contentType res accept Source # (-&-) :: BitMEXRequest SettlementGet contentType res accept -> Start -> BitMEXRequest SettlementGet contentType res accept Source # | |
HasOptionalParam SettlementGet Reverse Source # | Optional Param "reverse" - If true, will sort results newest first. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest SettlementGet contentType res accept -> Reverse -> BitMEXRequest SettlementGet contentType res accept Source # (-&-) :: BitMEXRequest SettlementGet contentType res accept -> Reverse -> BitMEXRequest SettlementGet contentType res accept Source # | |
HasOptionalParam SettlementGet Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest SettlementGet contentType res accept -> Filter -> BitMEXRequest SettlementGet contentType res accept Source # (-&-) :: BitMEXRequest SettlementGet contentType res accept -> Filter -> BitMEXRequest SettlementGet contentType res accept Source # | |
HasOptionalParam SettlementGet EndTime Source # | Optional Param "endTime" - Ending date filter for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest SettlementGet contentType res accept -> EndTime -> BitMEXRequest SettlementGet contentType res accept Source # (-&-) :: BitMEXRequest SettlementGet contentType res accept -> EndTime -> BitMEXRequest SettlementGet contentType res accept Source # | |
HasOptionalParam SettlementGet Count Source # | Optional Param "count" - Number of results to fetch. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest SettlementGet contentType res accept -> Count -> BitMEXRequest SettlementGet contentType res accept Source # (-&-) :: BitMEXRequest SettlementGet contentType res accept -> Count -> BitMEXRequest SettlementGet contentType res accept Source # | |
HasOptionalParam SettlementGet Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest SettlementGet contentType res accept -> Columns -> BitMEXRequest SettlementGet contentType res accept Source # (-&-) :: BitMEXRequest SettlementGet contentType res accept -> Columns -> BitMEXRequest SettlementGet contentType res accept Source # |
Stats
statsGet
:: Accept accept | request accept ( |
-> BitMEXRequest StatsGet MimeNoContent [Stats] accept |
GET /stats
Get exchange-wide and per-series turnover and volume statistics.
Instances
Produces StatsGet MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces StatsGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces StatsGet MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces StatsGet MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces StatsGet MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes StatsGet MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes StatsGet MimeJSON Source # | application/json |
Defined in BitMEX.API |
statsHistory2
:: Accept accept | request accept ( |
-> BitMEXRequest StatsHistory2 MimeNoContent [StatsHistory] accept |
GET /stats/history
Get historical exchange-wide and per-series turnover and volume statistics.
data StatsHistory2 Source #
Instances
Produces StatsHistory2 MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces StatsHistory2 MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces StatsHistory2 MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces StatsHistory2 MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces StatsHistory2 MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes StatsHistory2 MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes StatsHistory2 MimeJSON Source # | application/json |
Defined in BitMEX.API |
statsHistoryUSD
:: Accept accept | request accept ( |
-> BitMEXRequest StatsHistoryUSD MimeNoContent [StatsUSD] accept |
GET /stats/historyUSD
Get a summary of exchange statistics in USD.
data StatsHistoryUSD Source #
Instances
Produces StatsHistoryUSD MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces StatsHistoryUSD MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces StatsHistoryUSD MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces StatsHistoryUSD MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces StatsHistoryUSD MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes StatsHistoryUSD MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes StatsHistoryUSD MimeJSON Source # | application/json |
Defined in BitMEX.API |
Trade
tradeGet
:: Accept accept | request accept ( |
-> BitMEXRequest TradeGet MimeNoContent [Trade] accept |
GET /trade
Get Trades.
Please note that indices (symbols starting with .
) post trades at intervals to the trade feed. These have a size
of 0 and are used only to indicate a changing price. See the FIX Spec for explanations of these fields.
Instances
Produces TradeGet MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces TradeGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces TradeGet MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces TradeGet MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces TradeGet MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes TradeGet MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes TradeGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
HasOptionalParam TradeGet Symbol Source # | Optional Param "symbol" - Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGet contentType res accept -> Symbol -> BitMEXRequest TradeGet contentType res accept Source # (-&-) :: BitMEXRequest TradeGet contentType res accept -> Symbol -> BitMEXRequest TradeGet contentType res accept Source # | |
HasOptionalParam TradeGet StartTime Source # | Optional Param "startTime" - Starting date filter for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGet contentType res accept -> StartTime -> BitMEXRequest TradeGet contentType res accept Source # (-&-) :: BitMEXRequest TradeGet contentType res accept -> StartTime -> BitMEXRequest TradeGet contentType res accept Source # | |
HasOptionalParam TradeGet Start Source # | Optional Param "start" - Starting point for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGet contentType res accept -> Start -> BitMEXRequest TradeGet contentType res accept Source # (-&-) :: BitMEXRequest TradeGet contentType res accept -> Start -> BitMEXRequest TradeGet contentType res accept Source # | |
HasOptionalParam TradeGet Reverse Source # | Optional Param "reverse" - If true, will sort results newest first. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGet contentType res accept -> Reverse -> BitMEXRequest TradeGet contentType res accept Source # (-&-) :: BitMEXRequest TradeGet contentType res accept -> Reverse -> BitMEXRequest TradeGet contentType res accept Source # | |
HasOptionalParam TradeGet Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGet contentType res accept -> Filter -> BitMEXRequest TradeGet contentType res accept Source # (-&-) :: BitMEXRequest TradeGet contentType res accept -> Filter -> BitMEXRequest TradeGet contentType res accept Source # | |
HasOptionalParam TradeGet EndTime Source # | Optional Param "endTime" - Ending date filter for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGet contentType res accept -> EndTime -> BitMEXRequest TradeGet contentType res accept Source # (-&-) :: BitMEXRequest TradeGet contentType res accept -> EndTime -> BitMEXRequest TradeGet contentType res accept Source # | |
HasOptionalParam TradeGet Count Source # | Optional Param "count" - Number of results to fetch. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGet contentType res accept -> Count -> BitMEXRequest TradeGet contentType res accept Source # (-&-) :: BitMEXRequest TradeGet contentType res accept -> Count -> BitMEXRequest TradeGet contentType res accept Source # | |
HasOptionalParam TradeGet Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGet contentType res accept -> Columns -> BitMEXRequest TradeGet contentType res accept Source # (-&-) :: BitMEXRequest TradeGet contentType res accept -> Columns -> BitMEXRequest TradeGet contentType res accept Source # |
tradeGetBucketed
:: Accept accept | request accept ( |
-> BitMEXRequest TradeGetBucketed MimeNoContent [TradeBin] accept |
GET /trade/bucketed
Get previous trades in time buckets.
data TradeGetBucketed Source #
Instances
Produces TradeGetBucketed MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces TradeGetBucketed MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces TradeGetBucketed MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces TradeGetBucketed MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces TradeGetBucketed MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes TradeGetBucketed MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes TradeGetBucketed MimeJSON Source # | application/json |
Defined in BitMEX.API | |
HasOptionalParam TradeGetBucketed Symbol Source # | Optional Param "symbol" - Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGetBucketed contentType res accept -> Symbol -> BitMEXRequest TradeGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest TradeGetBucketed contentType res accept -> Symbol -> BitMEXRequest TradeGetBucketed contentType res accept Source # | |
HasOptionalParam TradeGetBucketed StartTime Source # | Optional Param "startTime" - Starting date filter for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGetBucketed contentType res accept -> StartTime -> BitMEXRequest TradeGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest TradeGetBucketed contentType res accept -> StartTime -> BitMEXRequest TradeGetBucketed contentType res accept Source # | |
HasOptionalParam TradeGetBucketed Start Source # | Optional Param "start" - Starting point for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGetBucketed contentType res accept -> Start -> BitMEXRequest TradeGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest TradeGetBucketed contentType res accept -> Start -> BitMEXRequest TradeGetBucketed contentType res accept Source # | |
HasOptionalParam TradeGetBucketed Reverse Source # | Optional Param "reverse" - If true, will sort results newest first. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGetBucketed contentType res accept -> Reverse -> BitMEXRequest TradeGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest TradeGetBucketed contentType res accept -> Reverse -> BitMEXRequest TradeGetBucketed contentType res accept Source # | |
HasOptionalParam TradeGetBucketed Partial Source # | Optional Param "partial" - If true, will send in-progress (incomplete) bins for the current time period. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGetBucketed contentType res accept -> Partial -> BitMEXRequest TradeGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest TradeGetBucketed contentType res accept -> Partial -> BitMEXRequest TradeGetBucketed contentType res accept Source # | |
HasOptionalParam TradeGetBucketed Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGetBucketed contentType res accept -> Filter -> BitMEXRequest TradeGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest TradeGetBucketed contentType res accept -> Filter -> BitMEXRequest TradeGetBucketed contentType res accept Source # | |
HasOptionalParam TradeGetBucketed EndTime Source # | Optional Param "endTime" - Ending date filter for results. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGetBucketed contentType res accept -> EndTime -> BitMEXRequest TradeGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest TradeGetBucketed contentType res accept -> EndTime -> BitMEXRequest TradeGetBucketed contentType res accept Source # | |
HasOptionalParam TradeGetBucketed Count Source # | Optional Param "count" - Number of results to fetch. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGetBucketed contentType res accept -> Count -> BitMEXRequest TradeGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest TradeGetBucketed contentType res accept -> Count -> BitMEXRequest TradeGetBucketed contentType res accept Source # | |
HasOptionalParam TradeGetBucketed Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGetBucketed contentType res accept -> Columns -> BitMEXRequest TradeGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest TradeGetBucketed contentType res accept -> Columns -> BitMEXRequest TradeGetBucketed contentType res accept Source # | |
HasOptionalParam TradeGetBucketed BinSize Source # | Optional Param "binSize" - Time interval to bucket by. Available options: [1m,5m,1h,1d]. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGetBucketed contentType res accept -> BinSize -> BitMEXRequest TradeGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest TradeGetBucketed contentType res accept -> BinSize -> BitMEXRequest TradeGetBucketed contentType res accept Source # |
User
userCancelWithdrawal
:: Consumes UserCancelWithdrawal contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> Token | "token" |
-> BitMEXRequest UserCancelWithdrawal contentType Transaction accept |
POST /user/cancelWithdrawal
Cancel a withdrawal.
data UserCancelWithdrawal Source #
Instances
Produces UserCancelWithdrawal MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces UserCancelWithdrawal MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces UserCancelWithdrawal MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces UserCancelWithdrawal MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces UserCancelWithdrawal MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes UserCancelWithdrawal MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes UserCancelWithdrawal MimeJSON Source # | application/json |
Defined in BitMEX.API |
userCheckReferralCode
userCheckReferralCode Source #
:: Accept accept | request accept ( |
-> BitMEXRequest UserCheckReferralCode MimeNoContent Double accept |
GET /user/checkReferralCode
Check if a referral code is valid.
If the code is valid, responds with the referral code's discount (e.g. `0.1` for 10%). Otherwise, will return a 404.
data UserCheckReferralCode Source #
Instances
userConfirm
:: Consumes UserConfirm contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> Token | "token" |
-> BitMEXRequest UserConfirm contentType AccessToken accept |
POST /user/confirmEmail
Confirm your email address with a token.
data UserConfirm Source #
Instances
Produces UserConfirm MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces UserConfirm MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces UserConfirm MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces UserConfirm MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces UserConfirm MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes UserConfirm MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes UserConfirm MimeJSON Source # | application/json |
Defined in BitMEX.API |
userConfirmEnableTFA
:: Consumes UserConfirmEnableTFA contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> Token | "token" - Token from your selected TFA type. |
-> BitMEXRequest UserConfirmEnableTFA contentType Bool accept |
POST /user/confirmEnableTFA
Confirm two-factor auth for this account. If using a Yubikey, simply send a token to this endpoint.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data UserConfirmEnableTFA Source #
Instances
userConfirmWithdrawal
userConfirmWithdrawal Source #
:: Consumes UserConfirmWithdrawal contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> Token | "token" |
-> BitMEXRequest UserConfirmWithdrawal contentType Transaction accept |
POST /user/confirmWithdrawal
Confirm a withdrawal.
data UserConfirmWithdrawal Source #
Instances
Produces UserConfirmWithdrawal MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces UserConfirmWithdrawal MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces UserConfirmWithdrawal MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces UserConfirmWithdrawal MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces UserConfirmWithdrawal MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes UserConfirmWithdrawal MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes UserConfirmWithdrawal MimeJSON Source # | application/json |
Defined in BitMEX.API |
userDisableTFA
:: Consumes UserDisableTFA contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> Token | "token" - Token from your selected TFA type. |
-> BitMEXRequest UserDisableTFA contentType Bool accept |
POST /user/disableTFA
Disable two-factor auth for this account.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data UserDisableTFA Source #
Instances
userGet
:: Accept accept | request accept ( |
-> BitMEXRequest UserGet MimeNoContent User accept |
GET /user
Get your user model.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
Instances
Produces UserGet MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces UserGet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces UserGet MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces UserGet MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces UserGet MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes UserGet MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes UserGet MimeJSON Source # | application/json |
Defined in BitMEX.API |
userGetAffiliateStatus
userGetAffiliateStatus Source #
:: Accept accept | request accept ( |
-> BitMEXRequest UserGetAffiliateStatus MimeNoContent Affiliate accept |
GET /user/affiliateStatus
Get your current affiliate/referral status.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data UserGetAffiliateStatus Source #
Instances
Produces UserGetAffiliateStatus MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces UserGetAffiliateStatus MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces UserGetAffiliateStatus MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces UserGetAffiliateStatus MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces UserGetAffiliateStatus MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes UserGetAffiliateStatus MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes UserGetAffiliateStatus MimeJSON Source # | application/json |
Defined in BitMEX.API |
userGetCommission
:: Accept accept | request accept ( |
-> BitMEXRequest UserGetCommission MimeNoContent [UserCommission] accept |
GET /user/commission
Get your account's commission status.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data UserGetCommission Source #
Instances
Produces UserGetCommission MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces UserGetCommission MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces UserGetCommission MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces UserGetCommission MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces UserGetCommission MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes UserGetCommission MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes UserGetCommission MimeJSON Source # | application/json |
Defined in BitMEX.API |
userGetDepositAddress
userGetDepositAddress Source #
:: Accept accept | request accept ( |
-> BitMEXRequest UserGetDepositAddress MimeNoContent Text accept |
GET /user/depositAddress
Get a deposit address.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data UserGetDepositAddress Source #
Instances
userGetMargin
:: Accept accept | request accept ( |
-> BitMEXRequest UserGetMargin MimeNoContent Margin accept |
GET /user/margin
Get your account's margin status. Send a currency of "all" to receive an array of all supported currencies.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data UserGetMargin Source #
Instances
Produces UserGetMargin MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces UserGetMargin MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces UserGetMargin MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces UserGetMargin MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces UserGetMargin MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes UserGetMargin MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes UserGetMargin MimeJSON Source # | application/json |
Defined in BitMEX.API | |
HasOptionalParam UserGetMargin Currency Source # | |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest UserGetMargin contentType res accept -> Currency -> BitMEXRequest UserGetMargin contentType res accept Source # (-&-) :: BitMEXRequest UserGetMargin contentType res accept -> Currency -> BitMEXRequest UserGetMargin contentType res accept Source # |
userGetWallet
:: Accept accept | request accept ( |
-> BitMEXRequest UserGetWallet MimeNoContent Wallet accept |
GET /user/wallet
Get your current wallet information.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data UserGetWallet Source #
Instances
Produces UserGetWallet MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces UserGetWallet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces UserGetWallet MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces UserGetWallet MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces UserGetWallet MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes UserGetWallet MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes UserGetWallet MimeJSON Source # | application/json |
Defined in BitMEX.API | |
HasOptionalParam UserGetWallet Currency Source # | |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest UserGetWallet contentType res accept -> Currency -> BitMEXRequest UserGetWallet contentType res accept Source # (-&-) :: BitMEXRequest UserGetWallet contentType res accept -> Currency -> BitMEXRequest UserGetWallet contentType res accept Source # |
userGetWalletHistory
:: Accept accept | request accept ( |
-> BitMEXRequest UserGetWalletHistory MimeNoContent [Transaction] accept |
GET /user/walletHistory
Get a history of all of your wallet transactions (deposits, withdrawals, PNL).
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data UserGetWalletHistory Source #
Instances
userGetWalletSummary
:: Accept accept | request accept ( |
-> BitMEXRequest UserGetWalletSummary MimeNoContent [Transaction] accept |
GET /user/walletSummary
Get a summary of all of your wallet transactions (deposits, withdrawals, PNL).
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data UserGetWalletSummary Source #
Instances
userLogout
:: Accept accept | request accept ( |
-> BitMEXRequest UserLogout MimeNoContent res accept |
data UserLogout Source #
Instances
Produces UserLogout MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces UserLogout MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces UserLogout MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces UserLogout MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces UserLogout MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes UserLogout MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes UserLogout MimeJSON Source # | application/json |
Defined in BitMEX.API |
userLogoutAll
:: Accept accept | request accept ( |
-> BitMEXRequest UserLogoutAll MimeNoContent Double accept |
POST /user/logoutAll
Log all systems out of BitMEX. This will revoke all of your account's access tokens, logging you out on all devices.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data UserLogoutAll Source #
Instances
Produces UserLogoutAll MimeXML Source # | application/xml |
Defined in BitMEX.API | |
Produces UserLogoutAll MimeJSON Source # | application/json |
Defined in BitMEX.API | |
Produces UserLogoutAll MimeTextxml Source # | text/xml |
Defined in BitMEX.API | |
Produces UserLogoutAll MimeTextjavascript Source # | text/javascript |
Defined in BitMEX.API | |
Produces UserLogoutAll MimeJavascript Source # | application/javascript |
Defined in BitMEX.API | |
Consumes UserLogoutAll MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in BitMEX.API | |
Consumes UserLogoutAll MimeJSON Source # | application/json |
Defined in BitMEX.API |
userMinWithdrawalFee
:: Accept accept | request accept ( |
-> BitMEXRequest UserMinWithdrawalFee MimeNoContent Value accept |
GET /user/minWithdrawalFee
Get the minimum withdrawal fee for a currency.
This is changed based on network conditions to ensure timely withdrawals. During network congestion, this may be high. The fee is returned in the same currency.
data UserMinWithdrawalFee Source #
Instances
userRequestEnableTFA
:: Consumes UserRequestEnableTFA contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> BitMEXRequest UserRequestEnableTFA contentType Bool accept |
POST /user/requestEnableTFA
Get secret key for setting up two-factor auth.
Use /confirmEnableTFA directly for Yubikeys. This fails if TFA is already enabled.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data UserRequestEnableTFA Source #
Instances
userRequestWithdrawal
userRequestWithdrawal Source #
:: Consumes UserRequestWithdrawal contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> Currency | "currency" - Currency you're withdrawing. Options: |
-> Amount | "amount" - Amount of withdrawal currency. |
-> Address | "address" - Destination Address. |
-> BitMEXRequest UserRequestWithdrawal contentType Transaction accept |
POST /user/requestWithdrawal
Request a withdrawal to an external wallet.
This will send a confirmation email to the email address on record, unless requested via an API Key with the withdraw
permission.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data UserRequestWithdrawal Source #
Instances
userSavePreferences
:: Consumes UserSavePreferences contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> Prefs | "prefs" |
-> BitMEXRequest UserSavePreferences contentType User accept |
POST /user/preferences
Save user preferences.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data UserSavePreferences Source #
Instances
userUpdate
:: Consumes UserUpdate contentType | |
=> ContentType contentType | request content-type ( |
-> Accept accept | request accept ( |
-> BitMEXRequest UserUpdate contentType User accept |
PUT /user
Update your password, name, and other attributes.
AuthMethod: AuthApiKeyApiKey
, AuthApiKeyApiNonce
, AuthApiKeyApiSignature
data UserUpdate Source #
Instances
Parameter newtypes
Instances
Eq Account Source # | |
Show Account Source # | |
HasOptionalParam InstrumentGetCompositeIndex Account Source # | |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InstrumentGetCompositeIndex contentType res accept -> Account -> BitMEXRequest InstrumentGetCompositeIndex contentType res accept Source # (-&-) :: BitMEXRequest InstrumentGetCompositeIndex contentType res accept -> Account -> BitMEXRequest InstrumentGetCompositeIndex contentType res accept Source # |
Instances
Eq BinSize Source # | |
Show BinSize Source # | |
HasOptionalParam TradeGetBucketed BinSize Source # | Optional Param "binSize" - Time interval to bucket by. Available options: [1m,5m,1h,1d]. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGetBucketed contentType res accept -> BinSize -> BitMEXRequest TradeGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest TradeGetBucketed contentType res accept -> BinSize -> BitMEXRequest TradeGetBucketed contentType res accept Source # | |
HasOptionalParam QuoteGetBucketed BinSize Source # | Optional Param "binSize" - Time interval to bucket by. Available options: [1m,5m,1h,1d]. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGetBucketed contentType res accept -> BinSize -> BitMEXRequest QuoteGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest QuoteGetBucketed contentType res accept -> BinSize -> BitMEXRequest QuoteGetBucketed contentType res accept Source # |
Instances
Eq ChannelId Source # | |
Show ChannelId Source # | |
HasOptionalParam ChatNew ChannelId Source # | Optional Param "channelID" - Channel to post to. Default 1 (English). |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest ChatNew contentType res accept -> ChannelId -> BitMEXRequest ChatNew contentType res accept Source # (-&-) :: BitMEXRequest ChatNew contentType res accept -> ChannelId -> BitMEXRequest ChatNew contentType res accept Source # | |
HasOptionalParam ChatGet ChannelId Source # | Optional Param "channelID" - Channel id. GET chatchannels for ids. Leave blank for all. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest ChatGet contentType res accept -> ChannelId -> BitMEXRequest ChatGet contentType res accept Source # (-&-) :: BitMEXRequest ChatGet contentType res accept -> ChannelId -> BitMEXRequest ChatGet contentType res accept Source # |
Instances
Eq Cidr Source # | |
Show Cidr Source # | |
HasOptionalParam APIKeyNew Cidr Source # | Optional Param "cidr" - CIDR block to restrict this key to. To restrict to a single address, append "32", e.g. 207.39.29.2232. Leave blank or set to 0.0.0.00 to allow all IPs. Only one block may be set. <a href="http:software77.netcidr-101.html">More on CIDR blocks/a |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest APIKeyNew contentType res accept -> Cidr -> BitMEXRequest APIKeyNew contentType res accept Source # (-&-) :: BitMEXRequest APIKeyNew contentType res accept -> Cidr -> BitMEXRequest APIKeyNew contentType res accept Source # |
Instances
Eq ClOrdId Source # | |
Show ClOrdId Source # | |
HasOptionalParam OrderNew ClOrdId Source # | Optional Param "clOrdID" - Optional Client Order ID. This clOrdID will come back on the order and any related executions. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> ClOrdId -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> ClOrdId -> BitMEXRequest OrderNew contentType res accept Source # | |
HasOptionalParam OrderCancel ClOrdId Source # | Optional Param "clOrdID" - Client Order ID(s). See POST /order. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderCancel contentType res accept -> ClOrdId -> BitMEXRequest OrderCancel contentType res accept Source # (-&-) :: BitMEXRequest OrderCancel contentType res accept -> ClOrdId -> BitMEXRequest OrderCancel contentType res accept Source # | |
HasOptionalParam OrderAmend ClOrdId Source # | Optional Param "clOrdID" - Optional new Client Order ID, requires |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderAmend contentType res accept -> ClOrdId -> BitMEXRequest OrderAmend contentType res accept Source # (-&-) :: BitMEXRequest OrderAmend contentType res accept -> ClOrdId -> BitMEXRequest OrderAmend contentType res accept Source # |
newtype ClOrdLinkId Source #
Instances
Eq ClOrdLinkId Source # | |
Defined in BitMEX.API (==) :: ClOrdLinkId -> ClOrdLinkId -> Bool # (/=) :: ClOrdLinkId -> ClOrdLinkId -> Bool # | |
Show ClOrdLinkId Source # | |
Defined in BitMEX.API showsPrec :: Int -> ClOrdLinkId -> ShowS # show :: ClOrdLinkId -> String # showList :: [ClOrdLinkId] -> ShowS # | |
HasOptionalParam OrderNew ClOrdLinkId Source # | Optional Param "clOrdLinkID" - Optional Client Order Link ID for contingent orders. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> ClOrdLinkId -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> ClOrdLinkId -> BitMEXRequest OrderNew contentType res accept Source # |
Instances
Eq Columns Source # | |
Show Columns Source # | |
HasOptionalParam TradeGetBucketed Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGetBucketed contentType res accept -> Columns -> BitMEXRequest TradeGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest TradeGetBucketed contentType res accept -> Columns -> BitMEXRequest TradeGetBucketed contentType res accept Source # | |
HasOptionalParam TradeGet Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGet contentType res accept -> Columns -> BitMEXRequest TradeGet contentType res accept Source # (-&-) :: BitMEXRequest TradeGet contentType res accept -> Columns -> BitMEXRequest TradeGet contentType res accept Source # | |
HasOptionalParam SettlementGet Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest SettlementGet contentType res accept -> Columns -> BitMEXRequest SettlementGet contentType res accept Source # (-&-) :: BitMEXRequest SettlementGet contentType res accept -> Columns -> BitMEXRequest SettlementGet contentType res accept Source # | |
HasOptionalParam QuoteGetBucketed Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGetBucketed contentType res accept -> Columns -> BitMEXRequest QuoteGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest QuoteGetBucketed contentType res accept -> Columns -> BitMEXRequest QuoteGetBucketed contentType res accept Source # | |
HasOptionalParam QuoteGet Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGet contentType res accept -> Columns -> BitMEXRequest QuoteGet contentType res accept Source # (-&-) :: BitMEXRequest QuoteGet contentType res accept -> Columns -> BitMEXRequest QuoteGet contentType res accept Source # | |
HasOptionalParam PositionGet Columns Source # | Optional Param "columns" - Which columns to fetch. For example, send ["columnName"]. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest PositionGet contentType res accept -> Columns -> BitMEXRequest PositionGet contentType res accept Source # (-&-) :: BitMEXRequest PositionGet contentType res accept -> Columns -> BitMEXRequest PositionGet contentType res accept Source # | |
HasOptionalParam OrderGetOrders Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderGetOrders contentType res accept -> Columns -> BitMEXRequest OrderGetOrders contentType res accept Source # (-&-) :: BitMEXRequest OrderGetOrders contentType res accept -> Columns -> BitMEXRequest OrderGetOrders contentType res accept Source # | |
HasOptionalParam LiquidationGet Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest LiquidationGet contentType res accept -> Columns -> BitMEXRequest LiquidationGet contentType res accept Source # (-&-) :: BitMEXRequest LiquidationGet contentType res accept -> Columns -> BitMEXRequest LiquidationGet contentType res accept Source # | |
HasOptionalParam InsuranceGet Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InsuranceGet contentType res accept -> Columns -> BitMEXRequest InsuranceGet contentType res accept Source # (-&-) :: BitMEXRequest InsuranceGet contentType res accept -> Columns -> BitMEXRequest InsuranceGet contentType res accept Source # | |
HasOptionalParam InstrumentGetCompositeIndex Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InstrumentGetCompositeIndex contentType res accept -> Columns -> BitMEXRequest InstrumentGetCompositeIndex contentType res accept Source # (-&-) :: BitMEXRequest InstrumentGetCompositeIndex contentType res accept -> Columns -> BitMEXRequest InstrumentGetCompositeIndex contentType res accept Source # | |
HasOptionalParam InstrumentGet Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InstrumentGet contentType res accept -> Columns -> BitMEXRequest InstrumentGet contentType res accept Source # (-&-) :: BitMEXRequest InstrumentGet contentType res accept -> Columns -> BitMEXRequest InstrumentGet contentType res accept Source # | |
HasOptionalParam FundingGet Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest FundingGet contentType res accept -> Columns -> BitMEXRequest FundingGet contentType res accept Source # (-&-) :: BitMEXRequest FundingGet contentType res accept -> Columns -> BitMEXRequest FundingGet contentType res accept Source # | |
HasOptionalParam ExecutionGetTradeHistory Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest ExecutionGetTradeHistory contentType res accept -> Columns -> BitMEXRequest ExecutionGetTradeHistory contentType res accept Source # (-&-) :: BitMEXRequest ExecutionGetTradeHistory contentType res accept -> Columns -> BitMEXRequest ExecutionGetTradeHistory contentType res accept Source # | |
HasOptionalParam ExecutionGet Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest ExecutionGet contentType res accept -> Columns -> BitMEXRequest ExecutionGet contentType res accept Source # (-&-) :: BitMEXRequest ExecutionGet contentType res accept -> Columns -> BitMEXRequest ExecutionGet contentType res accept Source # | |
HasOptionalParam AnnouncementGet Columns Source # | Optional Param "columns" - Array of column names to fetch. If omitted, will return all columns. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest AnnouncementGet contentType res accept -> Columns -> BitMEXRequest AnnouncementGet contentType res accept Source # (-&-) :: BitMEXRequest AnnouncementGet contentType res accept -> Columns -> BitMEXRequest AnnouncementGet contentType res accept Source # |
newtype ContingencyType Source #
Instances
Eq ContingencyType Source # | |
Defined in BitMEX.API (==) :: ContingencyType -> ContingencyType -> Bool # (/=) :: ContingencyType -> ContingencyType -> Bool # | |
Show ContingencyType Source # | |
Defined in BitMEX.API showsPrec :: Int -> ContingencyType -> ShowS # show :: ContingencyType -> String # showList :: [ContingencyType] -> ShowS # | |
HasOptionalParam OrderNew ContingencyType Source # | Optional Param "contingencyType" - Optional contingency type for use with |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> ContingencyType -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> ContingencyType -> BitMEXRequest OrderNew contentType res accept Source # |
Instances
Instances
Eq Country Source # | |
Show Country Source # | |
HasOptionalParam UserUpdate Country Source # | Optional Param "country" - Country of residence. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest UserUpdate contentType res accept -> Country -> BitMEXRequest UserUpdate contentType res accept Source # (-&-) :: BitMEXRequest UserUpdate contentType res accept -> Country -> BitMEXRequest UserUpdate contentType res accept Source # |
Instances
Instances
Eq Depth Source # | |
Show Depth Source # | |
HasOptionalParam OrderBookGetL2 Depth Source # | Optional Param "depth" - Orderbook depth per side. Send 0 for full depth. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderBookGetL2 contentType res accept -> Depth -> BitMEXRequest OrderBookGetL2 contentType res accept Source # (-&-) :: BitMEXRequest OrderBookGetL2 contentType res accept -> Depth -> BitMEXRequest OrderBookGetL2 contentType res accept Source # | |
HasOptionalParam OrderBookGet Depth Source # | Optional Param "depth" - Orderbook depth. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderBookGet contentType res accept -> Depth -> BitMEXRequest OrderBookGet contentType res accept Source # (-&-) :: BitMEXRequest OrderBookGet contentType res accept -> Depth -> BitMEXRequest OrderBookGet contentType res accept Source # |
newtype DisplayQty Source #
Instances
Eq DisplayQty Source # | |
Defined in BitMEX.API (==) :: DisplayQty -> DisplayQty -> Bool # (/=) :: DisplayQty -> DisplayQty -> Bool # | |
Show DisplayQty Source # | |
Defined in BitMEX.API showsPrec :: Int -> DisplayQty -> ShowS # show :: DisplayQty -> String # showList :: [DisplayQty] -> ShowS # | |
HasOptionalParam OrderNew DisplayQty Source # | Optional Param "displayQty" - Optional quantity to display in the book. Use 0 for a fully hidden order. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> DisplayQty -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> DisplayQty -> BitMEXRequest OrderNew contentType res accept Source # |
Instances
Eq Enabled Source # | |
Show Enabled Source # | |
HasOptionalParam PositionIsolateMargin Enabled Source # | Optional Param "enabled" - True for isolated margin, false for cross margin. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest PositionIsolateMargin contentType res accept -> Enabled -> BitMEXRequest PositionIsolateMargin contentType res accept Source # (-&-) :: BitMEXRequest PositionIsolateMargin contentType res accept -> Enabled -> BitMEXRequest PositionIsolateMargin contentType res accept Source # | |
HasOptionalParam APIKeyNew Enabled Source # | Optional Param "enabled" - Set to true to enable this key on creation. Otherwise, it must be explicitly enabled via apiKeyenable. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest APIKeyNew contentType res accept -> Enabled -> BitMEXRequest APIKeyNew contentType res accept Source # (-&-) :: BitMEXRequest APIKeyNew contentType res accept -> Enabled -> BitMEXRequest APIKeyNew contentType res accept Source # |
Instances
Instances
Eq ExecInst Source # | |
Show ExecInst Source # | |
HasOptionalParam OrderNew ExecInst Source # | Optional Param "execInst" - Optional execution instructions. Valid options: ParticipateDoNotInitiate, AllOrNone, MarkPrice, IndexPrice, LastPrice, Close, ReduceOnly, Fixed. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> ExecInst -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> ExecInst -> BitMEXRequest OrderNew contentType res accept Source # |
Instances
Eq Fee Source # | |
Show Fee Source # | |
HasOptionalParam UserRequestWithdrawal Fee Source # | Optional Param "fee" - Network fee for Bitcoin withdrawals. If not specified, a default value will be calculated based on Bitcoin network conditions. You will have a chance to confirm this via email. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest UserRequestWithdrawal contentType res accept -> Fee -> BitMEXRequest UserRequestWithdrawal contentType res accept Source # (-&-) :: BitMEXRequest UserRequestWithdrawal contentType res accept -> Fee -> BitMEXRequest UserRequestWithdrawal contentType res accept Source # |
Instances
Eq Filter Source # | |
Show Filter Source # | |
HasOptionalParam TradeGetBucketed Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGetBucketed contentType res accept -> Filter -> BitMEXRequest TradeGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest TradeGetBucketed contentType res accept -> Filter -> BitMEXRequest TradeGetBucketed contentType res accept Source # | |
HasOptionalParam TradeGet Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGet contentType res accept -> Filter -> BitMEXRequest TradeGet contentType res accept Source # (-&-) :: BitMEXRequest TradeGet contentType res accept -> Filter -> BitMEXRequest TradeGet contentType res accept Source # | |
HasOptionalParam SettlementGet Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest SettlementGet contentType res accept -> Filter -> BitMEXRequest SettlementGet contentType res accept Source # (-&-) :: BitMEXRequest SettlementGet contentType res accept -> Filter -> BitMEXRequest SettlementGet contentType res accept Source # | |
HasOptionalParam QuoteGetBucketed Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGetBucketed contentType res accept -> Filter -> BitMEXRequest QuoteGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest QuoteGetBucketed contentType res accept -> Filter -> BitMEXRequest QuoteGetBucketed contentType res accept Source # | |
HasOptionalParam QuoteGet Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGet contentType res accept -> Filter -> BitMEXRequest QuoteGet contentType res accept Source # (-&-) :: BitMEXRequest QuoteGet contentType res accept -> Filter -> BitMEXRequest QuoteGet contentType res accept Source # | |
HasOptionalParam PositionGet Filter Source # | Optional Param "filter" - Table filter. For example, send {"symbol": "XBTUSD"}. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest PositionGet contentType res accept -> Filter -> BitMEXRequest PositionGet contentType res accept Source # (-&-) :: BitMEXRequest PositionGet contentType res accept -> Filter -> BitMEXRequest PositionGet contentType res accept Source # | |
HasOptionalParam OrderGetOrders Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderGetOrders contentType res accept -> Filter -> BitMEXRequest OrderGetOrders contentType res accept Source # (-&-) :: BitMEXRequest OrderGetOrders contentType res accept -> Filter -> BitMEXRequest OrderGetOrders contentType res accept Source # | |
HasOptionalParam OrderCancelAll Filter Source # | Optional Param "filter" - Optional filter for cancellation. Use to only cancel some orders, e.g. `{"side": "Buy"}`. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderCancelAll contentType res accept -> Filter -> BitMEXRequest OrderCancelAll contentType res accept Source # (-&-) :: BitMEXRequest OrderCancelAll contentType res accept -> Filter -> BitMEXRequest OrderCancelAll contentType res accept Source # | |
HasOptionalParam LiquidationGet Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest LiquidationGet contentType res accept -> Filter -> BitMEXRequest LiquidationGet contentType res accept Source # (-&-) :: BitMEXRequest LiquidationGet contentType res accept -> Filter -> BitMEXRequest LiquidationGet contentType res accept Source # | |
HasOptionalParam InsuranceGet Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InsuranceGet contentType res accept -> Filter -> BitMEXRequest InsuranceGet contentType res accept Source # (-&-) :: BitMEXRequest InsuranceGet contentType res accept -> Filter -> BitMEXRequest InsuranceGet contentType res accept Source # | |
HasOptionalParam InstrumentGetCompositeIndex Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InstrumentGetCompositeIndex contentType res accept -> Filter -> BitMEXRequest InstrumentGetCompositeIndex contentType res accept Source # (-&-) :: BitMEXRequest InstrumentGetCompositeIndex contentType res accept -> Filter -> BitMEXRequest InstrumentGetCompositeIndex contentType res accept Source # | |
HasOptionalParam InstrumentGet Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InstrumentGet contentType res accept -> Filter -> BitMEXRequest InstrumentGet contentType res accept Source # (-&-) :: BitMEXRequest InstrumentGet contentType res accept -> Filter -> BitMEXRequest InstrumentGet contentType res accept Source # | |
HasOptionalParam FundingGet Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest FundingGet contentType res accept -> Filter -> BitMEXRequest FundingGet contentType res accept Source # (-&-) :: BitMEXRequest FundingGet contentType res accept -> Filter -> BitMEXRequest FundingGet contentType res accept Source # | |
HasOptionalParam ExecutionGetTradeHistory Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest ExecutionGetTradeHistory contentType res accept -> Filter -> BitMEXRequest ExecutionGetTradeHistory contentType res accept Source # (-&-) :: BitMEXRequest ExecutionGetTradeHistory contentType res accept -> Filter -> BitMEXRequest ExecutionGetTradeHistory contentType res accept Source # | |
HasOptionalParam ExecutionGet Filter Source # | Optional Param "filter" - Generic table filter. Send JSON keyvalue pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https:www.bitmex.comapp/restAPI#timestamp-filters) for more details. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest ExecutionGet contentType res accept -> Filter -> BitMEXRequest ExecutionGet contentType res accept Source # (-&-) :: BitMEXRequest ExecutionGet contentType res accept -> Filter -> BitMEXRequest ExecutionGet contentType res accept Source # |
Instances
Eq Firstname Source # | |
Show Firstname Source # | |
HasOptionalParam UserUpdate Firstname Source # | |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest UserUpdate contentType res accept -> Firstname -> BitMEXRequest UserUpdate contentType res accept Source # (-&-) :: BitMEXRequest UserUpdate contentType res accept -> Firstname -> BitMEXRequest UserUpdate contentType res accept Source # |
Instances
Eq Lastname Source # | |
Show Lastname Source # | |
HasOptionalParam UserUpdate Lastname Source # | |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest UserUpdate contentType res accept -> Lastname -> BitMEXRequest UserUpdate contentType res accept Source # (-&-) :: BitMEXRequest UserUpdate contentType res accept -> Lastname -> BitMEXRequest UserUpdate contentType res accept Source # |
Instances
Eq LeavesQty Source # | |
Show LeavesQty Source # | |
HasOptionalParam OrderAmend LeavesQty Source # | Optional Param "leavesQty" - Optional leaves quantity in units of the instrument (i.e. contracts). Useful for amending partially filled orders. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderAmend contentType res accept -> LeavesQty -> BitMEXRequest OrderAmend contentType res accept Source # (-&-) :: BitMEXRequest OrderAmend contentType res accept -> LeavesQty -> BitMEXRequest OrderAmend contentType res accept Source # |
Instances
Eq Method Source # | |
Show Method Source # | |
HasOptionalParam LeaderboardGet Method Source # | Optional Param "method" - Ranking type. Options: "notional", "ROE" |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest LeaderboardGet contentType res accept -> Method -> BitMEXRequest LeaderboardGet contentType res accept Source # (-&-) :: BitMEXRequest LeaderboardGet contentType res accept -> Method -> BitMEXRequest LeaderboardGet contentType res accept Source # |
Instances
Eq Model Source # | |
Show Model Source # | |
HasOptionalParam SchemaGet Model Source # | Optional Param "model" - Optional model filter. If omitted, will return all models. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest SchemaGet contentType res accept -> Model -> BitMEXRequest SchemaGet contentType res accept Source # (-&-) :: BitMEXRequest SchemaGet contentType res accept -> Model -> BitMEXRequest SchemaGet contentType res accept Source # |
Instances
Eq Name Source # | |
Show Name Source # | |
HasOptionalParam APIKeyNew Name Source # | Optional Param "name" - Key name. This name is for reference only. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest APIKeyNew contentType res accept -> Name -> BitMEXRequest APIKeyNew contentType res accept Source # (-&-) :: BitMEXRequest APIKeyNew contentType res accept -> Name -> BitMEXRequest APIKeyNew contentType res accept Source # |
newtype NewPassword Source #
Instances
Eq NewPassword Source # | |
Defined in BitMEX.API (==) :: NewPassword -> NewPassword -> Bool # (/=) :: NewPassword -> NewPassword -> Bool # | |
Show NewPassword Source # | |
Defined in BitMEX.API showsPrec :: Int -> NewPassword -> ShowS # show :: NewPassword -> String # showList :: [NewPassword] -> ShowS # | |
HasOptionalParam UserUpdate NewPassword Source # | |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest UserUpdate contentType res accept -> NewPassword -> BitMEXRequest UserUpdate contentType res accept Source # (-&-) :: BitMEXRequest UserUpdate contentType res accept -> NewPassword -> BitMEXRequest UserUpdate contentType res accept Source # |
newtype NewPasswordConfirm Source #
Instances
Eq NewPasswordConfirm Source # | |
Defined in BitMEX.API (==) :: NewPasswordConfirm -> NewPasswordConfirm -> Bool # (/=) :: NewPasswordConfirm -> NewPasswordConfirm -> Bool # | |
Show NewPasswordConfirm Source # | |
Defined in BitMEX.API showsPrec :: Int -> NewPasswordConfirm -> ShowS # show :: NewPasswordConfirm -> String # showList :: [NewPasswordConfirm] -> ShowS # | |
HasOptionalParam UserUpdate NewPasswordConfirm Source # | |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest UserUpdate contentType res accept -> NewPasswordConfirm -> BitMEXRequest UserUpdate contentType res accept Source # (-&-) :: BitMEXRequest UserUpdate contentType res accept -> NewPasswordConfirm -> BitMEXRequest UserUpdate contentType res accept Source # |
newtype OldPassword Source #
Instances
Eq OldPassword Source # | |
Defined in BitMEX.API (==) :: OldPassword -> OldPassword -> Bool # (/=) :: OldPassword -> OldPassword -> Bool # | |
Show OldPassword Source # | |
Defined in BitMEX.API showsPrec :: Int -> OldPassword -> ShowS # show :: OldPassword -> String # showList :: [OldPassword] -> ShowS # | |
HasOptionalParam UserUpdate OldPassword Source # | |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest UserUpdate contentType res accept -> OldPassword -> BitMEXRequest UserUpdate contentType res accept Source # (-&-) :: BitMEXRequest UserUpdate contentType res accept -> OldPassword -> BitMEXRequest UserUpdate contentType res accept Source # |
Instances
Eq OrdType Source # | |
Show OrdType Source # | |
HasOptionalParam OrderNew OrdType Source # | Optional Param "ordType" - Order type. Valid options: Market, Limit, Stop, StopLimit, MarketIfTouched, LimitIfTouched, MarketWithLeftOverAsLimit, Pegged. Defaults to |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> OrdType -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> OrdType -> BitMEXRequest OrderNew contentType res accept Source # |
Instances
Eq OrderId Source # | |
Show OrderId Source # | |
HasOptionalParam OrderCancel OrderId Source # | Optional Param "orderID" - Order ID(s). |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderCancel contentType res accept -> OrderId -> BitMEXRequest OrderCancel contentType res accept Source # (-&-) :: BitMEXRequest OrderCancel contentType res accept -> OrderId -> BitMEXRequest OrderCancel contentType res accept Source # | |
HasOptionalParam OrderAmend OrderId Source # | Optional Param "orderID" - Order ID |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderAmend contentType res accept -> OrderId -> BitMEXRequest OrderAmend contentType res accept Source # (-&-) :: BitMEXRequest OrderAmend contentType res accept -> OrderId -> BitMEXRequest OrderAmend contentType res accept Source # |
Instances
Eq OrderQty Source # | |
Show OrderQty Source # | |
HasOptionalParam OrderNew OrderQty Source # | Optional Param "orderQty" - Order quantity in units of the instrument (i.e. contracts). |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> OrderQty -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> OrderQty -> BitMEXRequest OrderNew contentType res accept Source # | |
HasOptionalParam OrderAmend OrderQty Source # | Optional Param "orderQty" - Optional order quantity in units of the instrument (i.e. contracts). |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderAmend contentType res accept -> OrderQty -> BitMEXRequest OrderAmend contentType res accept Source # (-&-) :: BitMEXRequest OrderAmend contentType res accept -> OrderQty -> BitMEXRequest OrderAmend contentType res accept Source # |
Instances
Eq Orders Source # | |
Show Orders Source # | |
HasOptionalParam OrderNewBulk Orders Source # | Optional Param "orders" - An array of orders. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNewBulk contentType res accept -> Orders -> BitMEXRequest OrderNewBulk contentType res accept Source # (-&-) :: BitMEXRequest OrderNewBulk contentType res accept -> Orders -> BitMEXRequest OrderNewBulk contentType res accept Source # | |
HasOptionalParam OrderAmendBulk Orders Source # | Optional Param "orders" - An array of orders. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderAmendBulk contentType res accept -> Orders -> BitMEXRequest OrderAmendBulk contentType res accept Source # (-&-) :: BitMEXRequest OrderAmendBulk contentType res accept -> Orders -> BitMEXRequest OrderAmendBulk contentType res accept Source # |
newtype OrigClOrdId Source #
Instances
Eq OrigClOrdId Source # | |
Defined in BitMEX.API (==) :: OrigClOrdId -> OrigClOrdId -> Bool # (/=) :: OrigClOrdId -> OrigClOrdId -> Bool # | |
Show OrigClOrdId Source # | |
Defined in BitMEX.API showsPrec :: Int -> OrigClOrdId -> ShowS # show :: OrigClOrdId -> String # showList :: [OrigClOrdId] -> ShowS # | |
HasOptionalParam OrderAmend OrigClOrdId Source # | Optional Param "origClOrdID" - Client Order ID. See POST /order. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderAmend contentType res accept -> OrigClOrdId -> BitMEXRequest OrderAmend contentType res accept Source # (-&-) :: BitMEXRequest OrderAmend contentType res accept -> OrigClOrdId -> BitMEXRequest OrderAmend contentType res accept Source # |
Instances
Eq OtpToken Source # | |
Show OtpToken Source # | |
HasOptionalParam UserRequestWithdrawal OtpToken Source # | Optional Param "otpToken" - 2FA token. Required if 2FA is enabled on your account. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest UserRequestWithdrawal contentType res accept -> OtpToken -> BitMEXRequest UserRequestWithdrawal contentType res accept Source # (-&-) :: BitMEXRequest UserRequestWithdrawal contentType res accept -> OtpToken -> BitMEXRequest UserRequestWithdrawal contentType res accept Source # |
Instances
Eq Overwrite Source # | |
Show Overwrite Source # | |
HasOptionalParam UserSavePreferences Overwrite Source # | Optional Param "overwrite" - If true, will overwrite all existing preferences. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest UserSavePreferences contentType res accept -> Overwrite -> BitMEXRequest UserSavePreferences contentType res accept Source # (-&-) :: BitMEXRequest UserSavePreferences contentType res accept -> Overwrite -> BitMEXRequest UserSavePreferences contentType res accept Source # |
Instances
Eq ParamText Source # | |
Show ParamText Source # | |
HasOptionalParam OrderNew ParamText Source # | Optional Param "text" - Optional order annotation. e.g. 'Take profit'. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> ParamText -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> ParamText -> BitMEXRequest OrderNew contentType res accept Source # | |
HasOptionalParam OrderCancelAll ParamText Source # | Optional Param "text" - Optional cancellation annotation. e.g. 'Spread Exceeded' |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderCancelAll contentType res accept -> ParamText -> BitMEXRequest OrderCancelAll contentType res accept Source # (-&-) :: BitMEXRequest OrderCancelAll contentType res accept -> ParamText -> BitMEXRequest OrderCancelAll contentType res accept Source # | |
HasOptionalParam OrderCancel ParamText Source # | Optional Param "text" - Optional cancellation annotation. e.g. 'Spread Exceeded'. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderCancel contentType res accept -> ParamText -> BitMEXRequest OrderCancel contentType res accept Source # (-&-) :: BitMEXRequest OrderCancel contentType res accept -> ParamText -> BitMEXRequest OrderCancel contentType res accept Source # | |
HasOptionalParam OrderAmend ParamText Source # | Optional Param "text" - Optional amend annotation. e.g. 'Adjust skew'. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderAmend contentType res accept -> ParamText -> BitMEXRequest OrderAmend contentType res accept Source # (-&-) :: BitMEXRequest OrderAmend contentType res accept -> ParamText -> BitMEXRequest OrderAmend contentType res accept Source # |
Instances
Instances
Eq Partial Source # | |
Show Partial Source # | |
HasOptionalParam TradeGetBucketed Partial Source # | Optional Param "partial" - If true, will send in-progress (incomplete) bins for the current time period. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGetBucketed contentType res accept -> Partial -> BitMEXRequest TradeGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest TradeGetBucketed contentType res accept -> Partial -> BitMEXRequest TradeGetBucketed contentType res accept Source # | |
HasOptionalParam QuoteGetBucketed Partial Source # | Optional Param "partial" - If true, will send in-progress (incomplete) bins for the current time period. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGetBucketed contentType res accept -> Partial -> BitMEXRequest QuoteGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest QuoteGetBucketed contentType res accept -> Partial -> BitMEXRequest QuoteGetBucketed contentType res accept Source # |
newtype PegOffsetValue Source #
Instances
Eq PegOffsetValue Source # | |
Defined in BitMEX.API (==) :: PegOffsetValue -> PegOffsetValue -> Bool # (/=) :: PegOffsetValue -> PegOffsetValue -> Bool # | |
Show PegOffsetValue Source # | |
Defined in BitMEX.API showsPrec :: Int -> PegOffsetValue -> ShowS # show :: PegOffsetValue -> String # showList :: [PegOffsetValue] -> ShowS # | |
HasOptionalParam OrderNew PegOffsetValue Source # | Optional Param "pegOffsetValue" - Optional trailing offset from the current price for |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> PegOffsetValue -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> PegOffsetValue -> BitMEXRequest OrderNew contentType res accept Source # | |
HasOptionalParam OrderAmend PegOffsetValue Source # | Optional Param "pegOffsetValue" - Optional trailing offset from the current price for |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderAmend contentType res accept -> PegOffsetValue -> BitMEXRequest OrderAmend contentType res accept Source # (-&-) :: BitMEXRequest OrderAmend contentType res accept -> PegOffsetValue -> BitMEXRequest OrderAmend contentType res accept Source # |
newtype PegPriceType Source #
Instances
Eq PegPriceType Source # | |
Defined in BitMEX.API (==) :: PegPriceType -> PegPriceType -> Bool # (/=) :: PegPriceType -> PegPriceType -> Bool # | |
Show PegPriceType Source # | |
Defined in BitMEX.API showsPrec :: Int -> PegPriceType -> ShowS # show :: PegPriceType -> String # showList :: [PegPriceType] -> ShowS # | |
HasOptionalParam OrderNew PegPriceType Source # | Optional Param "pegPriceType" - Optional peg price type. Valid options: LastPeg, MidPricePeg, MarketPeg, PrimaryPeg, TrailingStopPeg. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> PegPriceType -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> PegPriceType -> BitMEXRequest OrderNew contentType res accept Source # |
newtype Permissions Source #
Instances
Eq Permissions Source # | |
Defined in BitMEX.API (==) :: Permissions -> Permissions -> Bool # (/=) :: Permissions -> Permissions -> Bool # | |
Show Permissions Source # | |
Defined in BitMEX.API showsPrec :: Int -> Permissions -> ShowS # show :: Permissions -> String # showList :: [Permissions] -> ShowS # | |
HasOptionalParam APIKeyNew Permissions Source # | Optional Param "permissions" - Key Permissions. All keys can read margin and position data. Additional permissions must be added. Available: ["order", "orderCancel", "withdraw"]. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest APIKeyNew contentType res accept -> Permissions -> BitMEXRequest APIKeyNew contentType res accept Source # (-&-) :: BitMEXRequest APIKeyNew contentType res accept -> Permissions -> BitMEXRequest APIKeyNew contentType res accept Source # |
Instances
Eq PgpPubKey Source # | |
Show PgpPubKey Source # | |
HasOptionalParam UserUpdate PgpPubKey Source # | Optional Param "pgpPubKey" - PGP Public Key. If specified, automated emails will be sentwith this key. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest UserUpdate contentType res accept -> PgpPubKey -> BitMEXRequest UserUpdate contentType res accept Source # (-&-) :: BitMEXRequest UserUpdate contentType res accept -> PgpPubKey -> BitMEXRequest UserUpdate contentType res accept Source # |
Instances
Eq Price Source # | |
Show Price Source # | |
HasOptionalParam OrderNew Price Source # | Optional Param "price" - Optional limit price for |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> Price -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> Price -> BitMEXRequest OrderNew contentType res accept Source # | |
HasOptionalParam OrderClosePosition Price Source # | Optional Param "price" - Optional limit price. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderClosePosition contentType res accept -> Price -> BitMEXRequest OrderClosePosition contentType res accept Source # (-&-) :: BitMEXRequest OrderClosePosition contentType res accept -> Price -> BitMEXRequest OrderClosePosition contentType res accept Source # | |
HasOptionalParam OrderAmend Price Source # | Optional Param "price" - Optional limit price for |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderAmend contentType res accept -> Price -> BitMEXRequest OrderAmend contentType res accept Source # (-&-) :: BitMEXRequest OrderAmend contentType res accept -> Price -> BitMEXRequest OrderAmend contentType res accept Source # |
Instances
Eq Quantity Source # | |
Show Quantity Source # | |
HasOptionalParam OrderNew Quantity Source # | Optional Param "quantity" - Deprecated: use |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> Quantity -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> Quantity -> BitMEXRequest OrderNew contentType res accept Source # |
newtype ReferralCode Source #
Instances
Eq ReferralCode Source # | |
Defined in BitMEX.API (==) :: ReferralCode -> ReferralCode -> Bool # (/=) :: ReferralCode -> ReferralCode -> Bool # | |
Show ReferralCode Source # | |
Defined in BitMEX.API showsPrec :: Int -> ReferralCode -> ShowS # show :: ReferralCode -> String # showList :: [ReferralCode] -> ShowS # | |
HasOptionalParam UserCheckReferralCode ReferralCode Source # | |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest UserCheckReferralCode contentType res accept -> ReferralCode -> BitMEXRequest UserCheckReferralCode contentType res accept Source # (-&-) :: BitMEXRequest UserCheckReferralCode contentType res accept -> ReferralCode -> BitMEXRequest UserCheckReferralCode contentType res accept Source # |
Instances
Instances
Eq Side Source # | |
Show Side Source # | |
HasOptionalParam OrderNew Side Source # | Optional Param "side" - Order side. Valid options: Buy, Sell. Defaults to |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> Side -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> Side -> BitMEXRequest OrderNew contentType res accept Source # |
newtype SimpleLeavesQty Source #
Instances
Eq SimpleLeavesQty Source # | |
Defined in BitMEX.API (==) :: SimpleLeavesQty -> SimpleLeavesQty -> Bool # (/=) :: SimpleLeavesQty -> SimpleLeavesQty -> Bool # | |
Show SimpleLeavesQty Source # | |
Defined in BitMEX.API showsPrec :: Int -> SimpleLeavesQty -> ShowS # show :: SimpleLeavesQty -> String # showList :: [SimpleLeavesQty] -> ShowS # | |
HasOptionalParam OrderAmend SimpleLeavesQty Source # | Optional Param "simpleLeavesQty" - Optional leaves quantity in units of the underlying instrument (i.e. Bitcoin). Useful for amending partially filled orders. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderAmend contentType res accept -> SimpleLeavesQty -> BitMEXRequest OrderAmend contentType res accept Source # (-&-) :: BitMEXRequest OrderAmend contentType res accept -> SimpleLeavesQty -> BitMEXRequest OrderAmend contentType res accept Source # |
newtype SimpleOrderQty Source #
Instances
Instances
Instances
Instances
Eq StopPrice Source # | |
Show StopPrice Source # | |
HasOptionalParam OrderNew StopPrice Source # | Optional Param "stopPrice" - Deprecated: use |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> StopPrice -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> StopPrice -> BitMEXRequest OrderNew contentType res accept Source # |
Instances
Eq StopPx Source # | |
Show StopPx Source # | |
HasOptionalParam OrderNew StopPx Source # | Optional Param "stopPx" - Optional trigger price for |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> StopPx -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> StopPx -> BitMEXRequest OrderNew contentType res accept Source # | |
HasOptionalParam OrderAmend StopPx Source # | Optional Param "stopPx" - Optional trigger price for |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderAmend contentType res accept -> StopPx -> BitMEXRequest OrderAmend contentType res accept Source # (-&-) :: BitMEXRequest OrderAmend contentType res accept -> StopPx -> BitMEXRequest OrderAmend contentType res accept Source # |
Instances
Eq Symbol Source # | |
Show Symbol Source # | |
HasOptionalParam TradeGetBucketed Symbol Source # | Optional Param "symbol" - Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGetBucketed contentType res accept -> Symbol -> BitMEXRequest TradeGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest TradeGetBucketed contentType res accept -> Symbol -> BitMEXRequest TradeGetBucketed contentType res accept Source # | |
HasOptionalParam TradeGet Symbol Source # | Optional Param "symbol" - Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest TradeGet contentType res accept -> Symbol -> BitMEXRequest TradeGet contentType res accept Source # (-&-) :: BitMEXRequest TradeGet contentType res accept -> Symbol -> BitMEXRequest TradeGet contentType res accept Source # | |
HasOptionalParam SettlementGet Symbol Source # | Optional Param "symbol" - Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest SettlementGet contentType res accept -> Symbol -> BitMEXRequest SettlementGet contentType res accept Source # (-&-) :: BitMEXRequest SettlementGet contentType res accept -> Symbol -> BitMEXRequest SettlementGet contentType res accept Source # | |
HasOptionalParam QuoteGetBucketed Symbol Source # | Optional Param "symbol" - Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGetBucketed contentType res accept -> Symbol -> BitMEXRequest QuoteGetBucketed contentType res accept Source # (-&-) :: BitMEXRequest QuoteGetBucketed contentType res accept -> Symbol -> BitMEXRequest QuoteGetBucketed contentType res accept Source # | |
HasOptionalParam QuoteGet Symbol Source # | Optional Param "symbol" - Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest QuoteGet contentType res accept -> Symbol -> BitMEXRequest QuoteGet contentType res accept Source # (-&-) :: BitMEXRequest QuoteGet contentType res accept -> Symbol -> BitMEXRequest QuoteGet contentType res accept Source # | |
HasOptionalParam OrderGetOrders Symbol Source # | Optional Param "symbol" - Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderGetOrders contentType res accept -> Symbol -> BitMEXRequest OrderGetOrders contentType res accept Source # (-&-) :: BitMEXRequest OrderGetOrders contentType res accept -> Symbol -> BitMEXRequest OrderGetOrders contentType res accept Source # | |
HasOptionalParam OrderCancelAll Symbol Source # | Optional Param "symbol" - Optional symbol. If provided, only cancels orders for that symbol. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderCancelAll contentType res accept -> Symbol -> BitMEXRequest OrderCancelAll contentType res accept Source # (-&-) :: BitMEXRequest OrderCancelAll contentType res accept -> Symbol -> BitMEXRequest OrderCancelAll contentType res accept Source # | |
HasOptionalParam LiquidationGet Symbol Source # | Optional Param "symbol" - Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest LiquidationGet contentType res accept -> Symbol -> BitMEXRequest LiquidationGet contentType res accept Source # (-&-) :: BitMEXRequest LiquidationGet contentType res accept -> Symbol -> BitMEXRequest LiquidationGet contentType res accept Source # | |
HasOptionalParam InsuranceGet Symbol Source # | Optional Param "symbol" - Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InsuranceGet contentType res accept -> Symbol -> BitMEXRequest InsuranceGet contentType res accept Source # (-&-) :: BitMEXRequest InsuranceGet contentType res accept -> Symbol -> BitMEXRequest InsuranceGet contentType res accept Source # | |
HasOptionalParam InstrumentGetCompositeIndex Symbol Source # | Optional Param "symbol" - The composite index symbol. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InstrumentGetCompositeIndex contentType res accept -> Symbol -> BitMEXRequest InstrumentGetCompositeIndex contentType res accept Source # (-&-) :: BitMEXRequest InstrumentGetCompositeIndex contentType res accept -> Symbol -> BitMEXRequest InstrumentGetCompositeIndex contentType res accept Source # | |
HasOptionalParam InstrumentGet Symbol Source # | Optional Param "symbol" - Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest InstrumentGet contentType res accept -> Symbol -> BitMEXRequest InstrumentGet contentType res accept Source # (-&-) :: BitMEXRequest InstrumentGet contentType res accept -> Symbol -> BitMEXRequest InstrumentGet contentType res accept Source # | |
HasOptionalParam FundingGet Symbol Source # | Optional Param "symbol" - Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest FundingGet contentType res accept -> Symbol -> BitMEXRequest FundingGet contentType res accept Source # (-&-) :: BitMEXRequest FundingGet contentType res accept -> Symbol -> BitMEXRequest FundingGet contentType res accept Source # | |
HasOptionalParam ExecutionGetTradeHistory Symbol Source # | Optional Param "symbol" - Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest ExecutionGetTradeHistory contentType res accept -> Symbol -> BitMEXRequest ExecutionGetTradeHistory contentType res accept Source # (-&-) :: BitMEXRequest ExecutionGetTradeHistory contentType res accept -> Symbol -> BitMEXRequest ExecutionGetTradeHistory contentType res accept Source # | |
HasOptionalParam ExecutionGet Symbol Source # | Optional Param "symbol" - Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest ExecutionGet contentType res accept -> Symbol -> BitMEXRequest ExecutionGet contentType res accept Source # (-&-) :: BitMEXRequest ExecutionGet contentType res accept -> Symbol -> BitMEXRequest ExecutionGet contentType res accept Source # |
newtype TimeInForce Source #
Instances
Eq TimeInForce Source # | |
Defined in BitMEX.API (==) :: TimeInForce -> TimeInForce -> Bool # (/=) :: TimeInForce -> TimeInForce -> Bool # | |
Show TimeInForce Source # | |
Defined in BitMEX.API showsPrec :: Int -> TimeInForce -> ShowS # show :: TimeInForce -> String # showList :: [TimeInForce] -> ShowS # | |
HasOptionalParam OrderNew TimeInForce Source # | Optional Param "timeInForce" - Time in force. Valid options: Day, GoodTillCancel, ImmediateOrCancel, FillOrKill. Defaults to |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest OrderNew contentType res accept -> TimeInForce -> BitMEXRequest OrderNew contentType res accept Source # (-&-) :: BitMEXRequest OrderNew contentType res accept -> TimeInForce -> BitMEXRequest OrderNew contentType res accept Source # |
Instances
Eq Token Source # | |
Show Token Source # | |
HasOptionalParam APIKeyNew Token Source # | Optional Param "token" - OTP Token (YubiKey, Google Authenticator) |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest APIKeyNew contentType res accept -> Token -> BitMEXRequest APIKeyNew contentType res accept Source # (-&-) :: BitMEXRequest APIKeyNew contentType res accept -> Token -> BitMEXRequest APIKeyNew contentType res accept Source # |
Instances
Eq Username Source # | |
Show Username Source # | |
HasOptionalParam UserUpdate Username Source # | Optional Param "username" - Username can only be set once. To reset, email support. |
Defined in BitMEX.API applyOptionalParam :: BitMEXRequest UserUpdate contentType res accept -> Username -> BitMEXRequest UserUpdate contentType res accept Source # (-&-) :: BitMEXRequest UserUpdate contentType res accept -> Username -> BitMEXRequest UserUpdate contentType res accept Source # |
Auth Methods
AuthApiKeyApiKey
data AuthApiKeyApiKey Source #
AuthApiKeyApiKey Text | secret |
Instances
Eq AuthApiKeyApiKey Source # | |
Defined in BitMEX.API (==) :: AuthApiKeyApiKey -> AuthApiKeyApiKey -> Bool # (/=) :: AuthApiKeyApiKey -> AuthApiKeyApiKey -> Bool # | |
Show AuthApiKeyApiKey Source # | |
Defined in BitMEX.API showsPrec :: Int -> AuthApiKeyApiKey -> ShowS # show :: AuthApiKeyApiKey -> String # showList :: [AuthApiKeyApiKey] -> ShowS # | |
AuthMethod AuthApiKeyApiKey Source # | |
Defined in BitMEX.API applyAuthMethod :: BitMEXConfig -> AuthApiKeyApiKey -> BitMEXRequest req contentType res accept -> IO (BitMEXRequest req contentType res accept) Source # |
AuthApiKeyApiNonce
data AuthApiKeyApiNonce Source #
AuthApiKeyApiNonce Text | secret |
Instances
Eq AuthApiKeyApiNonce Source # | |
Defined in BitMEX.API (==) :: AuthApiKeyApiNonce -> AuthApiKeyApiNonce -> Bool # (/=) :: AuthApiKeyApiNonce -> AuthApiKeyApiNonce -> Bool # | |
Show AuthApiKeyApiNonce Source # | |
Defined in BitMEX.API showsPrec :: Int -> AuthApiKeyApiNonce -> ShowS # show :: AuthApiKeyApiNonce -> String # showList :: [AuthApiKeyApiNonce] -> ShowS # | |
AuthMethod AuthApiKeyApiNonce Source # | |
Defined in BitMEX.API applyAuthMethod :: BitMEXConfig -> AuthApiKeyApiNonce -> BitMEXRequest req contentType res accept -> IO (BitMEXRequest req contentType res accept) Source # |
AuthApiKeyApiSignature
data AuthApiKeyApiSignature Source #
AuthApiKeyApiSignature Text | secret |
Instances
Eq AuthApiKeyApiSignature Source # | |
Defined in BitMEX.API | |
Show AuthApiKeyApiSignature Source # | |
Defined in BitMEX.API showsPrec :: Int -> AuthApiKeyApiSignature -> ShowS # show :: AuthApiKeyApiSignature -> String # showList :: [AuthApiKeyApiSignature] -> ShowS # | |
AuthMethod AuthApiKeyApiSignature Source # | |
Defined in BitMEX.API applyAuthMethod :: BitMEXConfig -> AuthApiKeyApiSignature -> BitMEXRequest req contentType res accept -> IO (BitMEXRequest req contentType res accept) Source # |
Custom Mime Types
MimeJavascript
data MimeJavascript Source #
Instances
MimeTextjavascript
data MimeTextjavascript Source #
Instances
MimeTextxml
data MimeTextxml Source #