/r/docs/InternalApi.md

https://github.com/deribit/deribit-api-clients · Markdown · 458 lines · 305 code · 153 blank · 0 comment · 0 complexity · c3325dc0e244bae70cfd8c56eb6a0c10 MD5 · raw file

  1. # InternalApi
  2. All URIs are relative to *https://www.deribit.com/api/v2*
  3. Method | HTTP request | Description
  4. ------------- | ------------- | -------------
  5. [**PrivateAddToAddressBookGet**](InternalApi.md#PrivateAddToAddressBookGet) | **GET** /private/add_to_address_book | Adds new entry to address book of given type
  6. [**PrivateDisableTfaWithRecoveryCodeGet**](InternalApi.md#PrivateDisableTfaWithRecoveryCodeGet) | **GET** /private/disable_tfa_with_recovery_code | Disables TFA with one time recovery code
  7. [**PrivateGetAddressBookGet**](InternalApi.md#PrivateGetAddressBookGet) | **GET** /private/get_address_book | Retrieves address book of given type
  8. [**PrivateRemoveFromAddressBookGet**](InternalApi.md#PrivateRemoveFromAddressBookGet) | **GET** /private/remove_from_address_book | Adds new entry to address book of given type
  9. [**PrivateSubmitTransferToSubaccountGet**](InternalApi.md#PrivateSubmitTransferToSubaccountGet) | **GET** /private/submit_transfer_to_subaccount | Transfer funds to a subaccount.
  10. [**PrivateSubmitTransferToUserGet**](InternalApi.md#PrivateSubmitTransferToUserGet) | **GET** /private/submit_transfer_to_user | Transfer funds to a another user.
  11. [**PrivateToggleDepositAddressCreationGet**](InternalApi.md#PrivateToggleDepositAddressCreationGet) | **GET** /private/toggle_deposit_address_creation | Enable or disable deposit address creation
  12. [**PublicGetFooterGet**](InternalApi.md#PublicGetFooterGet) | **GET** /public/get_footer | Get information to be displayed in the footer of the website.
  13. [**PublicGetOptionMarkPricesGet**](InternalApi.md#PublicGetOptionMarkPricesGet) | **GET** /public/get_option_mark_prices | Retrives market prices and its implied volatility of options instruments
  14. [**PublicValidateFieldGet**](InternalApi.md#PublicValidateFieldGet) | **GET** /public/validate_field | Method used to introduce the client software connected to Deribit platform over websocket. Provided data may have an impact on the maintained connection and will be collected for internal statistical purposes. In response, Deribit will also introduce itself.
  15. # **PrivateAddToAddressBookGet**
  16. > object PrivateAddToAddressBookGet(currency, type, address, name, tfa=var.tfa)
  17. Adds new entry to address book of given type
  18. ### Example
  19. ```R
  20. library(openapi)
  21. var.currency <- 'currency_example' # character | The currency symbol
  22. var.type <- 'type_example' # character | Address book type
  23. var.address <- 'address_example' # character | Address in currency format, it must be in address book
  24. var.name <- 'Main address' # character | Name of address book entry
  25. var.tfa <- 'tfa_example' # character | TFA code, required when TFA is enabled for current account
  26. #Adds new entry to address book of given type
  27. api.instance <- InternalApi$new()
  28. # Configure HTTP basic authorization: bearerAuth
  29. api.instance$apiClient$username <- 'TODO_YOUR_USERNAME';
  30. api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD';
  31. result <- api.instance$PrivateAddToAddressBookGet(var.currency, var.type, var.address, var.name, tfa=var.tfa)
  32. dput(result)
  33. ```
  34. ### Parameters
  35. Name | Type | Description | Notes
  36. ------------- | ------------- | ------------- | -------------
  37. **currency** | **character**| The currency symbol |
  38. **type** | **character**| Address book type |
  39. **address** | **character**| Address in currency format, it must be in address book |
  40. **name** | **character**| Name of address book entry |
  41. **tfa** | **character**| TFA code, required when TFA is enabled for current account | [optional]
  42. ### Return type
  43. **object**
  44. ### Authorization
  45. [bearerAuth](../README.md#bearerAuth)
  46. ### HTTP request headers
  47. - **Content-Type**: Not defined
  48. - **Accept**: application/json
  49. # **PrivateDisableTfaWithRecoveryCodeGet**
  50. > object PrivateDisableTfaWithRecoveryCodeGet(password, code)
  51. Disables TFA with one time recovery code
  52. ### Example
  53. ```R
  54. library(openapi)
  55. var.password <- 'password_example' # character | The password for the subaccount
  56. var.code <- 'code_example' # character | One time recovery code
  57. #Disables TFA with one time recovery code
  58. api.instance <- InternalApi$new()
  59. # Configure HTTP basic authorization: bearerAuth
  60. api.instance$apiClient$username <- 'TODO_YOUR_USERNAME';
  61. api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD';
  62. result <- api.instance$PrivateDisableTfaWithRecoveryCodeGet(var.password, var.code)
  63. dput(result)
  64. ```
  65. ### Parameters
  66. Name | Type | Description | Notes
  67. ------------- | ------------- | ------------- | -------------
  68. **password** | **character**| The password for the subaccount |
  69. **code** | **character**| One time recovery code |
  70. ### Return type
  71. **object**
  72. ### Authorization
  73. [bearerAuth](../README.md#bearerAuth)
  74. ### HTTP request headers
  75. - **Content-Type**: Not defined
  76. - **Accept**: application/json
  77. # **PrivateGetAddressBookGet**
  78. > object PrivateGetAddressBookGet(currency, type)
  79. Retrieves address book of given type
  80. ### Example
  81. ```R
  82. library(openapi)
  83. var.currency <- 'currency_example' # character | The currency symbol
  84. var.type <- 'type_example' # character | Address book type
  85. #Retrieves address book of given type
  86. api.instance <- InternalApi$new()
  87. # Configure HTTP basic authorization: bearerAuth
  88. api.instance$apiClient$username <- 'TODO_YOUR_USERNAME';
  89. api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD';
  90. result <- api.instance$PrivateGetAddressBookGet(var.currency, var.type)
  91. dput(result)
  92. ```
  93. ### Parameters
  94. Name | Type | Description | Notes
  95. ------------- | ------------- | ------------- | -------------
  96. **currency** | **character**| The currency symbol |
  97. **type** | **character**| Address book type |
  98. ### Return type
  99. **object**
  100. ### Authorization
  101. [bearerAuth](../README.md#bearerAuth)
  102. ### HTTP request headers
  103. - **Content-Type**: Not defined
  104. - **Accept**: application/json
  105. # **PrivateRemoveFromAddressBookGet**
  106. > object PrivateRemoveFromAddressBookGet(currency, type, address, tfa=var.tfa)
  107. Adds new entry to address book of given type
  108. ### Example
  109. ```R
  110. library(openapi)
  111. var.currency <- 'currency_example' # character | The currency symbol
  112. var.type <- 'type_example' # character | Address book type
  113. var.address <- 'address_example' # character | Address in currency format, it must be in address book
  114. var.tfa <- 'tfa_example' # character | TFA code, required when TFA is enabled for current account
  115. #Adds new entry to address book of given type
  116. api.instance <- InternalApi$new()
  117. # Configure HTTP basic authorization: bearerAuth
  118. api.instance$apiClient$username <- 'TODO_YOUR_USERNAME';
  119. api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD';
  120. result <- api.instance$PrivateRemoveFromAddressBookGet(var.currency, var.type, var.address, tfa=var.tfa)
  121. dput(result)
  122. ```
  123. ### Parameters
  124. Name | Type | Description | Notes
  125. ------------- | ------------- | ------------- | -------------
  126. **currency** | **character**| The currency symbol |
  127. **type** | **character**| Address book type |
  128. **address** | **character**| Address in currency format, it must be in address book |
  129. **tfa** | **character**| TFA code, required when TFA is enabled for current account | [optional]
  130. ### Return type
  131. **object**
  132. ### Authorization
  133. [bearerAuth](../README.md#bearerAuth)
  134. ### HTTP request headers
  135. - **Content-Type**: Not defined
  136. - **Accept**: application/json
  137. # **PrivateSubmitTransferToSubaccountGet**
  138. > object PrivateSubmitTransferToSubaccountGet(currency, amount, destination)
  139. Transfer funds to a subaccount.
  140. ### Example
  141. ```R
  142. library(openapi)
  143. var.currency <- 'currency_example' # character | The currency symbol
  144. var.amount <- 3.4 # numeric | Amount of funds to be transferred
  145. var.destination <- 1 # integer | Id of destination subaccount
  146. #Transfer funds to a subaccount.
  147. api.instance <- InternalApi$new()
  148. # Configure HTTP basic authorization: bearerAuth
  149. api.instance$apiClient$username <- 'TODO_YOUR_USERNAME';
  150. api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD';
  151. result <- api.instance$PrivateSubmitTransferToSubaccountGet(var.currency, var.amount, var.destination)
  152. dput(result)
  153. ```
  154. ### Parameters
  155. Name | Type | Description | Notes
  156. ------------- | ------------- | ------------- | -------------
  157. **currency** | **character**| The currency symbol |
  158. **amount** | **numeric**| Amount of funds to be transferred |
  159. **destination** | **integer**| Id of destination subaccount |
  160. ### Return type
  161. **object**
  162. ### Authorization
  163. [bearerAuth](../README.md#bearerAuth)
  164. ### HTTP request headers
  165. - **Content-Type**: Not defined
  166. - **Accept**: application/json
  167. # **PrivateSubmitTransferToUserGet**
  168. > object PrivateSubmitTransferToUserGet(currency, amount, destination, tfa=var.tfa)
  169. Transfer funds to a another user.
  170. ### Example
  171. ```R
  172. library(openapi)
  173. var.currency <- 'currency_example' # character | The currency symbol
  174. var.amount <- 3.4 # numeric | Amount of funds to be transferred
  175. var.destination <- 'destination_example' # character | Destination address from address book
  176. var.tfa <- 'tfa_example' # character | TFA code, required when TFA is enabled for current account
  177. #Transfer funds to a another user.
  178. api.instance <- InternalApi$new()
  179. # Configure HTTP basic authorization: bearerAuth
  180. api.instance$apiClient$username <- 'TODO_YOUR_USERNAME';
  181. api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD';
  182. result <- api.instance$PrivateSubmitTransferToUserGet(var.currency, var.amount, var.destination, tfa=var.tfa)
  183. dput(result)
  184. ```
  185. ### Parameters
  186. Name | Type | Description | Notes
  187. ------------- | ------------- | ------------- | -------------
  188. **currency** | **character**| The currency symbol |
  189. **amount** | **numeric**| Amount of funds to be transferred |
  190. **destination** | **character**| Destination address from address book |
  191. **tfa** | **character**| TFA code, required when TFA is enabled for current account | [optional]
  192. ### Return type
  193. **object**
  194. ### Authorization
  195. [bearerAuth](../README.md#bearerAuth)
  196. ### HTTP request headers
  197. - **Content-Type**: Not defined
  198. - **Accept**: application/json
  199. # **PrivateToggleDepositAddressCreationGet**
  200. > object PrivateToggleDepositAddressCreationGet(currency, state)
  201. Enable or disable deposit address creation
  202. ### Example
  203. ```R
  204. library(openapi)
  205. var.currency <- 'currency_example' # character | The currency symbol
  206. var.state <- 'state_example' # character |
  207. #Enable or disable deposit address creation
  208. api.instance <- InternalApi$new()
  209. # Configure HTTP basic authorization: bearerAuth
  210. api.instance$apiClient$username <- 'TODO_YOUR_USERNAME';
  211. api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD';
  212. result <- api.instance$PrivateToggleDepositAddressCreationGet(var.currency, var.state)
  213. dput(result)
  214. ```
  215. ### Parameters
  216. Name | Type | Description | Notes
  217. ------------- | ------------- | ------------- | -------------
  218. **currency** | **character**| The currency symbol |
  219. **state** | **character**| |
  220. ### Return type
  221. **object**
  222. ### Authorization
  223. [bearerAuth](../README.md#bearerAuth)
  224. ### HTTP request headers
  225. - **Content-Type**: Not defined
  226. - **Accept**: application/json
  227. # **PublicGetFooterGet**
  228. > object PublicGetFooterGet()
  229. Get information to be displayed in the footer of the website.
  230. ### Example
  231. ```R
  232. library(openapi)
  233. #Get information to be displayed in the footer of the website.
  234. api.instance <- InternalApi$new()
  235. # Configure HTTP basic authorization: bearerAuth
  236. api.instance$apiClient$username <- 'TODO_YOUR_USERNAME';
  237. api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD';
  238. result <- api.instance$PublicGetFooterGet()
  239. dput(result)
  240. ```
  241. ### Parameters
  242. This endpoint does not need any parameter.
  243. ### Return type
  244. **object**
  245. ### Authorization
  246. [bearerAuth](../README.md#bearerAuth)
  247. ### HTTP request headers
  248. - **Content-Type**: Not defined
  249. - **Accept**: application/json
  250. # **PublicGetOptionMarkPricesGet**
  251. > object PublicGetOptionMarkPricesGet(currency)
  252. Retrives market prices and its implied volatility of options instruments
  253. ### Example
  254. ```R
  255. library(openapi)
  256. var.currency <- 'currency_example' # character | The currency symbol
  257. #Retrives market prices and its implied volatility of options instruments
  258. api.instance <- InternalApi$new()
  259. # Configure HTTP basic authorization: bearerAuth
  260. api.instance$apiClient$username <- 'TODO_YOUR_USERNAME';
  261. api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD';
  262. result <- api.instance$PublicGetOptionMarkPricesGet(var.currency)
  263. dput(result)
  264. ```
  265. ### Parameters
  266. Name | Type | Description | Notes
  267. ------------- | ------------- | ------------- | -------------
  268. **currency** | **character**| The currency symbol |
  269. ### Return type
  270. **object**
  271. ### Authorization
  272. [bearerAuth](../README.md#bearerAuth)
  273. ### HTTP request headers
  274. - **Content-Type**: Not defined
  275. - **Accept**: application/json
  276. # **PublicValidateFieldGet**
  277. > object PublicValidateFieldGet(field, value, value2=var.value2)
  278. Method used to introduce the client software connected to Deribit platform over websocket. Provided data may have an impact on the maintained connection and will be collected for internal statistical purposes. In response, Deribit will also introduce itself.
  279. ### Example
  280. ```R
  281. library(openapi)
  282. var.field <- 'field_example' # character | Name of the field to be validated, examples: postal_code, date_of_birth
  283. var.value <- 'value_example' # character | Value to be checked
  284. var.value2 <- 'value2_example' # character | Additional value to be compared with
  285. #Method used to introduce the client software connected to Deribit platform over websocket. Provided data may have an impact on the maintained connection and will be collected for internal statistical purposes. In response, Deribit will also introduce itself.
  286. api.instance <- InternalApi$new()
  287. # Configure HTTP basic authorization: bearerAuth
  288. api.instance$apiClient$username <- 'TODO_YOUR_USERNAME';
  289. api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD';
  290. result <- api.instance$PublicValidateFieldGet(var.field, var.value, value2=var.value2)
  291. dput(result)
  292. ```
  293. ### Parameters
  294. Name | Type | Description | Notes
  295. ------------- | ------------- | ------------- | -------------
  296. **field** | **character**| Name of the field to be validated, examples: postal_code, date_of_birth |
  297. **value** | **character**| Value to be checked |
  298. **value2** | **character**| Additional value to be compared with | [optional]
  299. ### Return type
  300. **object**
  301. ### Authorization
  302. [bearerAuth](../README.md#bearerAuth)
  303. ### HTTP request headers
  304. - **Content-Type**: Not defined
  305. - **Accept**: application/json