mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-13 21:52:36 +03:00
Added logo
This commit is contained in:
19
README.md
19
README.md
@@ -1,4 +1,15 @@
|
|||||||
# Orion Protocol SDK
|
<!-- Insert logo -->
|
||||||
|
|
||||||
|
<div style="text-align:center">
|
||||||
|
<img
|
||||||
|
src="./logo.svg"
|
||||||
|
width="200"
|
||||||
|
height="200"
|
||||||
|
alt="Orion Protocol SDK logo"
|
||||||
|
/>
|
||||||
|
<h1>Orion Protocol SDK</h1>
|
||||||
|
<p>Use CEX and DEX liquidity without KYC.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
[](https://www.npmjs.com/package/@orionprotocol/sdk)
|
[](https://www.npmjs.com/package/@orionprotocol/sdk)
|
||||||

|

|
||||||
@@ -15,6 +26,8 @@ Through this connection, developers using the SDK can perform a wide range of ac
|
|||||||
|
|
||||||
Orion’s SDK is free to use and does not require an API key or registration. Refer to integration examples for more detailed information.
|
Orion’s SDK is free to use and does not require an API key or registration. Refer to integration examples for more detailed information.
|
||||||
|
|
||||||
|
- [Overview](#overview)
|
||||||
|
- [API Key](#api-key)
|
||||||
- [Install](#install)
|
- [Install](#install)
|
||||||
- [Usage](#usage)
|
- [Usage](#usage)
|
||||||
- [Initialization](#initialization)
|
- [Initialization](#initialization)
|
||||||
@@ -26,9 +39,11 @@ Orion’s SDK is free to use and does not require an API key or registration. Re
|
|||||||
- [Add liquidity](#add-liquidity)
|
- [Add liquidity](#add-liquidity)
|
||||||
- [Remove all liquidity](#remove-all-liquidity)
|
- [Remove all liquidity](#remove-all-liquidity)
|
||||||
- [Low level methods](#low-level-methods)
|
- [Low level methods](#low-level-methods)
|
||||||
|
- [Get aggregated orderbook](#get-aggregated-orderbook)
|
||||||
- [Get historical price](#get-historical-price)
|
- [Get historical price](#get-historical-price)
|
||||||
- [Get tradable pairs](#get-tradable-pairs)
|
- [Get tradable pairs](#get-tradable-pairs)
|
||||||
- [Get swap info](#get-swap-info)
|
- [Get fee assets](#get-fee-assets)
|
||||||
|
- [Get swap info](#get-swap-info-1)
|
||||||
- [Place order in Orion Aggregator](#place-order-in-orion-aggregator)
|
- [Place order in Orion Aggregator](#place-order-in-orion-aggregator)
|
||||||
- [Orion Aggregator WebSocket](#orion-aggregator-websocket)
|
- [Orion Aggregator WebSocket](#orion-aggregator-websocket)
|
||||||
- [Swap Info](#swap-info)
|
- [Swap Info](#swap-info)
|
||||||
|
|||||||
64
logo.svg
Normal file
64
logo.svg
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
<svg width="274" height="292" viewBox="0 0 274 292" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 182.971C10.3431 182.971 9 181.628 9 179.971V85.9707C9 84.3138 10.3431 82.9707 12 82.9707H106C107.657 82.9707 109 84.3138 109 85.9707V114.722C109 116.982 106.528 118.488 104.294 118.145C103.546 118.03 102.78 117.971 102 117.971C93.7157 117.971 87 124.686 87 132.971C87 141.255 93.7157 147.971 102 147.971C102.78 147.971 103.546 147.911 104.294 147.796C106.528 147.453 109 148.96 109 151.22V179.971C109 181.628 107.657 182.971 106 182.971H77.2491C74.9892 182.971 73.4827 185.442 73.8256 187.676C73.9404 188.424 74 189.19 74 189.971C74 198.255 67.2843 204.971 59 204.971C50.7157 204.971 44 198.255 44 189.971C44 189.19 44.0596 188.424 44.1744 187.676C44.5173 185.442 43.0108 182.971 40.751 182.971H12Z" fill="url(#paint0_linear_102_262)"/>
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M44.1744 187.676C44.5173 185.442 43.0108 182.971 40.7509 182.971H12C10.3431 182.971 9 184.314 9 185.971V279.971C9 281.628 10.3431 282.971 12 282.971H106C107.657 282.971 109 281.628 109 279.971V251.22C109 248.96 111.472 247.453 113.706 247.796C114.454 247.911 115.22 247.971 116 247.971C124.284 247.971 131 241.255 131 232.971C131 224.686 124.284 217.971 116 217.971C115.22 217.971 114.454 218.03 113.706 218.145C111.472 218.488 109 216.982 109 214.722V185.971C109 184.314 107.657 182.971 106 182.971H77.2491C74.9892 182.971 73.4827 185.442 73.8256 187.676C73.9404 188.424 74 189.191 74 189.971C74 198.255 67.2843 204.971 59 204.971C50.7157 204.971 44 198.255 44 189.971C44 189.191 44.0596 188.424 44.1744 187.676Z" fill="url(#paint1_linear_102_262)"/>
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M144 175.971C144 176.751 144.06 177.517 144.174 178.265C144.517 180.499 143.011 182.971 140.751 182.971H112C110.343 182.971 109 184.314 109 185.971V214.722C109 216.982 111.472 218.488 113.706 218.145C114.454 218.03 115.22 217.971 116 217.971C124.284 217.971 131 224.686 131 232.971C131 241.255 124.284 247.971 116 247.971C115.22 247.971 114.454 247.911 113.706 247.796C111.472 247.453 109 248.96 109 251.22V279.971C109 281.628 110.343 282.971 112 282.971H206C207.657 282.971 209 281.628 209 279.971V185.971C209 184.314 207.657 182.971 206 182.971H177.249C174.989 182.971 173.483 180.499 173.826 178.265C173.94 177.517 174 176.751 174 175.971C174 167.686 167.284 160.971 159 160.971C150.716 160.971 144 167.686 144 175.971Z" fill="url(#paint2_linear_102_262)"/>
|
||||||
|
<g filter="url(#filter0_d_102_262)">
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M187.632 151.795C186.38 152.88 184.485 152.745 183.4 151.493L164.565 129.77C163.085 128.063 160.23 128.544 158.767 130.266C158.277 130.843 157.737 131.39 157.148 131.901C150.889 137.328 141.415 136.653 135.988 130.394C130.561 124.135 131.236 114.661 137.495 109.235C138.085 108.723 138.703 108.267 139.343 107.863C141.256 106.659 142.136 103.902 140.656 102.194L121.821 80.4712C120.736 79.2194 120.871 77.3247 122.123 76.2393L193.145 14.661C194.397 13.5757 196.291 13.7106 197.377 14.9624L258.955 85.9844C260.04 87.2362 259.905 89.1309 258.654 90.2163L236.931 109.051C235.223 110.531 232.466 109.65 231.262 107.738C230.858 107.098 230.401 106.48 229.89 105.89C224.463 99.631 214.99 98.9563 208.731 104.383C202.471 109.81 201.797 119.284 207.224 125.543C207.735 126.132 208.282 126.672 208.859 127.162C210.581 128.625 211.062 131.48 209.354 132.96L187.632 151.795Z" fill="url(#paint3_radial_102_262)"/>
|
||||||
|
</g>
|
||||||
|
<g style="mix-blend-mode:screen">
|
||||||
|
<path d="M196.538 53.4241C198.626 51.6109 198.848 48.4484 197.035 46.3603C195.222 44.2723 192.059 44.0495 189.971 45.8627C187.883 47.6759 187.661 50.8385 189.474 52.9265C191.287 55.0145 194.45 55.2373 196.538 53.4241Z" fill="url(#paint4_linear_102_262)"/>
|
||||||
|
<path d="M172.758 63.0366C169.068 66.24 166.411 70.4656 165.123 75.1791C163.834 79.8925 163.973 84.8821 165.521 89.5169C167.068 94.1517 169.956 98.2233 173.817 101.217C177.679 104.211 182.342 105.992 187.216 106.336C192.09 106.68 196.957 105.57 201.201 103.148C205.444 100.726 208.875 97.0992 211.057 92.7274C213.24 88.3557 214.077 83.4348 213.463 78.5872C213.108 75.7819 207.091 73.3614 205.832 70.8626C204.915 69.0436 208.957 67.0479 207.607 65.4936C203.312 60.5468 197.227 57.5089 190.691 57.0481C184.156 56.5873 177.705 58.7414 172.758 63.0366ZM197.796 91.9605C195.73 93.7574 193.177 94.9011 190.461 95.247C187.745 95.5929 184.987 95.1251 182.537 93.9031C180.087 92.6811 178.054 90.7598 176.696 88.3821C175.338 86.0044 174.716 83.2774 174.908 80.5461C175.101 77.8148 176.099 75.2019 177.777 73.0382C179.455 70.8744 181.737 69.257 184.334 68.3905C186.932 67.5242 189.728 67.4478 192.368 68.1709C195.009 68.8941 197.376 70.3844 199.17 72.4533C201.574 75.2233 202.781 78.8344 202.524 82.4933C202.267 86.1523 200.569 89.5597 197.801 91.9668L197.796 91.9605Z" fill="#69F5FD"/>
|
||||||
|
<path d="M169.857 68.1146C168.384 69.3932 167.095 70.8693 166.027 72.5011C164.11 77.2916 163.74 82.5614 164.968 87.5727C166.195 92.584 168.96 97.0861 172.873 100.448C179.846 103.996 188.776 103.052 195.287 97.3989C199.352 93.9036 201.902 88.9665 202.399 83.6282C201.878 86.9976 200.132 90.0559 197.494 92.2164C194.856 94.3768 191.514 95.4871 188.108 95.3343C184.702 95.1814 181.472 93.7762 179.039 91.3881C176.605 89.0001 175.14 85.7976 174.923 82.395C174.706 78.9925 175.753 75.6298 177.863 72.9519C179.974 70.2742 182.998 68.4701 186.358 67.8858C189.717 67.3015 193.173 67.9783 196.063 69.7862C198.954 71.5941 201.075 74.4058 202.02 77.6817C201.35 74.6389 199.926 71.813 197.881 69.4631C190.869 61.367 178.318 60.7676 169.857 68.1146Z" fill="url(#paint5_linear_102_262)"/>
|
||||||
|
<path d="M210.092 58.5142C210.272 57.6751 210.238 56.8043 209.994 55.9818C209.749 55.1592 209.302 54.4112 208.694 53.8065C208.085 53.2017 207.334 52.7594 206.51 52.5204C205.686 52.2814 204.815 52.2532 203.977 52.4384C203.496 52.5429 203.033 52.7177 202.603 52.9572C202.167 53.1932 200.648 54.0969 199.465 57.0796C198.677 59.0676 198.489 60.8531 198.417 62.6689C198.299 65.8637 198.533 69.0616 199.115 72.2052C199.137 72.3877 199.169 72.5687 199.211 72.7474C199.295 73.1288 199.423 73.4992 199.593 73.8511L199.611 73.8725C201.903 77.2705 205.062 78.8807 206.81 78.0634C208.753 77.1555 209.306 73.0856 208.682 70.3685C208.423 69.2514 207.979 68.412 207.99 66.7764C207.997 65.6879 208.202 64.8241 208.559 63.3633C208.856 62.1577 209.217 60.9689 209.641 59.8019C209.743 59.6047 209.833 59.4015 209.91 59.1931C209.985 58.9709 210.046 58.7441 210.092 58.5142Z" fill="url(#paint6_linear_102_262)"/>
|
||||||
|
<path d="M206.829 63.8911C206.549 62.9496 206.004 62.1084 205.26 61.4675C204.515 60.8266 203.602 60.413 202.629 60.2759C201.657 60.1387 200.665 60.2837 199.773 60.6937C198.88 61.1038 198.124 61.7615 197.594 62.5888C197.326 63.0051 196.423 64.5277 196.802 67.7167C197.061 69.8406 197.747 71.4972 198.554 73.1263C199.976 75.9896 201.71 78.6869 203.725 81.1689C203.832 81.3243 203.948 81.4738 204.072 81.6165C204.328 81.9105 204.617 82.1737 204.934 82.401L204.954 82.4245C207.051 83.627 209.588 83.503 211.297 82.1314C213.506 80.3599 213.45 77.1856 212.697 75.4381C212.539 75.0699 211.938 74.2655 210.728 72.6523C209.342 70.798 209.095 70.6082 208.647 69.9068C207.767 68.4996 207.213 66.9134 207.025 65.2645C207.019 65.0417 206.999 64.8194 206.968 64.5987C206.937 64.3602 206.89 64.1238 206.829 63.8911Z" fill="url(#paint7_linear_102_262)"/>
|
||||||
|
<path d="M212.872 75.785C212.649 75.2412 212.338 74.7377 211.952 74.2945C211.118 73.3646 209.996 72.7419 208.766 72.5261C207.536 72.3104 206.269 72.5142 205.168 73.1047C204.068 73.6954 203.197 74.6385 202.697 75.7829C202.197 76.9273 202.095 78.2067 202.409 79.4155C202.657 81.0483 202.612 82.7121 202.278 84.3293C202.269 84.453 202.264 84.577 202.26 84.7192C202.034 87.5908 200.963 89.645 200.083 91.3377C198.53 94.3165 190.661 102.566 182.023 102.524C178.397 102.301 172.898 100.442 172.884 100.439C177.382 104.297 183.118 106.409 189.045 106.391C194.971 106.373 200.694 104.225 205.168 100.339C207.92 97.9498 209.995 94.6791 209.995 94.6791C212.552 90.5441 213.831 85.7459 213.672 80.8867C213.624 79.7495 213.495 78.6172 213.285 77.4985C213.248 76.9201 213.12 76.3513 212.904 75.8134L212.872 75.785Z" fill="url(#paint8_linear_102_262)"/>
|
||||||
|
</g>
|
||||||
|
<defs>
|
||||||
|
<filter id="filter0_d_102_262" x="107.088" y="3.92764" width="166.6" height="166.6" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||||
|
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||||
|
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
||||||
|
<feOffset dy="4"/>
|
||||||
|
<feGaussianBlur stdDeviation="7"/>
|
||||||
|
<feComposite in2="hardAlpha" operator="out"/>
|
||||||
|
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
||||||
|
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_102_262"/>
|
||||||
|
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_102_262" result="shape"/>
|
||||||
|
</filter>
|
||||||
|
<linearGradient id="paint0_linear_102_262" x1="-169" y1="83" x2="132" y2="77.5" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#FF0000" stop-opacity="0.5"/>
|
||||||
|
<stop offset="1" stop-color="#FF0000" stop-opacity="0"/>
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient id="paint1_linear_102_262" x1="-143.5" y1="447.5" x2="110" y2="183" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#00FF19" stop-opacity="0.5"/>
|
||||||
|
<stop offset="1" stop-color="#05FF00" stop-opacity="0"/>
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient id="paint2_linear_102_262" x1="294.5" y1="464" x2="143.5" y2="179" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#0085FF" stop-opacity="0.5"/>
|
||||||
|
<stop offset="1" stop-color="#0085FF" stop-opacity="0"/>
|
||||||
|
</linearGradient>
|
||||||
|
<radialGradient id="paint3_radial_102_262" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(182.077 90.4338) rotate(-169.1) scale(134.504 164.095)">
|
||||||
|
<stop stop-color="#A200FF"/>
|
||||||
|
<stop offset="0.458333" stop-color="#FF0099"/>
|
||||||
|
</radialGradient>
|
||||||
|
<linearGradient id="paint4_linear_102_262" x1="189.989" y1="45.8829" x2="194.36" y2="52.0561" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#FE37AF"/>
|
||||||
|
<stop offset="1" stop-color="#FE079C"/>
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient id="paint5_linear_102_262" x1="188.642" y1="62.9186" x2="171.818" y2="99.6339" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#09EFFB"/>
|
||||||
|
<stop offset="1" stop-color="#FE37AF"/>
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient id="paint6_linear_102_262" x1="205.682" y1="50.1822" x2="206.291" y2="75.6926" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#891AEA"/>
|
||||||
|
<stop offset="1" stop-color="#A047EE"/>
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient id="paint7_linear_102_262" x1="196.958" y1="63.0028" x2="206.308" y2="78.3002" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#FE37AF"/>
|
||||||
|
<stop offset="1" stop-color="#FE079C"/>
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient id="paint8_linear_102_262" x1="211.263" y1="73.4358" x2="193.135" y2="103.041" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#891AEA"/>
|
||||||
|
<stop offset="1" stop-color="#FE079C"/>
|
||||||
|
</linearGradient>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 11 KiB |
Reference in New Issue
Block a user