Swift Code ?????????????????????
SWIFT Code (Society for Worldwide Interbank Financial Telecommunication) ????????????????????????????????????????????????????????? BIC (Bank Identifier Code) ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ???????????????????????????????????????????????????????????????????????????????????????????????? (international wire transfer) ?????????????????????????????????????????????????????????????????? SWIFT network ???????????? SWIFT Code ??????????????????????????????????????????
???????????????????????????????????? SWIFT Code ?????? 8 ???????????? 11 ???????????????????????? ?????????????????????????????? Bank Code (4 ????????????????????????) ??????????????????????????????, Country Code (2 ????????????????????????) ?????????????????????????????? (TH ???????????????????????????), Location Code (2 ????????????????????????/??????????????????) ?????????????????????????????????, Branch Code (3 ????????????????????????) ???????????????????????? (????????????????????? XXX ?????????????????????????????????????????????????????????)
???????????????????????? BKKBTHBK ????????? SWIFT Code ???????????????????????????????????????????????? BKKB = Bank of Bangkok, TH = Thailand, BK = Bangkok ??????????????? 11 ????????? ???????????? BKKBTHBKXXX ???????????? XXX ?????????????????????????????????????????????
Swift Code ?????????????????????????????????????????????
????????????????????? SWIFT Code ???????????????????????????
# === Thai Bank SWIFT Codes ===
cat > thai_swift_codes.yaml << 'EOF'
thai_banks_swift:
commercial_banks:
- bank: "??????????????????????????????????????? (Bangkok Bank)"
swift: "BKKBTHBK"
swift_11: "BKKBTHBKXXX"
abbr: "BBL"
- bank: "?????????????????????????????????????????? (Kasikornbank)"
swift: "KASITHBK"
swift_11: "KASITHBKXXX"
abbr: "KBANK"
- bank: "???????????????????????????????????????????????? (Siam Commercial Bank)"
swift: "SICOTHBK"
swift_11: "SICOTHBKXXX"
abbr: "SCB"
- bank: "??????????????????????????????????????? (Krungthai Bank)"
swift: "KRTHTHBK"
swift_11: "KRTHTHBKXXX"
abbr: "KTB"
- bank: "????????????????????????????????????????????????????????? (Bank of Ayudhya)"
swift: "AYUDTHBK"
swift_11: "AYUDTHBKXXX"
abbr: "BAY"
- bank: "?????????????????????????????????????????????????????? (TMBThanachart)"
swift: "TMBKTHBK"
swift_11: "TMBKTHBKXXX"
abbr: "TTB"
- bank: "???????????????????????????????????? (Government Savings Bank)"
swift: "GSBATHBK"
swift_11: "GSBATHBKXXX"
abbr: "GSB"
- bank: "???????????????????????????????????????????????????????????? (BAAC)"
swift: "BAABORHH"
abbr: "BAAC"
- bank: "???????????????????????????????????????????????? ????????? (CIMB Thai)"
swift: "UBOBTHBK"
abbr: "CIMBT"
- bank: "???????????????????????????????????? (UOB Thailand)"
swift: "UABORHH"
abbr: "UOB"
foreign_banks_in_thailand:
- bank: "Citibank Thailand"
swift: "CITITHBX"
- bank: "Standard Chartered Thailand"
swift: "SCBLTHBX"
- bank: "Deutsche Bank Thailand"
swift: "DEUTTHBK"
- bank: "HSBC Thailand"
swift: "HSBCTHBK"
swift_code_structure:
example: "BKKBTHBK"
breakdown:
BKKB: "Bank code (Bangkok Bank)"
TH: "Country code (Thailand)"
BK: "Location code (Bangkok)"
XXX: "Head office (optional)"
EOF
echo "Thai SWIFT codes defined"
????????????????????? Swift Code ???????????????????????????????????????????????????
?????????????????????????????????????????????????????????????????????????????????
# === International Wire Transfer Guide ===
cat > transfer_guide.json << 'EOF'
{
"outward_remittance": {
"description": "???????????????????????????????????????????????????????????????????????????",
"required_info": {
"sender": [
"????????????-????????????????????? (?????????????????? passport/?????????????????????????????????)",
"???????????????????????????????????????????????????",
"??????????????????????????????????????????????????????/passport",
"?????????????????????",
"???????????????????????????????????????"
],
"receiver": [
"????????????-????????????????????? (???????????????????????????????????????????????????)",
"????????????????????????????????? ???????????? IBAN (?????????????????????????????????)",
"??????????????????????????????",
"SWIFT Code ?????????????????????????????????????????????",
"???????????????????????????????????????",
"Branch name (???????????????)"
],
"transaction": [
"???????????????????????????",
"???????????????????????? (USD, EUR, JPY, GBP, etc.)",
"?????????????????????????????????????????????????????? (Purpose of remittance)",
"???????????????????????????????????? (Invoice, Contract, etc.)"
]
},
"channels": {
"bank_branch": {
"method": "????????????????????????????????????",
"documents": "????????????????????????????????? + ????????????????????????????????????",
"fee": "200-500 THB + SWIFT fee 200-400 THB",
"time": "1-3 ????????????????????????"
},
"online_banking": {
"method": "????????????????????? app ??????????????????",
"banks": ["SCB (SCB Easy)", "KBANK (K Plus)", "BBL (Bualuang)"],
"limit": "??????????????????????????????????????? (???????????????????????? 200,000-2,000,000 THB/?????????)",
"fee": "??????????????????????????????????????????????????????????????????",
"time": "1-2 ????????????????????????"
}
},
"exchange_rate": {
"note": "??????????????????????????? TT Selling Rate (??????????????????) ????????????????????????????????? mid-rate",
"spread": "???????????????????????? 0.5-2% ????????? mid-rate",
"tip": "????????????????????????????????? rate ?????????????????????????????? ????????? Wise/DeeMoney ?????????????????????"
}
},
"inward_remittance": {
"description": "??????????????????????????????????????????????????????????????????????????????????????????",
"info_to_provide_sender": [
"Your full name (?????????????????????????????????)",
"Bank account number",
"Bank name: e.g., Bangkok Bank",
"SWIFT Code: e.g., BKKBTHBK",
"Bank address: e.g., 333 Silom Road, Bangkok 10500, Thailand"
],
"fee": "200-500 THB (?????????????????????????????????????????????)",
"exchange_rate": "TT Buying Rate (????????????????????? mid-rate)"
}
}
EOF
python3 -c "
import json
with open('transfer_guide.json') as f:
data = json.load(f)
print('Outward Remittance Channels:')
for ch, info in data['outward_remittance']['channels'].items():
print(f' {ch}: Fee {info[\"fee\"]}, Time {info[\"time\"]}')
print(f'\nExchange Rate Spread: {data[\"outward_remittance\"][\"exchange_rate\"][\"spread\"]}')
"
echo "Transfer guide created"
???????????????????????????????????????????????????????????? Swift Code
Python tool ????????????????????????????????? SWIFT Code
#!/usr/bin/env python3
# swift_lookup.py ??? SWIFT Code Lookup Tool
import json
import logging
from typing import Dict, List, Optional
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("swift")
class SwiftCodeLookup:
def __init__(self):
self.database = {
"BKKBTHBK": {"bank": "Bangkok Bank", "country": "TH", "city": "Bangkok"},
"KASITHBK": {"bank": "Kasikornbank", "country": "TH", "city": "Bangkok"},
"SICOTHBK": {"bank": "Siam Commercial Bank", "country": "TH", "city": "Bangkok"},
"KRTHTHBK": {"bank": "Krungthai Bank", "country": "TH", "city": "Bangkok"},
"AYUDTHBK": {"bank": "Bank of Ayudhya", "country": "TH", "city": "Bangkok"},
"TMBKTHBK": {"bank": "TMBThanachart Bank", "country": "TH", "city": "Bangkok"},
"GSBATHBK": {"bank": "Government Savings Bank", "country": "TH", "city": "Bangkok"},
"CITITHBX": {"bank": "Citibank Thailand", "country": "TH", "city": "Bangkok"},
"HSBCTHBK": {"bank": "HSBC Thailand", "country": "TH", "city": "Bangkok"},
"CHASUS33": {"bank": "JPMorgan Chase", "country": "US", "city": "New York"},
"BOFAUS3N": {"bank": "Bank of America", "country": "US", "city": "New York"},
"WFBIUS6S": {"bank": "Wells Fargo", "country": "US", "city": "San Francisco"},
"CITIUS33": {"bank": "Citibank", "country": "US", "city": "New York"},
"BARCGB22": {"bank": "Barclays", "country": "GB", "city": "London"},
"HSBCSGSG": {"bank": "HSBC Singapore", "country": "SG", "city": "Singapore"},
"MABORHH": {"bank": "Mizuho Bank Thailand", "country": "TH", "city": "Bangkok"},
}
def lookup(self, swift_code):
"""Look up bank info by SWIFT code"""
code = swift_code.upper()[:8]
if code in self.database:
info = self.database[code]
return {
"swift_code": code,
"swift_11": f"{code}XXX",
"bank_name": info["bank"],
"country": info["country"],
"city": info["city"],
}
return {"error": f"SWIFT code {code} not found"}
def search_by_bank(self, query):
"""Search SWIFT code by bank name"""
results = []
for code, info in self.database.items():
if query.lower() in info["bank"].lower():
results.append({"swift": code, "bank": info["bank"], "country": info["country"]})
return results
def search_by_country(self, country_code):
"""List all banks in a country"""
results = []
for code, info in self.database.items():
if info["country"].upper() == country_code.upper():
results.append({"swift": code, "bank": info["bank"], "city": info["city"]})
return results
def validate_swift(self, code):
"""Validate SWIFT code format"""
code = code.upper()
if len(code) not in [8, 11]:
return {"valid": False, "error": "Must be 8 or 11 characters"}
if not code[:4].isalpha():
return {"valid": False, "error": "First 4 chars must be letters (bank code)"}
if not code[4:6].isalpha():
return {"valid": False, "error": "Chars 5-6 must be letters (country code)"}
return {
"valid": True,
"bank_code": code[:4],
"country": code[4:6],
"location": code[6:8],
"branch": code[8:11] if len(code) == 11 else "XXX (head office)",
}
lookup = SwiftCodeLookup()
# Look up specific code
result = lookup.lookup("BKKBTHBK")
print(f"SWIFT: {result['swift_code']} = {result['bank_name']}")
# Search Thai banks
thai_banks = lookup.search_by_country("TH")
print(f"\nThai banks: {len(thai_banks)}")
for bank in thai_banks[:5]:
print(f" {bank['swift']}: {bank['bank']}")
# Validate
val = lookup.validate_swift("KASITHBK")
print(f"\nValidate KASITHBK: valid={val['valid']}, country={val['country']}")
??????????????????????????????????????????????????????????????????????????????????????????
???????????????????????????????????????????????????????????????????????????
#!/usr/bin/env python3
# fee_comparison.py ??? Transfer Fee Comparison
import json
import logging
from typing import Dict
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("fees")
class TransferFeeComparison:
def __init__(self):
self.providers = {}
def compare_providers(self, amount_thb=100000, currency="USD"):
"""Compare transfer fees for different providers"""
usd_mid_rate = 36.0 # example mid-market rate
return {
"amount": f"{amount_thb:,} THB ??? {currency}",
"providers": {
"thai_bank_swift": {
"name": "??????????????????????????? (SWIFT)",
"exchange_rate": usd_mid_rate * 1.015,
"transfer_fee": 400,
"swift_fee": 300,
"total_fee": 700,
"received_usd": round(amount_thb / (usd_mid_rate * 1.015), 2),
"time": "1-3 ????????????????????????",
"min_amount": "??????????????? (????????????????????????????????????????????????????????????)",
},
"wise": {
"name": "Wise (TransferWise)",
"exchange_rate": usd_mid_rate * 1.005,
"transfer_fee": round(amount_thb * 0.006),
"swift_fee": 0,
"total_fee": round(amount_thb * 0.006),
"received_usd": round((amount_thb - amount_thb * 0.006) / (usd_mid_rate * 1.005), 2),
"time": "1-2 ????????????????????????",
"min_amount": "1 THB",
},
"deemoney": {
"name": "DeeMoney",
"exchange_rate": usd_mid_rate * 1.008,
"transfer_fee": 199,
"swift_fee": 0,
"total_fee": 199,
"received_usd": round((amount_thb - 199) / (usd_mid_rate * 1.008), 2),
"time": "1-2 ????????????????????????",
"min_amount": "1,000 THB",
},
"western_union": {
"name": "Western Union",
"exchange_rate": usd_mid_rate * 1.025,
"transfer_fee": 500,
"swift_fee": 0,
"total_fee": 500,
"received_usd": round((amount_thb - 500) / (usd_mid_rate * 1.025), 2),
"time": "???????????????????????? (cash pickup)",
"min_amount": "1,000 THB",
},
},
}
def recommendation(self, amount_thb):
if amount_thb < 10000:
return "Wise ???????????? DeeMoney (????????????????????????????????????????????? ??????????????????????????????????????????)"
elif amount_thb < 100000:
return "Wise (rate ????????????????????????) ???????????? DeeMoney (???????????????????????????????????????????????????)"
else:
return "????????????????????????????????? Wise ??????????????????????????? (???????????????????????? bank ???????????????????????????)"
comp = TransferFeeComparison()
result = comp.compare_providers(100000, "USD")
print(f"Sending: {result['amount']}")
for key, provider in result["providers"].items():
print(f"\n {provider['name']}:")
print(f" Fee: {provider['total_fee']:,} THB")
print(f" Received: ")
print(f" Time: {provider['time']}")
rec = comp.recommendation(100000)
print(f"\nRecommendation: {rec}")
?????????????????????????????????????????????????????? SWIFT
??????????????????????????????????????????????????????????????????
# === Alternative Transfer Methods ===
cat > alternatives.json << 'EOF'
{
"alternatives_to_swift": {
"wise": {
"name": "Wise (formerly TransferWise)",
"type": "Fintech",
"how": "????????? local bank transfers ????????? SWIFT",
"advantage": "Rate ???????????????????????? ????????????????????????????????????????????? ?????????????????????",
"limitation": "?????????????????????????????????????????????????????? limit ????????????????????????",
"supported_currencies": "50+ ????????????????????????",
"thai_license": "??????????????????????????????????????? ?????????."
},
"deemoney": {
"name": "DeeMoney",
"type": "Fintech (Thai company)",
"how": "??????????????????????????????????????????????????????????????? app",
"advantage": "???????????????????????????????????? 149-199 THB ???????????????",
"limitation": "?????????????????????????????????????????????",
"thai_license": "??????????????????????????????????????? ?????????."
},
"paypal": {
"name": "PayPal",
"type": "Digital wallet",
"how": "???????????????????????????????????? PayPal",
"advantage": "????????????????????? ?????????????????? email",
"limitation": "????????????????????????????????????????????? (4-5%) rate ???????????????",
"note": "????????????????????????????????? freelance ????????????????????????????????????????????????????????????"
},
"crypto": {
"name": "Cryptocurrency (USDT/USDC)",
"type": "Blockchain transfer",
"how": "????????? stablecoin ???????????? blockchain",
"advantage": "???????????? (????????????) ????????????????????????????????????????????? 24/7",
"limitation": "?????????????????? crypto wallet ????????????????????????????????? volatility risk",
"legal_status": "?????????????????????????????????????????? ?????????????????????????????????????????????????????????????????????"
},
"promptpay_international": {
"name": "PromptPay International",
"type": "Government-backed",
"how": "????????????????????? PromptPay ???????????????????????? partner",
"supported": "Singapore (PayNow), Malaysia (DuitNow)",
"advantage": "??????????????????????????????????????????????????????????????????????????? real-time",
"limitation": "??????????????????????????? ASEAN partners"
}
}
}
EOF
python3 -c "
import json
with open('alternatives.json') as f:
data = json.load(f)
print('SWIFT Alternatives:')
for key, alt in data['alternatives_to_swift'].items():
print(f' {alt[\"name\"]} ({alt[\"type\"]}): {alt[\"advantage\"][:50]}...')
"
echo "Alternatives guide complete"
FAQ ??????????????????????????????????????????
Q: SWIFT Code ????????? IBAN ???????????????????????????????????????????
A: SWIFT Code (BIC) ??????????????????????????????????????? ?????? 8-11 ???????????????????????? ?????????????????????????????? ???????????????????????? BKKBTHBK (???????????????????????????????????????) IBAN (International Bank Account Number) ?????????????????????????????????????????????????????? ?????? 15-34 ???????????????????????? ??????????????????????????????????????????????????? (??????????????????????????????????????? ????????????????????????????????????) ???????????????????????? GB29 NWBK 6016 1331 9268 19 ????????????????????????????????????????????? IBAN ?????????????????????????????????????????????????????? (10 ????????????) + SWIFT Code ????????????????????????????????????????????????????????? ????????????????????????????????? SWIFT Code + IBAN ??????????????????????????????????????? ????????? SWIFT Code + ?????????????????????????????????
Q: ???????????????????????????????????????????????????????????????????????????????????????????
A: ?????????????????????????????????????????? SWIFT (??????????????????) 1-3 ???????????????????????? (?????????????????????????????????????????????????????????????????????????????????????????? correspondent bank) Wise 1-2 ???????????????????????? (?????????????????????????????????????????????????????????????????????) DeeMoney 1-2 ???????????????????????? Western Union ???????????????????????? (cash pickup) ???????????? 1-3 ????????? (bank deposit) PromptPay International (ASEAN) real-time Crypto (USDT) 1-30 ???????????? ??????????????????????????????????????????????????? ???????????????????????????????????????, ???????????????????????????????????????????????????????????????????????????, ???????????????????????????????????? (????????????????????????????????????????????????), ????????????????????????????????????, ???????????? correspondent bank ?????????????????????
Q: SWIFT Code 8 ????????? ????????? 11 ????????? ????????????????????????????
A: ???????????????????????????????????????????????? 8 ????????? ???????????? BKKBTHBK ????????????????????????????????????????????????????????? 11 ????????? ???????????? BKKBTHBKXXX ???????????? XXX ????????? head office (?????????????????? 8 ?????????) ??????????????????????????????????????????????????? branch code ????????? XXX ???????????? BKKBTHBK001 ??????????????????????????????????????????????????????????????????????????? ????????? 8 ????????????????????? 11 ????????? (XXX) ??????????????? ???????????????????????? route ???????????????????????????????????? ????????????????????????????????? ????????????????????????????????????????????????????????????????????????
Q: Wise ???????????????????????????????????????????????????????????????????????????????
A: Wise ?????????????????????????????????????????????????????????????????? ?????????????????? Exchange rate ?????????????????? (spread 0.5% vs ?????????????????? 1.5-2.5%), ????????????????????????????????????????????????????????? (Wise ~0.6% vs ?????????????????? 400-700 THB fixed), ????????????????????? ????????????????????????????????????????????????????????????????????????????????????, ???????????????????????? (1-2 ?????????) ??????????????????????????????????????????????????? ???????????????????????????????????? (1M+ THB) ????????????????????????????????????????????? rate ?????????, ??????????????????????????????????????????????????????????????????????????? (letter of credit), ???????????? SWIFT transfer ???????????????????????? (?????????????????????) ??????????????????????????? 10,000-500,000 THB Wise ?????????????????????????????????????????????????????????