-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathgrape_routes
175 lines (175 loc) · 50.1 KB
/
grape_routes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
GET | /v2/coingecko/pairs(.:format) | | Get list of all available trading pairs
GET | /v2/coingecko/tickers(.:format) | | Get list of all available trading pairs
GET | /v2/coingecko/orderbook(.:format) | | Get depth or specified market
GET | /v2/coingecko/historical_trades(.:format) | | Get recent trades on market
GET | /v2/coinmarketcap/orderbook/:market_pair(.:format) | | Get depth or specified market
GET | /v2/coinmarketcap/trades/:market_pair(.:format) | | Get recent trades on market
GET | /v2/public/member-levels(.:format) | | Returns hash of minimum levels and the privileges they provide.
GET | /v2/public/timestamp(.:format) | | Get server current time, in seconds since Unix epoch.
GET | /v2/public/version(.:format) | | Get running Peatio version and build details.
GET | /v2/public/health/alive(.:format) | | Get application liveness status
GET | /v2/public/health/ready(.:format) | | Get application readiness status
GET | /v2/public/trading_fees(.:format) | | Returns trading_fees table as paginated collection
POST | /v2/public/webhooks/:adapter/:event(.:format) | | Webhook controller
GET | /v2/public/markets(.:format) | | Get all available markets.
GET | /v2/public/markets/:market/order-book(.:format) | | Get the order book of specified market.
GET | /v2/public/markets/:market/trades(.:format) | | Get recent trades on market, each trade is included only once. Trades are sorted in reverse creation order.
GET | /v2/public/markets/:market/depth(.:format) | | Get depth or specified market. Both asks and bids are sorted from highest price to lowest.
GET | /v2/public/markets/:market/k-line(.:format) | | Get OHLC(k line) of specific market.
GET | /v2/public/markets/tickers(.:format) | | Get ticker of all markets (For response doc see /:market/tickers/ response).
GET | /v2/public/markets/:market/tickers(.:format) | | Get ticker of specific market.
GET | /v2/public/markets/:market/swap_price(.:format) | | Get swap price
GET | /v2/public/withdraw_limits(.:format) | | Returns withdraw limits table as paginated collection
GET | /v2/public/blockchains(.:format) | | Get all blockchains
GET | /v2/public/blockchains/:id(.:format) | | Get a blockchain.
GET | /v2/public/blockchains/:id/latest_block(.:format) | | Get a latest blockchain block.
GET | /v2/account/balances(.:format) | | Get list of user accounts
GET | /v2/account/balances/:currency(.:format) | | Get user account by currency
POST | /v2/account/deposits/intention(.:format) | | Create deposit intention
GET | /v2/account/deposits(.:format) | | Get your deposits history.
GET | /v2/account/deposits/:txid(.:format) | | Get details of specific deposit.
GET | /v2/account/deposit_address/:currency(.:format) | | Returns deposit address for account you want to deposit to by currency. The address may be blank because address generation process is still in progress. If this case you should try again later.
GET | /v2/account/beneficiaries(.:format) | | Get list of user beneficiaries
GET | /v2/account/beneficiaries/:id(.:format) | | Get beneficiary by ID
POST | /v2/account/beneficiaries(.:format) | | Create new beneficiary
PATCH | /v2/account/beneficiaries/:id/resend_pin(.:format) | | Resend beneficiary pin
PATCH | /v2/account/beneficiaries/:id/activate(.:format) | | Activates beneficiary with pin
DELETE | /v2/account/beneficiaries/:id(.:format) | | Delete beneficiary
GET | /v2/account/withdraws(.:format) | | List your withdraws as paginated collection.
GET | /v2/account/withdraws/sums(.:format) | | Returns withdrawal sums for last 4 hours and 1 month
POST | /v2/account/withdraws(.:format) | | Creates new withdrawal to active beneficiary.
GET | /v2/account/transactions(.:format) | | Get your transactions history.
GET | /v2/account/stats/pnl(.:format) | | Get assets pnl calculated into one currency
GET | /v2/account/internal_transfers(.:format) | | List your internal transfers as paginated collection.
POST | /v2/account/internal_transfers(.:format) | | Creates internal transfer.
POST | /v2/admin/import_configs(.:format) | | Import currencies, blockchains and wallets from json/yaml file
GET | /v2/admin/whitelisted_smart_contracts(.:format) | | Get all whitelisted addresses, result is paginated.
GET | /v2/admin/whitelisted_smart_contract/:id(.:format) | | Get a whitelisted address.
POST | /v2/admin/whitelisted_smart_contracts(.:format) | | Creates new whitelisted address.
PUT | /v2/admin/whitelisted_smart_contracts(.:format) | | Update whitelisted_smart_contract.
POST | /v2/admin/whitelisted_smart_contracts/csv(.:format) | | Process whitelisted smart contracts from csv
GET | /v2/admin/internal_transfers(.:format) | | Get all internal transfers.
POST | /v2/admin/airdrops(.:format) | | Process user airdrop
GET | /v2/admin/withdraw_limits(.:format) | | Returns withdraw limits table as paginated collection
POST | /v2/admin/withdraw_limits(.:format) | | It creates withdraw limits record
PUT | /v2/admin/withdraw_limits(.:format) | | It updates withdraw limits record
DELETE | /v2/admin/withdraw_limits/:id(.:format) | | It deletes withdraw limits record
GET | /v2/coinmarketcap/ticker(.:format) | | Get 24-hour pricing and volume summary for each market pair
GET | /v2/coinmarketcap/assets(.:format) | | Details on crypto currencies available on the exchange
GET | /v2/market/trades(.:format) | | Get your executed trades. Trades are sorted in reverse creation order.
GET | /v2/market/orders(.:format) | | Get your orders, result is paginated.
GET | /v2/market/orders/:id(.:format) | | Get information of specified order.
POST | /v2/market/orders(.:format) | | Create a Sell/Buy order.
POST | /v2/market/orders/batch(.:format) | | Create a couple of Sell/Buy orders.
POST | /v2/market/orders/:id/cancel(.:format) | | Cancel an order.
POST | /v2/market/orders/cancel(.:format) | | Cancel all my orders.
GET | /v2/public/currencies/:id(.:format) | | Get a currency
GET | /v2/public/currencies(.:format) | | Get list of currencies
GET | /v2/coinmarketcap/summary(.:format) | | Overview of market data for all tickers and all market pairs on the exchange
GET | /v2/swagger(.:format) | | Swagger compatible API description
GET | /v2/swagger/:name(.:format) | | Swagger compatible API description for specific API
POST | /v2/management/accounts/balance(.:format) | | Queries the account balance for the given UID and currency.
POST | /v2/management/accounts/balances(.:format) | | Queries the non-zero balance accounts for the given currency.
POST | /v2/management/deposits(.:format) | | Returns deposits as paginated collection.
POST | /v2/management/deposits/get(.:format) | | Returns deposit by TID.
POST | /v2/management/deposits/new(.:format) | | Creates new fiat deposit with state set to «submitted». Optionally pass field «state» set to «accepted» if want to load money instantly. You can also use PUT /fiat_deposits/:id later to load money or cancel deposit.
PUT | /v2/management/deposits/state(.:format) | | Allows to load money or cancel deposit.
POST | /v2/management/withdraws(.:format) | | Returns withdraws as paginated collection.
POST | /v2/management/withdraws/get(.:format) | | Returns withdraw by ID.
POST | /v2/management/withdraws/new(.:format) | | Creates new withdraw.
PUT | /v2/management/withdraws/action(.:format) | | Performs action on withdraw.
POST | /v2/management/timestamp(.:format) | | Returns server time in seconds since Unix epoch.
POST | /v2/management/assets(.:format) | | Returns assets as paginated collection.
POST | /v2/management/assets/new(.:format) | | Creates new asset operation.
POST | /v2/management/expenses(.:format) | | Returns expenses as paginated collection.
POST | /v2/management/expenses/new(.:format) | | Creates new expense operation.
POST | /v2/management/revenues(.:format) | | Returns revenues as paginated collection.
POST | /v2/management/revenues/new(.:format) | | Creates new revenue operation.
POST | /v2/management/liabilities(.:format) | | Returns liabilities as paginated collection.
POST | /v2/management/liabilities/new(.:format) | | Creates new liability operation.
POST | /v2/management/orders(.:format) | | Returns orders
POST | /v2/management/orders/:id/cancel(.:format) | | Cancel specific order
POST | /v2/management/orders/cancel(.:format) | | Cancel all open orders
POST | /v2/management/transfers/new(.:format) | | Creates new transfer.
POST | /v2/management/trades(.:format) | | Returns trades as paginated collection.
POST | /v2/management/members(.:format) | | Create a member.
POST | /v2/management/members/group(.:format) | | Set user group.
POST | /v2/management/fee_schedule/trading_fees(.:format) | | Returns trading_fees table as paginated collection
POST | /v2/management/currencies/list(.:format) | | Return currencies list.
POST | /v2/management/currencies/create(.:format) | | Create currency.
POST | /v2/management/currencies/:code(.:format) | | Returns currency by code.
PUT | /v2/management/currencies/update(.:format) | | Update currency.
POST | /v2/management/markets/new(.:format) | | Create market.
PUT | /v2/management/markets/update(.:format) | | Update market.
POST | /v2/management/markets/list(.:format) | | Return list of the markets.
POST | /v2/management/markets/:symbol(.:format) | | Returns market by symbol.
POST | /v2/management/beneficiaries/list(.:format) | | Get list of user beneficiaries
POST | /v2/management/beneficiaries(.:format) | | Create new beneficiary
POST | /v2/management/deposit_address/new(.:format) | | Create payment address
POST | /v2/management/engines/get(.:format) | | Get all engine, result is paginated.
POST | /v2/management/engines/new(.:format) | | Creates new engine
POST | /v2/management/engines/update(.:format) | | Update engine
POST | /v2/management/wallets/new(.:format) | | Creates new wallet.
POST | /v2/management/wallets/update(.:format) | | Update wallet.
POST | /v2/management/wallets(.:format) | | Get all wallets, result is paginated.
POST | /v2/management/wallets/:id(.:format) | | Get a wallet.
GET | /v2/management/swagger(.:format) | | Swagger compatible API description
GET | /v2/management/swagger/:name(.:format) | | Swagger compatible API description for specific API
GET | /v2/admin/orders(.:format) | | Get all orders, result is paginated.
POST | /v2/admin/orders/:id/cancel(.:format) | | Cancel an order.
POST | /v2/admin/orders/cancel(.:format) | | Cancel all orders.
GET | /v2/admin/blockchains(.:format) | | Get all blockchains, result is paginated.
GET | /v2/admin/blockchains/clients(.:format) | | Get available blockchain clients.
GET | /v2/admin/blockchains/:id(.:format) | | Get a blockchain.
GET | /v2/admin/blockchains/:id/latest_block(.:format) | | Get a latest blockchain block.
GET | /v2/admin/currencies(.:format) | | Get list of currencies
GET | /v2/admin/currencies/:code(.:format) | | Get a currency.
POST | /v2/admin/currencies/new(.:format) | | Create new currency.
POST | /v2/admin/currencies/update(.:format) | | Update currency.
GET | /v2/admin/markets(.:format) | | Get all markets, result is paginated.
GET | /v2/admin/markets/:symbol(.:format) | | Get market.
POST | /v2/admin/markets/new(.:format) | | Create new market.
POST | /v2/admin/markets/update(.:format) | | Update market.
GET | /v2/admin/wallets(.:format) | | Get all wallets, result is paginated.
GET | /v2/admin/wallets/kinds(.:format) | | List wallet kinds.
GET | /v2/admin/wallets/:id(.:format) | | Get a wallet.
POST | /v2/admin/wallets/new(.:format) | | Creates new wallet.
POST | /v2/admin/wallets/update(.:format) | | Update wallet.
POST | /v2/admin/wallets/currencies(.:format) | | Add currency to the wallet
DELETE | /v2/admin/wallets/currencies(.:format) | | Delete currency from the wallet
GET | /v2/admin/deposits(.:format) | | Get all deposits, result is paginated.
POST | /v2/admin/deposits/actions(.:format) | | Take an action on the deposit.
POST | /v2/admin/deposits/new(.:format) | | Creates new fiat deposit .
POST | /v2/admin/deposits/:id/refund(.:format) | | Creates new crypto refund
POST | /v2/admin/deposit_address(.:format) | | Returns deposit address for account you want to deposit to by currency and uid.
GET | /v2/admin/withdraws(.:format) | | Get all withdraws, result is paginated.
GET | /v2/admin/withdraws/:id(.:format) | | Get withdraw by ID.
POST | /v2/admin/withdraws/actions(.:format) | | Take an action on the withdrawal.
PUT | /v2/admin/withdraws(.:format) | | Update withdraw request
GET | /v2/admin/trades(.:format) | | Get all trades, result is paginated.
GET | /v2/admin/trades/:id(.:format) | | Get a trade with detailed information.
GET | /v2/admin/assets(.:format) | | Returns assets as a paginated collection.
GET | /v2/admin/expenses(.:format) | | Returns expenses as a paginated collection.
GET | /v2/admin/revenues(.:format) | | Returns revenues as a paginated collection.
GET | /v2/admin/liabilities(.:format) | | Returns liabilities as a paginated collection.
GET | /v2/admin/members(.:format) | | Get all members, result is paginated.
GET | /v2/admin/members/groups(.:format) | | Get available members groups.
GET | /v2/admin/members/:uid(.:format) | | Get a member.
PUT | /v2/admin/members/:uid(.:format) | | Set user group.
GET | /v2/admin/trading_fees(.:format) | | Returns trading_fees table as paginated collection
POST | /v2/admin/trading_fees/new(.:format) | | It creates trading fees record
POST | /v2/admin/trading_fees/update(.:format) | | It updates trading fees record
POST | /v2/admin/trading_fees/delete(.:format) | | It deletes trading fees record
GET | /v2/admin/adjustments(.:format) | | Get all adjustments, result is paginated.
GET | /v2/admin/adjustments/:id(.:format) | | Get adjustment by ID
POST | /v2/admin/adjustments/new(.:format) | | Create new adjustment.
POST | /v2/admin/adjustments/action(.:format) | | Accepts adjustment and creates operations or reject adjustment.
GET | /v2/admin/engines(.:format) | | Get all engine, result is paginated.
GET | /v2/admin/engines/:id(.:format) | | Get engine.
POST | /v2/admin/engines/new(.:format) | | Create new engine.
POST | /v2/admin/engines/update(.:format) | | Update engine
GET | /v2/admin/beneficiaries(.:format) | | Get list of beneficiaries
POST | /v2/admin/beneficiaries/actions(.:format) | | Take an action on the beneficiary
GET | /v2/admin/abilities(.:format) | | Get all roles and permissions.
GET | /v2/admin/swagger(.:format) | | Swagger compatible API description
GET | /v2/admin/swagger/:name(.:format) | | Swagger compatible API description for specific API