Download the PHP package populous/streamer without Composer
On this page you can find all versions of the php package populous/streamer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package streamer
populous world streamer package
This is a streamer package based on CodeIgniter 3.1.4 that is used for populous world.
installation
cd project_root
composer require populous/streamer
put .env file in application directory
DB_HOST=YOUR_DB_HOST DB_USERNAME=YOUR_DB_USERNAME DB_PASSWORD=YOUR_DB_PASSWORD DB_NAME=YOUR_DB_NAME WEBSOCKET_IP=127.0.0.1 WEBSOCKET_URL='ws://127.0.0.1' WEBSOCKET_PORT=8443 WEBSOCKET_ENDPOINT='ws://127.0.0.1:8443' WEBSOCKET_ENDPOINT_SERVER_USE='ws://127.0.0.1:8443' ADMIN_USER_ID=YOUR_ADMIN_USER_ID FEES_BALANCE_OF=YOUR_SYMBOL FEES_BALANCE_ABOVE=LIMIT_AMOUNT FEES_BALANCE_DISCOUNT=DISCOUNT_PERCENT
put WsServer_model.php file in /application/models directory
this streamer packages uses WsServer_model.php file, so if don't have WsServer_model.php file, it will shows error.
put shell_scripts directory in project root directory
mkdir shell_scripts
touch shell_scripts/run_public_socket_server.sh
#!/bin/bash sudo pkill -f php-wss php /var/www/Altyex/index.php websocket runServer
run the WsServer
nohup sh shell_scripts/run_public_socket_server.sh > shell_scripts/logs/run_public_socket_server.log & disown
Official Documentation
- The base endpoint is: wss//streamer.populous.world/wss
Table of Contents
- Events
- Subscribe Channels
- Subscribe global market
- Subscribe Crypto Rates channel
- Subscribe Private user channel
- Exchange Events
- Init Exchange Guest
- Init Exchange
- Buy Limit
- Buy Market
- Buy Stop Limit
- Sell Limit
- Sell Market
- Sell Stop Limit
- Cancel Order Event
- Orderbook Events
- Init Orderbook
- API settings Events
- Init API settings
- Create API
- Update API
- Delete API
- Subscribe Channels
Events
Events | Channels | Message Direction |
---|---|---|
⬆ exchange-buy | private-channel | C->S |
⬇ exchange-buy | private-channel | S->C |
⬆ exchange-sell | private-channel | C->S |
⬇ exchange-sell | private_channel | S->C |
⬆ exchange-cancel-order | private-channel | C->S |
⬇ exchange-cancel-order | private_channel | S->C |
⬆ exchange-init-guest | private-channel | C->S |
⬇ exchange-init-guest | private_channel | S->C |
⬆ exchange-init | private-channel | C->S |
⬇ exchange-init | private_channel | S->C |
⬆ orderbook-init | private-channel | C->S |
⬇ orderbook-init | private_channel | S->C |
⬆ api-setting-init | private-channel | C->S |
⬇ api-setting-init | private_channel | S->C |
⬆ api-setting-create | private-channel | C->S |
⬇ api-setting-create | private_channel | S->C |
⬆ api-setting-update | private-channel | C->S |
⬇ api-setting-update | private_channel | S->C |
⬆ api-setting-delete | private-channel | C->S |
⬇ api-setting-delete | private_channel | S->C |
⬇ order-update | private_channel | S->C |
⬇ balance-update | private_channel | S->C |
⬇ orderbook | market-global-channel | S->C |
⬇ trade-history | market-global-channel | S->C |
⬇ price-change | crypto-rates-channel | S->C |
Subscribe Channels
Subscribe global market
Request Payload
Response Payload
Subscribe Crypto Rates channel
Request Payload
Response Payload
Subscribe Private user channel
Request Payload
Response Payload
Exchange Events
Init Exchange Guest
Request Payload
Response Payload
Init Exchange
Request Payload
Response Payload
Buy Limit
Request Payload
Response Payload
Error Response payload
message will have one of [ "User could not found.", "Invalid pair", "Buy price is invalid.", "Buy amount is invalid.", "Trade could not submitted.", "Insufficient balance." ]
Buy Market
Request Payload
Response Payload
Error Response payload
message will have one of [ "User could not found.", "Invalid pair", "Buy price is invalid.", "Trade could not submitted.", "Insufficient balance." ]
Buy Stop Limit
Request Payload
Response Payload
Error Response payload
message will have one of [
"User could not found.",
"Invalid pair",
"Buy Stop price invalid.",
"Buy Limit price invalid.",
"Buy Amounts invalid.",
"Could not create order",
"You have insufficient balance, More
Sell Limit
Request Payload
Response Payload
Error Response payload
message will have one of [ "User could not found.", "Invalid pair", "Buy price is invalid.", "Buy amount is invalid.", "Trade could not submitted.", "Insufficient balance." ]
Sell Market
Request Payload
Response Payload
Error Response payload
message will have one of [ "User could not found.", "Invalid pair", "Buy price is invalid.", "Trade could not submitted.", "Insufficient balance." ]
Sell Stop Limit
Request Payload
Response Payload
Error Response payload
message will have one of [
"User could not found.",
"Invalid pair",
"Buy Stop price invalid.",
"Buy Limit price invalid.",
"Buy Amounts invalid.",
"Could not create order",
"You have insufficient balance, More
Cancel Order Event
Request Payload
Response Payload
Error Response payload
message will have one of [ "You are not allow to cancel this order.", "Could not cancelled the order" ]
Orderbook Events
Init Orderbook
Request Payload
Response Payload
API settings Events
Init API settings
Request Payload
Response Payload
Create API
Request Payload
Response Payload
Update API
Request Payload
Response Payload
Delete API
Request Payload
Response Payload