Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
API-NG Reference Guide - 20th October2014.pdf
Скачиваний:
91
Добавлен:
11.02.2015
Размер:
2.41 Mб
Скачать

transferFunds

TransferResponse transferFunds ( Wallet from, Wallet to, double amount ) throws AccountAPING

Exception

Transfer funds between the UK Exchange and Australian Exchange wallets. You require funds in the Australian Exchange wallet to bet on Australian markets. Please note: The transferFunds service can be requested from either the UK or AUS Accounts API endpoint regardless of the direction of the funds transfer.

Parameter name

Type

Required

Description

from

Wallet

 

Source wallet

to

Wallet

 

Destination wallet

amount

double

 

Amount to transfer

Return type

 

Description

 

TransferResponse

 

Response for transfer funds action

Throws

 

Description

 

AccountAPINGException

 

Generic exception that is thrown if this operation

 

 

fails for any reason.

 

Since 1.0.0

Account Operations (Vendor API)

Details of Account Operations that are applicable to licensed API software vendors only.

Required Headers

Please note - although the majority of API-NG calls require both the X-Authentication (sessionT oken) and X-Application (Application Key) in the request header, this isn't applicable for some Vendor API Account Operations. The applicable headers for each Vendor API operation are included in the below table

X-Authentication X-Application

String

getVendorClientId (

 

)

String

getApplicationSubsc

Available to owner

 

riptionToken (

managed (Vendor)

 

intsubscriptionLengt

App Keys Only

 

h )

 

Status

activateApplicationS

 

 

ubscription (

 

 

StringsubscriptionTo

 

 

ken )

 

Status

cancelApplicationSu

Available to owner

 

bscription (

managed (Vendor)

 

StringsubscriptionTo

App Keys Only

 

ken )

 

String

updateApplicationS

Available to owner

 

ubscription ( String

managed (Vendor)

 

vendorClientId, int

App Keys Only

 

subscriptionLength )

 

List< ApplicationSub

listApplicationSubsc

Available to owner

scription >

riptionTokens ( Sub

managed (Vendor)

 

scriptionStatus subs

App Keys Only

 

criptionStatus )

 

List< AccountSubscr

listAccountSubscript

 

iption >

ionTokens ( )

 

List<SubscriptionHis

getApplicationSubsc

Available to owner

tory>

riptionHistory (

managed (Vendor)

 

String

App Keys Only

 

vendorClientId )

 

activateApplicationSubscription

Operation

activateApplicationSubscription

Status activateApplicationSubscription ( String subscriptionToken ) throws AccountAPINGExcept ion

Activates the customers subscription token for an application. The request is made by the customers account using their session token (X-Authentication header) only.

Parameter name

Type

Required

Description

subscriptionToken

String

 

Subscription token for

 

 

 

activation

Return type

 

Description

 

Status

 

 

 

Throws

 

Description

 

AccountAPINGException

 

Generic exception that is thrown if this operation

 

 

fails for any reason.

 

Since 1.0.0

cancelApplicationSubscription

Operation

cancelApplicationSubscription

Status cancelApplicationSubscription ( String subscriptionToken ) throws AccountAPINGExcepti on

Cancel the subscription token. The customers subscription will no longer be active once cancelled.

Parameter name

Type

Required

Description

subscriptionToken

String

 

Subscription token to

 

 

 

cancel

Return type

 

Description

 

Status

 

 

 

Throws

 

Description

 

AccountAPINGException

 

Generic exception that is thrown if this operation

 

 

fails for any reason.

 

Since 1.0.0

getApplicationSubscriptionHistory

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]