Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exchanges: Add Deribit exchange support #1082

Merged
merged 211 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
211 commits
Select commit Hold shift + click to select a range
317542f
deribit implementation
geseq Sep 14, 2022
12cad77
add ws impll
geseq Sep 14, 2022
cdfc09b
cleanup
geseq Sep 14, 2022
326d6e6
Update deribit_wrapper.go
geseq Sep 19, 2022
5386edb
Add missing endpoints
samuael Oct 14, 2022
ab3b1f9
Fix config file
samuael Oct 18, 2022
5407c0b
Merge branch 'master' into gderibit
samuael Oct 18, 2022
ff8bdc8
asset type update
samuael Oct 19, 2022
0521182
Update code structure
samuael Oct 20, 2022
9035b5a
Update authenticated private endpoints unit tests
samuael Oct 24, 2022
af3d152
Updating websocket
samuael Oct 27, 2022
319826e
Updating websocket connection and subscription handling
samuael Oct 30, 2022
86dce65
Finishing up adding subscription push data
samuael Oct 31, 2022
217df42
Adding websocket public endpoint
samuael Nov 1, 2022
0a4e1c3
Adding WS endpoints
samuael Nov 2, 2022
c52a9c3
Adding websocket unit tests
samuael Nov 9, 2022
968d484
Minor clean-up
samuael Nov 9, 2022
6145614
Integrating websocket endpoints into the wrapper funcs
samuael Nov 10, 2022
309807d
Updating exchange documentations
samuael Nov 11, 2022
8862072
Fixing test issues
samuael Nov 11, 2022
b937687
Code cleaning-up
samuael Nov 11, 2022
0ac5d68
Merge branch 'master' into gderibit
samuael Nov 12, 2022
ccbe121
fix test issues
samuael Nov 12, 2022
ddb4013
Updating validations and logic errors
samuael Nov 15, 2022
19bb51e
Updating wrapper issues
samuael Nov 20, 2022
7a9e8b3
fix test issues
samuael Nov 21, 2022
87e9eba
Slight test update
samuael Nov 24, 2022
623e73a
Unit test and code structure update
samuael Dec 7, 2022
a7ebf85
Update websocket tempos
samuael Dec 12, 2022
02725e9
Merge branch 'master' into gderibit
samuael Dec 13, 2022
bcd9b99
Merge branch 'master' into gderibit
samuael Dec 16, 2022
cf6abab
Slight update on code structure
samuael Dec 28, 2022
6bc3ae7
Minor update on unit tests
samuael Jan 4, 2023
6bce207
Update depending on review comments
samuael Jan 6, 2023
c81ced0
Merge branch 'master' into gderibit
samuael Jan 6, 2023
fc55616
Minor code fix and doc re-generating
samuael Jan 10, 2023
c3c49d5
Merge branch 'master' into gderibit
samuael Jan 10, 2023
8f3c78f
Merge branch 'master' into gderibit
samuael Jan 19, 2023
2055e0d
Merge branch 'master' into gderibit
samuael Jan 24, 2023
fd700d8
Merge branch 'master' into gderibit
samuael Jan 25, 2023
1d36f5a
Update on Candlestick wrapper functions
samuael Jan 25, 2023
06eb06d
Minor updates
samuael Feb 7, 2023
9548467
minor unit test updates
samuael Feb 8, 2023
fd245f0
Minor updates on weboscket and unit tests
samuael Feb 8, 2023
89f9bb8
minor linter fix
samuael Feb 8, 2023
4015564
codespell and rate limiter issues
samuael Feb 9, 2023
3a36279
Merge branch 'master' into gderibit
samuael Feb 9, 2023
7decafa
single linter issue fix
samuael Feb 9, 2023
8c6f419
adding rate limiter
samuael Feb 9, 2023
0df78cc
Add ratelimiter to websocket conn and overall code update
samuael Feb 11, 2023
a3cbe92
Merge branch 'master' into gderibit
samuael Feb 16, 2023
c49c919
Merge branch 'master' into gderibit
samuael Feb 27, 2023
a9aa027
fix websocket push data issue
samuael Feb 28, 2023
0bb362c
Implementing missing wrapper function
samuael Mar 1, 2023
f24355d
Websocket fix
samuael Mar 6, 2023
08596af
Minor update on missing endpoint and other
samuael Mar 9, 2023
61352a6
fixing websocket issues and cleaningup
samuael Mar 12, 2023
4dd331d
Minor tempo fix
samuael Mar 13, 2023
5a6ab13
Minor linter issues
samuael Mar 14, 2023
0ea7a12
unit test update
samuael Mar 16, 2023
81a7442
Indexing error fix
samuael Mar 17, 2023
b75e3f1
Websocket connection fix
samuael Mar 19, 2023
ea22f34
string formatting fix
samuael Mar 20, 2023
7e09876
Small fix on unit tests
samuael Mar 28, 2023
8a3aafa
fix minor json conversion issue
samuael Mar 30, 2023
1a67f4c
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Apr 4, 2023
003d969
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Apr 5, 2023
ae85fed
websocket and documentation update
samuael Apr 11, 2023
5bef098
websocket, wrapper and unit test updates
samuael Apr 12, 2023
3a0c3d3
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Apr 12, 2023
3fe099f
Documentation and unit tests update
samuael Apr 27, 2023
430db3a
Fix unit tests
samuael Apr 27, 2023
b5f9dfc
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Apr 27, 2023
5629215
wrapper fix for new change
samuael Apr 27, 2023
aafa4e6
Unit test fix
samuael Apr 27, 2023
635cc80
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael May 30, 2023
5df87f9
timestamp conversion and unit tests update
samuael May 31, 2023
26b5faf
Minor instrument ID conversion fix
samuael Jun 1, 2023
f8c7d8d
instrument formats and unit test update
samuael Jun 5, 2023
dd454a1
formatting and unit test fix
samuael Jun 7, 2023
a50cb46
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jun 8, 2023
f08ee9c
config update
samuael Jun 16, 2023
038f370
Updating websocket and adding the Spot support
samuael Jun 17, 2023
9363cdf
Add small unit test fix
samuael Jun 17, 2023
83b7fb7
unit test and websocket handlers update
samuael Jun 18, 2023
bf9b9e6
Linter issues fix
samuael Jun 18, 2023
4d5a9bd
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jun 19, 2023
689d466
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jun 20, 2023
f1aaf2d
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jun 22, 2023
ec4511d
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jun 26, 2023
3f401a3
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jul 3, 2023
a5ad3b6
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jul 4, 2023
2ede2a4
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jul 5, 2023
1625ee9
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jul 6, 2023
e1ba499
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jul 10, 2023
1781d51
minor documentation and code update
samuael Jul 10, 2023
d3c1316
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jul 12, 2023
a411b96
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jul 17, 2023
68ae7f6
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jul 18, 2023
b0a9fb5
Minor fix
samuael Jul 19, 2023
c26fab9
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Sep 7, 2023
6b3b452
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Oct 4, 2023
742c311
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Oct 10, 2023
92f6589
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Oct 22, 2023
b0d2486
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Oct 25, 2023
b642c5f
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Nov 5, 2023
5155262
added a wrapper func GetLatestFundingRates
samuael Nov 5, 2023
7d17545
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Nov 23, 2023
df006cf
Types, wrapper update, and unit tests
samuael Dec 14, 2023
1422cad
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Dec 14, 2023
7766b4f
Minor config update
samuael Dec 14, 2023
207cac7
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Dec 22, 2023
2ed070f
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Dec 31, 2023
d0adc2f
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jan 3, 2024
529c878
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jan 18, 2024
fa492e7
fix wrapper unit tests
samuael Jan 18, 2024
cb27a5b
Resolve all panic and wrapper test issues
samuael Jan 19, 2024
e53bf91
minor unit test fix
samuael Jan 21, 2024
d77299b
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jan 30, 2024
4a7e448
fix issues and adding newly added endpoints
samuael Jan 30, 2024
4cb0b8c
updates and added remaining endpoints with unit tests
samuael Jan 31, 2024
97fd046
Update unit tests using assert
samuael Feb 1, 2024
8b7e281
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Feb 1, 2024
4db0315
Added missing endpoints and unit tests
samuael Feb 3, 2024
49a41d5
Minor updates and clean-ups
samuael Feb 4, 2024
7504978
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Feb 4, 2024
794924e
Resolve tradable pair fetching panic
samuael Feb 5, 2024
a639fc3
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Feb 5, 2024
26ecaff
Mutex fix
samuael Feb 5, 2024
f980ac9
Added Options assets test and minor fixes
samuael Feb 5, 2024
fb79005
subscription mothod updated
samuael Feb 8, 2024
fc88236
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Feb 8, 2024
bdbc8b5
Remove misadded code lines
samuael Feb 8, 2024
1fc5da6
resolve websocket
samuael Feb 12, 2024
d48cec5
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Feb 18, 2024
bb1a915
Updating tests, types, endpoint methods and others
samuael Feb 19, 2024
73d5d47
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Feb 20, 2024
0401259
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Feb 21, 2024
66d7301
Added GetFuturesContractDetails and minor fix
samuael Feb 23, 2024
95c9ec6
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Feb 23, 2024
25b5fc6
fix linter issue
samuael Feb 23, 2024
ab5a082
revert change on candlestic time
samuael Feb 25, 2024
5c454cb
Added filters to candles
samuael Feb 25, 2024
d2b20ef
minor unit test and wrapper fix
samuael Feb 27, 2024
b220143
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Feb 27, 2024
be94c68
Minor unit tests update
samuael Mar 5, 2024
ddb7999
cahnge param key for GetOrderMarginByID
samuael Mar 6, 2024
70d12c7
updating unit tests and resolve issues
samuael Mar 7, 2024
fa29d22
Update websocket unit tests
samuael Mar 8, 2024
8558529
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Mar 8, 2024
8069152
Minor fix based on review
samuael Mar 12, 2024
2306efc
Revert unit test change
samuael Mar 13, 2024
04b5c9e
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Mar 13, 2024
c2f53fb
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Mar 18, 2024
568a57e
fix pair config issue
samuael Mar 18, 2024
ef1ae06
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Mar 20, 2024
1a9d8ac
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Mar 27, 2024
9e5a860
Added missing wrapper functions
samuael Mar 28, 2024
01f2fae
Fix missing review changes
samuael Apr 1, 2024
6b76797
Fix options request pair formatting
samuael Apr 4, 2024
cb121ce
fix AllExchangeWrappers test issue
samuael Apr 4, 2024
46bba36
Changes with unit test and wrapper based on the review
samuael Apr 10, 2024
d66426e
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Apr 10, 2024
291e361
Fix to options reg-exp
samuael Apr 11, 2024
5684ec0
wrapper functions fix
samuael Apr 16, 2024
3ef3a53
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Apr 16, 2024
79a3daf
Update MaximumFundingRateHistory filter and minor fixes
samuael Apr 16, 2024
37b9d73
Fix besed on review comment
samuael Apr 26, 2024
67931bb
Fix issues on review comment
samuael Apr 28, 2024
05ef128
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Apr 28, 2024
c6369d8
linter fix
samuael Apr 28, 2024
ca2d422
fix minor unit test issue
samuael Apr 28, 2024
9bfb398
Fix unit test issues
samuael Apr 29, 2024
98f1e55
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Apr 29, 2024
b3c240b
Update trade order cancellation responses
samuael Apr 30, 2024
160bca0
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Apr 30, 2024
9c0c8ac
fix config files issue
samuael Apr 30, 2024
2f765ee
lint update config files
samuael Apr 30, 2024
e94933c
Update unit tests
samuael May 1, 2024
892ecb1
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael May 1, 2024
3ce7cd1
Update return values and response handling
samuael May 2, 2024
5447ec6
added missing endpoint and fixes based on review comment
samuael May 7, 2024
4cf250e
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael May 7, 2024
a8ec7cc
toggle useTestNet back
samuael May 7, 2024
87e66c8
Update cancel by label and other fix
samuael May 10, 2024
d84a109
fix forgotten cancel all response type
samuael May 10, 2024
48e4540
update CancelResp type
samuael May 13, 2024
4a8aa4f
Fix unmarshaling error
samuael May 13, 2024
e106f1d
updated websocket orderbook load issue
samuael May 13, 2024
e7c9e1b
fix websocket lock and groups
samuael May 14, 2024
0d0d23e
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael May 15, 2024
2ccca77
Change Items to Tranche and fix linter issues
samuael May 15, 2024
e39a95c
Fix orderbook issue
samuael May 15, 2024
09815a4
Update unit tests offline error handling, and endpoints argument and …
samuael May 17, 2024
602622d
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael May 17, 2024
e81d0ac
Contributors documentation update and change error return type
samuael May 17, 2024
edcf33c
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael May 17, 2024
ac69c16
Updated unit tests based on review comment
samuael May 21, 2024
86f891f
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael May 21, 2024
9100bba
Update unit tests and removed password change endpoint
samuael May 22, 2024
b9e008d
Fix race condition
samuael May 22, 2024
6ebb729
Update on tests, test pairs, and wrapper config
samuael May 24, 2024
1f2d5f2
Update test tradable pairs loading
samuael May 24, 2024
724ad17
Update unit tests, fix linter issues, and update wrapper functions
samuael May 25, 2024
5891a8b
remove credentials
samuael May 26, 2024
ce6fa40
Update test and fix authentication method and few authenticated endpo…
samuael May 26, 2024
33c5a99
fix codespell issue
samuael May 27, 2024
6fe8076
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael May 28, 2024
626c485
group the repeated currency code check to a func
samuael May 28, 2024
e1497ba
added unit test for repeated pair check func
samuael May 28, 2024
21fa83e
Added a base coin and related updates
samuael May 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,40 @@ shazbert | https://github.com/shazbert
dependabot[bot] | https://github.com/apps/dependabot
gloriousCode | https://github.com/gloriousCode
dependabot-preview[bot] | https://github.com/apps/dependabot-preview
xtda | https://github.com/xtda
gbjk | https://github.com/gbjk
xtda | https://github.com/xtda
lrascao | https://github.com/lrascao
Beadko | https://github.com/Beadko
Rots | https://github.com/Rots
vazha | https://github.com/vazha
ydm | https://github.com/ydm
ermalguni | https://github.com/ermalguni
MadCozBadd | https://github.com/MadCozBadd
Beadko | https://github.com/Beadko
vadimzhukck | https://github.com/vadimzhukck
140am | https://github.com/140am
marcofranssen | https://github.com/marcofranssen
geseq | https://github.com/geseq
samuael | https://github.com/samuael
marcofranssen | https://github.com/marcofranssen
140am | https://github.com/140am
TaltaM | https://github.com/TaltaM
dackroyd | https://github.com/dackroyd
cranktakular | https://github.com/cranktakular
khcchiu | https://github.com/khcchiu
yangrq1018 | https://github.com/yangrq1018
woshidama323 | https://github.com/woshidama323
crackcomm | https://github.com/crackcomm
azhang | https://github.com/azhang
thrasher- marked this conversation as resolved.
Show resolved Hide resolved
herenow | https://github.com/herenow
tk42 | https://github.com/tk42
thrasher- marked this conversation as resolved.
Show resolved Hide resolved
soxipy | https://github.com/soxipy
andreygrehov | https://github.com/andreygrehov
azhang | https://github.com/azhang
bretep | https://github.com/bretep
Christian-Achilli | https://github.com/Christian-Achilli
cornelk | https://github.com/cornelk
gam-phon | https://github.com/gam-phon
herenow | https://github.com/herenow
if1live | https://github.com/if1live
lozdog245 | https://github.com/lozdog245
MarkDzulko | https://github.com/MarkDzulko
mshogin | https://github.com/mshogin
soxipy | https://github.com/soxipy
tk42 | https://github.com/tk42
blombard | https://github.com/blombard
cavapoo2 | https://github.com/cavapoo2
CodeLingoTeam | https://github.com/CodeLingoTeam
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2014-2023 The GoCryptoTrader Developers
Copyright (c) 2014-2024 The GoCryptoTrader Developers

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
25 changes: 15 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader
| Bybit | Yes | Yes | NA |
| CoinbasePro | Yes | Yes | No|
| COINUT | Yes | Yes | NA |
| Deribit | Yes | Yes | No |
| Exmo | Yes | NA | NA |
| GateIO | Yes | Yes | NA |
| Gemini | Yes | Yes | No |
Expand Down Expand Up @@ -141,34 +142,38 @@ Binaries will be published once the codebase reaches a stable condition.

|User|Contribution Amount|
|--|--|
| [thrasher-](https://github.com/thrasher-) | 684 |
| [shazbert](https://github.com/shazbert) | 315 |
| [dependabot[bot]](https://github.com/apps/dependabot) | 228 |
| [gloriousCode](https://github.com/gloriousCode) | 224 |
| [thrasher-](https://github.com/thrasher-) | 690 |
| [shazbert](https://github.com/shazbert) | 326 |
| [dependabot[bot]](https://github.com/apps/dependabot) | 276 |
| [gloriousCode](https://github.com/gloriousCode) | 233 |
| [dependabot-preview[bot]](https://github.com/apps/dependabot-preview) | 88 |
| [gbjk](https://github.com/gbjk) | 72 |
| [xtda](https://github.com/xtda) | 47 |
| [gbjk](https://github.com/gbjk) | 42 |
| [lrascao](https://github.com/lrascao) | 27 |
| [Beadko](https://github.com/Beadko) | 17 |
| [Rots](https://github.com/Rots) | 15 |
| [vazha](https://github.com/vazha) | 15 |
| [ydm](https://github.com/ydm) | 15 |
| [ermalguni](https://github.com/ermalguni) | 14 |
| [MadCozBadd](https://github.com/MadCozBadd) | 13 |
| [Beadko](https://github.com/Beadko) | 11 |
| [vadimzhukck](https://github.com/vadimzhukck) | 10 |
| [140am](https://github.com/140am) | 8 |
| [marcofranssen](https://github.com/marcofranssen) | 8 |
| [geseq](https://github.com/geseq) | 8 |
| [samuael](https://github.com/samuael) | 7 |
| [samuael](https://github.com/samuael) | 8 |
| [marcofranssen](https://github.com/marcofranssen) | 8 |
| [140am](https://github.com/140am) | 8 |
| [TaltaM](https://github.com/TaltaM) | 6 |
| [dackroyd](https://github.com/dackroyd) | 5 |
| [cranktakular](https://github.com/cranktakular) | 5 |
| [khcchiu](https://github.com/khcchiu) | 5 |
| [yangrq1018](https://github.com/yangrq1018) | 4 |
| [woshidama323](https://github.com/woshidama323) | 3 |
| [crackcomm](https://github.com/crackcomm) | 3 |
| [azhang](https://github.com/azhang) | 2 |
| [mshogin](https://github.com/mshogin) | 2 |
| [herenow](https://github.com/herenow) | 2 |
| [tk42](https://github.com/tk42) | 2 |
| [soxipy](https://github.com/soxipy) | 2 |
| [andreygrehov](https://github.com/andreygrehov) | 2 |
| [azhang](https://github.com/azhang) | 2 |
| [bretep](https://github.com/bretep) | 2 |
| [Christian-Achilli](https://github.com/Christian-Achilli) | 2 |
| [cornelk](https://github.com/cornelk) | 2 |
Expand Down
20 changes: 20 additions & 0 deletions cmd/documentation/documentation.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,26 @@ func main() {

// Github API missing contributors
contributors = append(contributors, []Contributor{
{
Login: "andreygrehov",
URL: "https://github.com/andreygrehov",
Contributions: 2,
},
{
Login: "azhang",
URL: "https://github.com/azhang",
Contributions: 2,
},
{
Login: "bretep",
URL: "https://github.com/bretep",
Contributions: 2,
},
{
Login: "Christian-Achilli",
URL: "https://github.com/Christian-Achilli",
Contributions: 2,
},
{
Login: "cornelk",
URL: "https://github.com/cornelk",
Expand Down
106 changes: 106 additions & 0 deletions cmd/documentation/exchanges_templates/deribit.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{{define "exchanges deribit" -}}
{{template "header" .}}
## Deribit Exchange

### Current Features

+ REST Support
+ Websocket Support

### How to enable

+ [Enable via configuration](https://github.com/thrasher-corp/gocryptotrader/tree/master/config#enable-exchange-via-config-example)

+ Individual package example below:

```go
// Exchanges will be abstracted out in further updates and examples will be
// supplied then
```

### How to do REST public/private calls

+ If enabled via "configuration".json file the exchange will be added to the
IBotExchange array in the ```go var bot Bot``` and you will only be able to use
the wrapper interface functions for accessing exchange data. View routines.go
for an example of integration usage with GoCryptoTrader. Rudimentary example
below:

main.go
```go
var d exchange.IBotExchange

for i := range bot.Exchanges {
if bot.Exchanges[i].GetName() == "Deribit" {
d = bot.Exchanges[i]
shazbert marked this conversation as resolved.
Show resolved Hide resolved
}
}

// Public calls - wrapper functions

// Fetches current ticker information
tick, err := d.FetchTicker()
if err != nil {
// Handle error
}

// Fetches current orderbook information
ob, err := d.FetchOrderbook()
if err != nil {
// Handle error
}

// Private calls - wrapper functions - make sure your APIKEY and APISECRET are
// set and AuthenticatedAPISupport is set to true

// Fetches current account information
accountInfo, err := d.GetAccountInfo()
if err != nil {
// Handle error
}
```

+ If enabled via individually importing package, rudimentary example below:

```go
// Public calls

// Fetches current ticker information
tick, err := d.GetTicker()
if err != nil {
// Handle error
}

// Fetches current orderbook information
ob, err := d.GetOrderBook()
if err != nil {
// Handle error
}

// Private calls - make sure your APIKEY and APISECRET are set and
// AuthenticatedAPISupport is set to true

// GetUserInfo returns account info
accountInfo, err := d.GetUserInfo(...)
if err != nil {
// Handle error
}

// Submits an order and the exchange and returns its tradeID
tradeID, err := d.Trade(...)
if err != nil {
// Handle error
}
```

### How to do Websocket public/private calls

```go
// Exchanges will be abstracted out in further updates and examples will be
// supplied then
```

### Please click GoDocs chevron above to view current GoDoc information for this package
{{template "contributions"}}
{{template "donations" .}}
{{end}}
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ _b in this context is an `IBotExchange` implemented struct_
| Bybit | Yes | Yes | Yes |
| CoinbasePro | Yes | Yes | No|
| COINUT | Yes | Yes | No |
| Deribit | Yes | Yes | Yes |
| Exmo | Yes | NA | No |
| GateIO | Yes | Yes | No |
| Gemini | Yes | Yes | Yes |
Expand Down
1 change: 1 addition & 0 deletions cmd/documentation/root_templates/root_readme.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader
| Bybit | Yes | Yes | NA |
| CoinbasePro | Yes | Yes | No|
| COINUT | Yes | Yes | NA |
| Deribit | Yes | Yes | No |
| Exmo | Yes | NA | NA |
| GateIO | Yes | Yes | NA |
| Gemini | Yes | Yes | No |
Expand Down
5 changes: 5 additions & 0 deletions cmd/exchange_wrapper_issues/wrapperconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@
"clientID": "ClientID",
"otpSecret": "-"
},
"deribit": {
"key": "Key",
"secret": "Secret",
"otpSecret": "-"
},
"exmo": {
"key": "Key",
"secret": "Secret",
Expand Down
Loading
Loading