### Boards
* [TOP](https://btse.atlassian.net/jira/software/c/projects/TOP/boards/128)
* [PT](https://btse.atlassian.net/jira/software/c/projects/PT/boards/39)
> 早上第一件事看有什麼新任務
### Kibana
查 log 的工具
* 連結
* [Production](https://kibana-btse.nogle.com/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:'metrics-*',interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc))))
* [Staging](https://kibana.btse.co/login?next=%2Fapp%2Fdiscover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:'16a35860-ddbb-11ed-be75-03665d490000',interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc))))
* [Testnet](https://kibana.btse.io/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:'572a1b00-9dc8-11ec-81dd-b1691b450bf5',interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc))))
* 帳號密碼
* username: engineer
* password: 3G7@EAgttEZt
* 查詢方式
`discover` > `filter`(`spot*`, `futures*`, `nginx-access*`,`c2c_otc*`, `payment*`)

* `filter` 代表的意義

### BTSE staging
* [Staging 網站](https://staging.btse.co/en/home)
* [Staging 後台](https://admin.btse.co/)
#### Deposit Fiat
如果要在 [Staging 網站](https://staging.btse.co/en/home) `wallet` 裡 `Deposit` `Fiat` 用 `bank transfer (SWIFT)`
1. 去 [Staging 後台](https://admin.btse.co/) 的 `Settlements`
2. 在 `Deposit - Fiat(Bank Transfer)` 找到自己的那筆資料按 `Review` > `Submit`
3. 接著還要去 `Approvals`, 選擇日期,再 `approve`

4. 就可以回到 [Staging 網站](https://staging.btse.co/en/home) `wallet` 看到入帳
#### Cradit Card 購買幣
`PIQ` 的 staging 測試用
* card number: 4938730000000001
* cvv: 123
* 可參考
[Test Cards - PIQ](https://dev.na.bambora.com/docs/references/payment_APIs/test_cards/)
### Log
* Spot log
* `Buy` 用 `USD Price`
* `Sell` 用 `BTC Size`
### Others
#### Status code
* [Document](https://nogle.atlassian.net/wiki/spaces/BTSE/pages/723878152/3.5.06+Status+code)
#### 處理事情的對應人 (持續更新中)
* [Sheet](https://docs.google.com/spreadsheets/d/1awLMlBFOa6kRrbWKGrJQZxQUFV7vfoDu86223FwS7ew/edit?gid=0#gid=0)
#### 處理過的事件
* [Sheet](https://docs.google.com/spreadsheets/d/1awLMlBFOa6kRrbWKGrJQZxQUFV7vfoDu86223FwS7ew/edit?gid=1511724044#gid=1511724044)
#### WhiteLabel
* [Sheet](https://docs.google.com/spreadsheets/d/1ugzEPszLBxCWb6e0b8kby9sheK3gBDuvKIDhUt4xTj8/edit?gid=0#gid=0)
除了`BTSE`外,其他都是白牌
#### User 等級
VIP > ORE >user
#### VM
* [How to build VM](https://nogle.atlassian.net/wiki/spaces/TCC/pages/649298002/2.+How+to+Create+a+VM)
* [How to resize VM](https://nogle.atlassian.net/wiki/spaces/TCC/pages/779976705/4.+How+to+Resize+VM+Disk)
* [How to recycle VM](https://nogle.atlassian.net/wiki/spaces/TCC/pages/869892098/Staging+VM+Recycling+Procedure)
#### API
* [api document](https://api.btse.co/payment/pay-api#tag/User-Service/operation/get-api-auth-info)
* [api callback status](https://nogle.atlassian.net/wiki/spaces/TCC/pages/808747170/Checking+PAYAPI+Callback+Status)
* [API Enum](https://btsecom.github.io/docs/spot/en/#api-status-codes)
#### 遇到 Liquidation issue
**狀況: user 不知道被平倉為何前會不見**
1.查 Kibana (Future*)
2.請有後台權限的人(Jerry)幫忙看使用著的交易紀錄,Jerry 會傳 `0_FUTURES_report.csv`
3.開 TOP 單來記錄問題與處理過程(比較私密的細節)
4.如果感覺平倉有問題的話在 Slack`top-core-discussion`再問 Castiello
**參考訊息文案** (參考 Yeeying):
> Hi Castiello,
> 有張票 User 對 liquidate 有疑慮,想請您看看。謝謝!
> transaction report 已附在 TOP 單中)
> https://btse.atlassian.net/browse/PT-1188
> Username:
> transaction_time: UTC+0
> Orderid:
5.如果是 User 不懂 future 的遊戲規則,回 CS 的 PT 單就用 FAQ 的文件回答
**參考訊息文案**:
> Hi BTSE CS (@Amber Chen @Ana Margarita Ponce @Charlotte Wu @Dionne Sotelo @Jonathan Estrella @Lalaine Laguatan @Paul Tapiru @Ruel Escobar @Xinli Chan @ZhengJet Leow @marissa sanmiguel),
>
> After the investigation, there is no doubt about this issue.
> This was following the liquidation policy.
>
> **What will happen when liquidation or partial liquidation occurs?**
> Upon liquidation, the system assumes control of your position and the remaining margin balance, aiming to close the position (or part of it) at the bankruptcy price.
>
> Please refer to the document:
> [Partial Liquidation : BTSE Support](https://support.btse.com/en/support/solutions/articles/43000460019-partial-liquidation)
> [Contract Term Reference : BTSE Support ](https://support.btse.com/en/support/solutions/articles/43000461165#Leverage)
>
> Thank you.
* 補充
在 `0_FUTURES_report.csv` 裡可以看到些有用資訊
* `order_type`: `1003` = 被強制平倉
* 只有被平倉的有 `liquidation_id`
* 被平倉的 `liquidation_price` 數值非零
* 上面的的 `transaction_time` 是 `UTC+0`
#### Oncall
#### Tools
* [開 system 單](https://mgt-web.btse.co/#/systemTicketCreateForm)
* [Postman import](https://github.com/btsecom/api-sample/tree/master/postman)
* [時間換算工具](https://www.worldtimebuddy.com/)
* [ErrorCode](https://docs.google.com/spreadsheets/d/1dk8JnykGSBDHazlqe-0UPKfqc-8l2tPXB9i3eEO5CTM/edit?gid=384092179#gid=384092179)