bf-haskell-0.1.0.0: Betfair Exchange API

Copyright(C) 2020 Martins Erts
LicenseMIT
MaintainerMartins Erts <martins.erts@gmail.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

BfHaskell.Internal.Rpc

Description

 

Documentation

data JsonRpcRequest Source #

Constructors

JsonRpcRequest 
Instances
Show JsonRpcRequest Source # 
Instance details

Defined in BfHaskell.Internal.Rpc

Generic JsonRpcRequest Source # 
Instance details

Defined in BfHaskell.Internal.Rpc

Associated Types

type Rep JsonRpcRequest :: Type -> Type #

ToJSON JsonRpcRequest Source # 
Instance details

Defined in BfHaskell.Internal.Rpc

Methods

toJSON :: JsonRpcRequest -> Value

toEncoding :: JsonRpcRequest -> Encoding

toJSONList :: [JsonRpcRequest] -> Value

toEncodingList :: [JsonRpcRequest] -> Encoding

type Rep JsonRpcRequest Source # 
Instance details

Defined in BfHaskell.Internal.Rpc

type Rep JsonRpcRequest = D1 (MetaData "JsonRpcRequest" "BfHaskell.Internal.Rpc" "bf-haskell-0.1.0.0-inplace" False) (C1 (MetaCons "JsonRpcRequest" PrefixI True) ((S1 (MetaSel (Just "_jrpcId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "_jrpcMethod") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) :*: (S1 (MetaSel (Just "_jrpcJsonrpc") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "_jrpcParams") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Value))))

data JsonAPINGException Source #

Instances
Show JsonAPINGException Source # 
Instance details

Defined in BfHaskell.Internal.Rpc

Generic JsonAPINGException Source # 
Instance details

Defined in BfHaskell.Internal.Rpc

Associated Types

type Rep JsonAPINGException :: Type -> Type #

FromJSON JsonAPINGException Source # 
Instance details

Defined in BfHaskell.Internal.Rpc

Methods

parseJSON :: Value -> Parser JsonAPINGException

parseJSONList :: Value -> Parser [JsonAPINGException]

ToJSON JsonAPINGException Source # 
Instance details

Defined in BfHaskell.Internal.Rpc

type Rep JsonAPINGException Source # 
Instance details

Defined in BfHaskell.Internal.Rpc

type Rep JsonAPINGException = D1 (MetaData "JsonAPINGException" "BfHaskell.Internal.Rpc" "bf-haskell-0.1.0.0-inplace" False) (C1 (MetaCons "JsonAPINGException" PrefixI True) (S1 (MetaSel (Just "_jaexErrorDetails") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: (S1 (MetaSel (Just "_jaexErrorCode") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "_jaexRequestUUID") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))))

data JsonRpcResponse Source #

Instances
Show JsonRpcResponse Source # 
Instance details

Defined in BfHaskell.Internal.Rpc

Generic JsonRpcResponse Source # 
Instance details

Defined in BfHaskell.Internal.Rpc

Associated Types

type Rep JsonRpcResponse :: Type -> Type #

FromJSON JsonRpcResponse Source # 
Instance details

Defined in BfHaskell.Internal.Rpc

Methods

parseJSON :: Value -> Parser JsonRpcResponse

parseJSONList :: Value -> Parser [JsonRpcResponse]

ToJSON JsonRpcResponse Source # 
Instance details

Defined in BfHaskell.Internal.Rpc

Methods

toJSON :: JsonRpcResponse -> Value

toEncoding :: JsonRpcResponse -> Encoding

toJSONList :: [JsonRpcResponse] -> Value

toEncodingList :: [JsonRpcResponse] -> Encoding

type Rep JsonRpcResponse Source # 
Instance details

Defined in BfHaskell.Internal.Rpc

performRpcRequest Source #

Arguments

:: (ToJSON a, FromJSON b, Members '[Embed IO, LoginHandler, Reader HttpConfig, Output LogMessage, Error String] r) 
=> Url Https

Url

-> Option Https

Options

-> Text

API command

-> a

JSON request

-> Sem r b